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 保存的示例响应;查看时不会发起实时请求。
尚未发布已保存的响应。请在 Playground 中运行 API 以查看其响应。
探索更多
| 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 |
问题
向 https://api.sandbase.ai/v1/api/aaa/news-article-detail 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。
每次调用 $0.01,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。
必填:slug (string)。 Parameters 表和本页的 Playground 列出了每个字段。
JSON 结果。此端点异步运行,因此响应会告诉您如何获取已完成的结果。 本页的 README 包含一个示例响应。
不需要。AAA News Article Detail 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 AAA API 访问权限。