querystringобязательно
Keyword or phrase to search article titles and bodies for, e.g. a state name such as Indiana.
https://api.sandbase.ai/v1/api/aaa/search-news-articlesSearches 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.
Ваш результат появится здесь
Заполните входные данные, затем нажмите «Запустить».
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.
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.
| Name | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Keyword or phrase to search article titles and bodies for, e.g. a state name such as Indiana. |
end_date | string | No | Latest publication date to include, ISO date YYYY-MM-DD (inclusive). Omitting places no upper bound, i.e. results run until now. |
limit | integer | No | Articles per page, 1 to 100. |
order | string | No | Sort direction by publication date. |
page | integer | No | 1-based page number of the match set. |
start_date | string | No | Earliest publication date to include, ISO date YYYY-MM-DD (inclusive). Omitting places no lower bound. |
Flat price per call. Failed calls are not charged.
Начните разработку
Конечная точка платформенного API с единообразной аутентификацией и учётом использования.
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"
}'Укажите свой ключ SandBase API в окружении сервера. Запросы используют аутентификацию Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Храните ключ на сервере. Не раскрывайте его в коде браузера.
querystringобязательноKeyword or phrase to search article titles and bodies for, e.g. a state name such as Indiana.
pageinteger1-based page number of the match set.
limitintegerArticles per page, 1 to 100.
orderstringSort direction by publication date.
end_datestringLatest publication date to include, ISO date YYYY-MM-DD (inclusive). Omitting places no upper bound, i.e. results run until now.
start_datestringEarliest publication date to include, ISO date YYYY-MM-DD (inclusive). Omitting places no lower bound.
Сохранённый пример ответа для этого API; при просмотре живой запрос не выполняется.
Сохранённый ответ не опубликован. Запустите API в Playground, чтобы посмотреть его ответ.
Посмотреть больше
| API | Цена | Ответ |
|---|---|---|
AAA Search News ArticlesЭтот 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 |
Вопросы
Отправьте POST-запрос на https://api.sandbase.ai/v1/api/aaa/search-news-articles, указав ключ SandBase API в заголовке Authorization (Bearer), а параметры — в теле JSON. Вы также можете попробовать это в Playground на этой странице без написания кода.
$0.01 за вызов, списывается с баланса SandBase. Оплата взимается только за сделанные вызовы; подписка не требуется.
Обязательные: query (string). Необязательные: page (integer), limit (integer), order (string), end_date (string) и start_date (string). В таблице Parameters и в Playground на этой странице перечислены все поля.
JSON-результат. Этот endpoint работает асинхронно, поэтому ответ подсказывает, как получить готовый результат.
Нет. AAA Search News Articles работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API AAA.