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

AAA Search News Articles

Documentación de la API
https://api.sandbase.ai/v1/api/aaa/search-news-articles

Searches the AAA gas price news archive (weekly national reports and state-specific releases going back years) by keyword, optionally restricted to a publication date range, and returns one page of matching articles.

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

Entorno de pruebas

Entrada
Keyword or phrase to search article titles and bodies for, e.g. a state name such as Indiana.
1-based page number of the match set. Rango: de -9007199254740991 a 9007199254740991.
Articles per page, 1 to 100. Rango: de -9007199254740991 a 9007199254740991.
Sort direction by publication date.
Latest publication date to include, ISO date YYYY-MM-DD (inclusive). Omitting places no upper bound, i.e. results run until now.
Earliest publication date to include, ISO date YYYY-MM-DD (inclusive). Omitting places no lower bound.
SalidaListo

Su salida aparecerá aquí

Complete las entradas y luego haga clic en Ejecutar.

README de la API

AAA Search News Articles

Searches the AAA gas price news archive (weekly national reports and state-specific releases going back years) by keyword, optionally restricted to a publication date range, and returns one page of matching articles.

Request

curl -X POST "https://api.sandbase.ai/v1/api/aaa/search-news-articles" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "gas prices"}'

This API runs asynchronously. The call returns a task id with status pending; poll GET https://api.sandbase.ai/v1/run/{id} until status is completed and read the result from outputs[0].data.

Parameters

NameTypeRequiredDescription
querystringYesKeyword or phrase to search article titles and bodies for, e.g. a state name such as Indiana.
end_datestringNoLatest publication date to include, ISO date YYYY-MM-DD (inclusive). Omitting places no upper bound, i.e. results run until now.
limitintegerNoArticles per page, 1 to 100.
orderstringNoSort direction by publication date.
pageintegerNo1-based page number of the match set.
start_datestringNoEarliest publication date to include, ISO date YYYY-MM-DD (inclusive). Omitting places no lower bound.

Pricing

Flat price per call. Failed calls are not charged.

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 Search News Articles?

Envía una solicitud POST a https://api.sandbase.ai/v1/api/aaa/search-news-articles 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 Search News Articles?

$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 Search News Articles?

Requeridos: query (string). Opcionales: page (integer), limit (integer), order (string), end_date (string) y start_date (string). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.

¿Qué devuelve la API de AAA Search News Articles?

Un resultado JSON. Este endpoint se ejecuta de forma asíncrona, así que la respuesta indica cómo obtener el resultado final.

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

No. AAA Search News Articles 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.