Sand AISand AI MAGI-2MAGI-2 jest teraz na SandBase: wideo 1080p z natywnym dźwiękiemWypróbuj teraz

AAA News Article Detail

Dokumentacja 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.

Cena
$0.01USD / wywołanie
Metoda
POST
Odpowiedź
Asynchroniczny JSON
Parametry
1 wymaganych · 0 opcjonalnych

Playground

Wejście
Article URL slug (e.g. national-gas-average-drops-nearly-20-cents-in-one-week). Obtainable from get_news_articles results.
WyjścieGotowe

Twój wynik pojawi się tutaj

Uzupełnij dane wejściowe, a następnie kliknij Uruchom.

README API

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.

Odkryj więcej

Powiązane APIs

Wszystkie APIs
APICenaOdpowiedź
AAA$0.01 za wywołanieAsynchroniczny JSON
AAA$0.01 za wywołanieAsynchroniczny JSON
AAA$0.01 za wywołanieAsynchroniczny JSON
AAA$0.01 za wywołanieAsynchroniczny JSON
AAA$0.01 za wywołanieAsynchroniczny JSON
AAA$0.01 za wywołanieAsynchroniczny JSON

Pytania

FAQ

Jak używać API AAA News Article Detail?

Wyślij żądanie POST do https://api.sandbase.ai/v1/api/aaa/news-article-detail z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.

Ile kosztuje API AAA News Article Detail?

$0.01 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.

Jakie parametry przyjmuje API AAA News Article Detail?

Wymagane: slug (string). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.

Co zwraca API AAA News Article Detail?

Wynik JSON. Ten endpoint działa asynchronicznie, więc odpowiedź informuje, jak pobrać gotowy wynik. README na tej stronie zawiera przykładową odpowiedź.

Czy potrzebuję konta deweloperskiego AAA lub klucza API?

Nie. AAA News Article Detail działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API AAA.