Sand AISand AI MAGI-2MAGI-2 現已登上 SandBase:支援原生音訊的 1080p 影片立即試用

AAA News Article Detail

API 文件
https://api.sandbase.ai/v1/api/aaa/news-article-detail

Returns the full content of a specific news article identified by its URL slug. The slug is obtainable from get_news_articles results.

價格
$0.01美元/次呼叫
方法
POST
回應
非同步 JSON
參數
1 個必填 · 0 個選填

Playground

輸入
Article URL slug (e.g. national-gas-average-drops-nearly-20-cents-in-one-week). Obtainable from get_news_articles results.
輸出就緒

您的輸出會顯示在這裡

完成輸入後,點擊執行。

API README

AAA News Article Detail

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.

Use cases

  • Pull the full text of an AAA gas news release to quote or summarize it in a report.
  • Archive AAA news articles with their publish date and canonical link.
  • Show an article page in a fuel dashboard after a user picks a headline from a list.
  • Feed article text into a text analysis job that tracks how gas news is worded over time.

Request

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.

Parameters

NameTypeRequiredDescription
slugstringYesArticle URL slug (e.g. national-gas-average-drops-nearly-20-cents-in-one-week). Obtainable from get_news_articles results.

Example response

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&nbsp;(June 4, 2026)&nbsp;&#8211;&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"
}

Response fields

FieldMeaning
data.titleHeadline of the article.
data.contentArticle body as an HTML string. It contains tags such as <p> and HTML entities such as &nbsp;, so parse or strip them before display.
data.datePublish date and time of the article in ISO 8601 form, without a time zone offset.
data.idNumeric ID of the article.
data.slugURL slug of the article. It matches the slug you sent.
data.linkFull URL of the article on the AAA gas site.
statusRequest outcome. The value is success for a good call.

Notes

  • Get the slug from the results of AAA News Articles or AAA Search News Articles.
  • The 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.

Pricing

$0.01 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

探索更多

相關 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

問題

常見問題

我要如何使用 AAA News Article Detail API?

使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/aaa/news-article-detail。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。

AAA News Article Detail API 的費用是多少?

每次 $0.01,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。

AAA News Article Detail API 接受哪些參數?

必要:slug (string)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。

AAA News Article Detail API 會回傳什麼?

JSON 結果。此端點為非同步執行,因此回應會告訴您如何取得完成的結果。 本頁的 README 包含範例回應。

我需要 AAA 開發者帳號或 API 金鑰嗎?

不需要。AAA News Article Detail 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 AAA API 存取權。