Sand AISand AI MAGI-2MAGI-2 agora está na SandBase: vídeo em 1080p com áudio nativoExperimente agora

AAA News Article Detail

Docs da 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.

Preço
$0.01USD / chamada
Método
POST
Resposta
JSON assíncrono
Parâmetros
1 obrigatórios · 0 opcionais

Playground

Entrada
Article URL slug (e.g. national-gas-average-drops-nearly-20-cents-in-one-week). Obtainable from get_news_articles results.
SaídaPronto

Sua saída aparecerá aqui

Preencha as entradas e clique em Executar.

README da 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.

Explorar mais

APIs relacionadas

Todas as APIs
APIPreçoResposta
AAA$0.01 por chamadaJSON assíncrono
AAA$0.01 por chamadaJSON assíncrono
AAA$0.01 por chamadaJSON assíncrono
AAA$0.01 por chamadaJSON assíncrono
AAA$0.01 por chamadaJSON assíncrono
AAA$0.01 por chamadaJSON assíncrono

Perguntas

FAQ

Como eu uso a API AAA News Article Detail?

Envie uma solicitação POST para https://api.sandbase.ai/v1/api/aaa/news-article-detail com sua chave de API da SandBase no cabeçalho Authorization (Bearer) e os parâmetros no corpo JSON. Você também pode testar no Playground desta página sem escrever código.

Quanto custa a API AAA News Article Detail?

$0.01 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.

Quais parâmetros a API AAA News Article Detail aceita?

Obrigatórios: slug (string). A tabela de Parâmetros e o Playground nesta página listam todos os campos.

O que a API AAA News Article Detail retorna?

Um resultado JSON. Este endpoint é assíncrono, então a resposta informa como buscar o resultado final. O README desta página inclui um exemplo de resposta.

Preciso de uma conta de desenvolvedor AAA ou de uma chave de API?

Não. AAA News Article Detail funciona via SandBase, então uma única chave de API da SandBase cobre este endpoint e todas as outras APIs e modelos do catálogo. Você não precisa solicitar acesso à API do AAA separadamente.