Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Запрос

Для пользователей бесплатных подсказок DaData.ru:

No Format
curl -X POST \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Authorization: Token ${API_KEY}" \
  -d '{ "query": "альфа" }' \
  https://dadata.ru/api/v2/suggest/bank

Для пользователей платных подсказок DaData.ru:

No Format
curl -X POST \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Authorization: Token ${API_KEY}" \
  -d '{ "query": "альфа" }' \
  http://suggestions.dadata.ru/suggestions/api/4_1/rs/suggest/bank

...