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

AAA Ev Charging Prices

Documentazione API
https://api.sandbase.ai/v1/api/aaa/ev-charging-prices

Returns national and per-state EV charging price data including cost per kWh and total charger counts for each state. Data sourced from a public Google Sheets dataset maintained by AAA.

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 Ev Charging Prices

Returns the EV charging cost per kWh and the total number of chargers for each location, with one row per state. The request takes no input.

Use cases

  • Compare the cost per kWh of EV charging across states.
  • Rank states by total charger count to see where charging stations are most common.
  • Estimate the cost of a full charge in a state by multiplying ev_costperkwh by battery size in kWh.
  • Feed charging costs into a trip planning or fleet budgeting tool.

Request

curl -X POST "https://api.sandbase.ai/v1/api/aaa/ev-charging-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": {
    "ev_data": [
      {
        "LOCATION_ID": "Alaska",
        "LOCATION_NAME": "Alaska",
        "LOCATION_STATE": "AK",
        "LOCATION_TYPE": "ST",
        "ev_costperkwh": "0.459",
        "ev_totalchargers": "92"
      }
    ]
  },
  "status": "success"
}

Response fields

FieldMeaning
data.ev_data[]List of locations. Each item holds the charging cost and charger count for one location.
data.ev_data[].LOCATION_NAME / data.ev_data[].LOCATION_IDName of the location, such as Alaska. In the sample rows both fields hold the same value.
data.ev_data[].LOCATION_STATETwo-letter state code, such as AK or AL.
data.ev_data[].LOCATION_TYPELocation type code. The sample rows show ST for each state.
data.ev_data[].ev_costperkwhCharging cost per kWh for the location, returned as a string such as 0.459.
data.ev_data[].ev_totalchargersTotal number of chargers for the location, returned as a string such as 1008.
statusResult of the call. The value is success when the data was returned.

Notes

  • Values such as ev_costperkwh and ev_totalchargers come back as strings. Convert them to numbers before sorting or doing math.
  • Use LOCATION_TYPE to filter rows by type, and LOCATION_STATE to match a row to a state code.
  • For gasoline figures instead of EV charging, call AAA National Average.

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 Ev Charging Prices?

Invia una richiesta POST a https://api.sandbase.ai/v1/api/aaa/ev-charging-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 Ev Charging 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 Ev Charging Prices?

AAA Ev Charging Prices non accetta parametri di input; invia un body JSON vuoto.

Cosa restituisce l'API AAA Ev Charging 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 Ev Charging 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.