Sand AISand AI MAGI-2MAGI-2 ya está en SandBase: video en 1080p con audio nativoPruébalo ahora

AAA News Article Detail

Documentación de la 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.

Precio
$0.01USD / llamada
Método
POST
Respuesta
JSON asíncrono
Parámetros
1 obligatorios · 0 opcionales

Entorno de pruebas

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

Su salida aparecerá aquí

Complete las entradas y luego haga clic en Ejecutar.

README de la 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 más

APIs relacionadas

Todas las APIs
APIPrecioRespuesta
AAA$0.01 por llamadaJSON asíncrono
AAA$0.01 por llamadaJSON asíncrono
AAA$0.01 por llamadaJSON asíncrono
AAA$0.01 por llamadaJSON asíncrono
AAA$0.01 por llamadaJSON asíncrono
AAA$0.01 por llamadaJSON asíncrono

Preguntas

FAQ

¿Cómo uso la API de AAA News Article Detail?

Envía una solicitud POST a https://api.sandbase.ai/v1/api/aaa/news-article-detail con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.

¿Cuánto cuesta la API de AAA News Article Detail?

$0.01 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.

¿Qué parámetros acepta la API de AAA News Article Detail?

Requeridos: slug (string). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.

¿Qué devuelve la API de AAA News Article Detail?

Un resultado JSON. Este endpoint se ejecuta de forma asíncrona, así que la respuesta indica cómo obtener el resultado final. El README de esta página incluye una respuesta de ejemplo.

¿Necesito una cuenta de desarrollador o una clave API de AAA?

No. AAA News Article Detail funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de AAA por separado.