Sand AISand AI MAGI-2MAGI-2 è ora su SandBase: video in 1080p con audio nativoProvalo ora

AAA News Article Detail

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

Prezzo
$0.01USD / chiamata
Metodo
POST
Risposta
JSON asincrono
Parametri
1 obbligatori · 0 opzionali

Playground

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

Il tuo output apparirà qui

Completa gli input, poi fai clic su Esegui.

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.

Esplora altro

API correlate

Tutte le API
APIPrezzoRisposta
AAA$0.01 per chiamataJSON asincrono
AAA$0.01 per chiamataJSON asincrono
AAA$0.01 per chiamataJSON asincrono
AAA$0.01 per chiamataJSON asincrono
AAA$0.01 per chiamataJSON asincrono
AAA$0.01 per chiamataJSON asincrono

Domande

FAQ

Come uso l'API AAA News Article Detail?

Invia una richiesta POST a https://api.sandbase.ai/v1/api/aaa/news-article-detail con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.

Quanto costa l'API AAA News Article Detail?

$0.01 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.

Quali parametri accetta l'API AAA News Article Detail?

Richiesti: slug (string). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.

Cosa restituisce l'API AAA News Article Detail?

Un risultato JSON. Questo endpoint viene eseguito in modo asincrono, quindi la risposta indica come recuperare il risultato completato. Il README di questa pagina include una risposta di esempio.

Mi serve un account sviluppatore o una chiave API AAA?

No. AAA News Article Detail funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API AAA.