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

AAA Search News Articles

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

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

Playground

Input
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. Intervallo: da -9007199254740991 a 9007199254740991.
Articles per page, 1 to 100. Intervallo: da -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.
OutputPronto

Il tuo output apparirà qui

Completa gli input, poi fai clic su Esegui.

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

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

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

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

Richiesti: query (string). Facoltativi: page (integer), limit (integer), order (string), end_date (string) e start_date (string). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.

Cosa restituisce l'API AAA Search News Articles?

Un risultato JSON. Questo endpoint viene eseguito in modo asincrono, quindi la risposta indica come recuperare il risultato completato.

Mi serve un account sviluppatore o una chiave API AAA?

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