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 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 |
質問
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/aaa/news-article-detail に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.01、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。
必須: slug (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
JSON 結果です。このエンドポイントは非同期で実行されるため、レスポンスには完了した結果の取得方法が含まれます。 このページの README にサンプルレスポンスがあります。
いいえ。AAA News Article Detail は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。AAA の API アクセスを別途申請する必要はありません。