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

AAA Lowest State Prices

Documentazione API
https://api.sandbase.ai/v1/api/aaa/lowest-state-prices

Returns all states sorted by lowest average regular gas price ascending. Useful for identifying the cheapest states for gasoline.

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

Playground

Input
Nessuno schema di input disponibile
OutputPronto

Il tuo output apparirà qui

Completa gli input, poi fai clic su Esegui.

README API

AAA Lowest State Prices

Returns every US state with its average fuel figures per grade, sorted by regular gasoline from lowest to highest. It takes no input. Each row has values for regular, mid_grade, premium and diesel.

Use cases

  • Find the cheapest states for regular gasoline for a road trip or fuel budget.
  • Rank states by regular in a dashboard or chart.
  • Compare diesel and premium values across low-cost states for fleet planning.
  • Track how the cheapest states change by saving the response on a schedule.

Request

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

The result is returned in outputs[0].data.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "data": {
    "states": [
      {
        "diesel": 5.491,
        "mid_grade": 3.8096,
        "premium": 4.2414,
        "regular": 3.3814,
        "state": "North Carolina"
      }
    ]
  },
  "status": "success"
}

Response fields

FieldMeaning
data.states[]List of states. The list is sorted by regular, lowest first.
data.states[].stateFull name of the state, for example North Carolina.
data.states[].regularAverage value for regular gasoline in the state. Rows are ordered by this value.
data.states[].mid_gradeAverage value for mid-grade gasoline in the state.
data.states[].premiumAverage value for premium gasoline in the state.
data.states[].dieselAverage value for diesel in the state.
statusResult of the call. The value is success when the request worked.

Notes

  • This API has no parameters. Send an empty JSON object {}.
  • Fuel values are plain numbers with up to four decimal places. The response does not show a currency or unit.

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.02 per chiamataJSON asincrono

Domande

FAQ

Come uso l'API AAA Lowest State Prices?

Invia una richiesta POST a https://api.sandbase.ai/v1/api/aaa/lowest-state-prices 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 Lowest State Prices?

$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 Lowest State Prices?

AAA Lowest State Prices non accetta parametri di input; invia un body JSON vuoto.

Cosa restituisce l'API AAA Lowest State Prices?

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 Lowest State Prices 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.