slugstringобязательно
Article URL slug (e.g. national-gas-average-drops-nearly-20-cents-in-one-week). Obtainable from get_news_articles results.
https://api.sandbase.ai/v1/api/aaa/news-article-detailReturns the full content of a specific news article identified by its URL slug. The slug is obtainable from get_news_articles results.
Ваш результат появится здесь
Заполните входные данные, затем нажмите «Запустить».
Returns the full text and basic metadata of one AAA news article about gasoline. It needs the article URL slug as input, such as national-gas-average-drops-nearly-20-cents-in-one-week.
curl -X POST "https://api.sandbase.ai/v1/api/aaa/news-article-detail" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"slug": "national-gas-average-drops-nearly-20-cents-in-one-week"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
slug | string | Yes | Article URL slug (e.g. national-gas-average-drops-nearly-20-cents-in-one-week). Obtainable from get_news_articles results. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"content": "\n<p class=\"wp-block-paragraph\">WASHINGTON, DC (June 4, 2026) –&n…",
"date": "2026-06-04T10:27:55",
"id": 5086,
"link": "https://gasprices.aaa.com/national-gas-average-drops-nearly-20-cents-in-one-week…",
"slug": "national-gas-average-drops-nearly-20-cents-in-one-week",
"title": "National Gas Average Drops Nearly 20 Cents in One Week"
},
"status": "success"
}
| Field | Meaning |
|---|---|
data.title | Headline of the article. |
data.content | Article body as an HTML string. It contains tags such as <p> and HTML entities such as , so parse or strip them before display. |
data.date | Publish date and time of the article in ISO 8601 form, without a time zone offset. |
data.id | Numeric ID of the article. |
data.slug | URL slug of the article. It matches the slug you sent. |
data.link | Full URL of the article on the AAA gas site. |
status | Request outcome. The value is success for a good call. |
slug from the results of AAA News Articles or AAA Search News Articles.slug is the last path segment of data.link.data.content is HTML, so render it as HTML or strip the tags for plain text.$0.01 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Начните разработку
Конечная точка платформенного API с единообразной аутентификацией и учётом использования.
curl -X POST "https://api.sandbase.ai/v1/api/aaa/news-article-detail" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"slug": "national-gas-average-drops-nearly-20-cents-in-one-week"
}'Укажите свой ключ SandBase API в окружении сервера. Запросы используют аутентификацию Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Храните ключ на сервере. Не раскрывайте его в коде браузера.
slugstringобязательноArticle URL slug (e.g. national-gas-average-drops-nearly-20-cents-in-one-week). Obtainable from get_news_articles results.
Сохранённый пример ответа для этого API; при просмотре живой запрос не выполняется.
Сохранённый ответ не опубликован. Запустите API в Playground, чтобы посмотреть его ответ.
Посмотреть больше
| API | Цена | Ответ |
|---|---|---|
AAA News Article DetailЭтот 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/news-article-detail, указав ключ SandBase API в заголовке Authorization (Bearer), а параметры — в теле JSON. Вы также можете попробовать это в Playground на этой странице без написания кода.
$0.01 за вызов, списывается с баланса SandBase. Оплата взимается только за сделанные вызовы; подписка не требуется.
Обязательные: slug (string). В таблице Parameters и в Playground на этой странице перечислены все поля.
JSON-результат. Этот endpoint работает асинхронно, поэтому ответ подсказывает, как получить готовый результат. В README на этой странице приведен пример ответа.
Нет. AAA News Article Detail работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API AAA.