Sand AISand AI MAGI-2MAGI-2 теперь на SandBase: видео 1080p с нативным звукомПопробовать сейчас

AAA Search News Articles

Документация API
https://api.sandbase.ai/v1/api/aaa/search-news-articles

Searches the AAA gas price news archive (weekly national reports and state-specific releases going back years) by keyword, optionally restricted to a publication date range, and returns one page of matching articles.

Цена
$0.01USD / вызов
Метод
POST
Ответ
Асинхронный JSON
Параметры
1 обязательных · 5 необязательных

Песочница

Ввод
Keyword or phrase to search article titles and bodies for, e.g. a state name such as Indiana.
1-based page number of the match set. Диапазон: от -9007199254740991 до 9007199254740991.
Articles per page, 1 to 100. Диапазон: от -9007199254740991 до 9007199254740991.
Sort direction by publication date.
Latest publication date to include, ISO date YYYY-MM-DD (inclusive). Omitting places no upper bound, i.e. results run until now.
Earliest publication date to include, ISO date YYYY-MM-DD (inclusive). Omitting places no lower bound.
ВыходГотово

Ваш результат появится здесь

Заполните входные данные, затем нажмите «Запустить».

README по API

AAA Search News Articles

Searches the AAA gas price news archive (weekly national reports and state-specific releases going back years) by keyword, optionally restricted to a publication date range, and returns one page of matching articles.

Request

curl -X POST "https://api.sandbase.ai/v1/api/aaa/search-news-articles" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "gas prices"}'

This API runs asynchronously. The call returns a task id with status pending; poll GET https://api.sandbase.ai/v1/run/{id} until status is completed and read the result from outputs[0].data.

Parameters

NameTypeRequiredDescription
querystringYesKeyword or phrase to search article titles and bodies for, e.g. a state name such as Indiana.
end_datestringNoLatest publication date to include, ISO date YYYY-MM-DD (inclusive). Omitting places no upper bound, i.e. results run until now.
limitintegerNoArticles per page, 1 to 100.
orderstringNoSort direction by publication date.
pageintegerNo1-based page number of the match set.
start_datestringNoEarliest publication date to include, ISO date YYYY-MM-DD (inclusive). Omitting places no lower bound.

Pricing

Flat price per call. Failed calls are not charged.

Посмотреть больше

Связанные APIs

Все APIs
APIЦенаОтвет
AAA$0.01 за запросАсинхронный JSON
AAA$0.01 за запросАсинхронный JSON
AAA$0.01 за запросАсинхронный JSON
AAA$0.01 за запросАсинхронный JSON
AAA$0.01 за запросАсинхронный JSON
AAA$0.01 за запросАсинхронный JSON

Вопросы

FAQ

Как использовать API AAA Search News Articles?

Отправьте POST-запрос на https://api.sandbase.ai/v1/api/aaa/search-news-articles, указав ключ SandBase API в заголовке Authorization (Bearer), а параметры — в теле JSON. Вы также можете попробовать это в Playground на этой странице без написания кода.

Сколько стоит API AAA Search News Articles?

$0.01 за вызов, списывается с баланса SandBase. Оплата взимается только за сделанные вызовы; подписка не требуется.

Какие параметры принимает API AAA Search News Articles?

Обязательные: query (string). Необязательные: page (integer), limit (integer), order (string), end_date (string) и start_date (string). В таблице Parameters и в Playground на этой странице перечислены все поля.

Что возвращает API AAA Search News Articles?

JSON-результат. Этот endpoint работает асинхронно, поэтому ответ подсказывает, как получить готовый результат.

Нужен ли мне аккаунт разработчика AAA или API key?

Нет. AAA Search News Articles работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API AAA.