Sand AISand AI MAGI-2MAGI-2 ist jetzt auf SandBase: 1080p-Video mit nativem AudioJetzt testen

AAA Ev Charging Prices

API-Dokumentation
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.

Preis
$0.01USD / Aufruf
Methode
POST
Antwort
Asynchrones JSON
Parameter
0 erforderlich · 0 optional

Playground

Eingabe
Kein Eingabeschema verfügbar
AusgabeBereit

Ihre Ausgabe wird hier angezeigt

Vervollständigen Sie die Eingaben und klicken Sie dann auf Ausführen.

API-README

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.

Mehr entdecken

Verwandte APIs

Alle APIs
APIPreisAntwort
AAA$0.01 pro AufrufAsynchrones JSON
AAA$0.01 pro AufrufAsynchrones JSON
AAA$0.01 pro AufrufAsynchrones JSON
AAA$0.01 pro AufrufAsynchrones JSON
AAA$0.01 pro AufrufAsynchrones JSON
AAA$0.02 pro AufrufAsynchrones JSON

Fragen

FAQ

Wie verwende ich die AAA Ev Charging Prices API?

Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/aaa/ev-charging-prices mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.

Was kostet die AAA Ev Charging Prices API?

$0.01 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.

Welche Parameter akzeptiert die AAA Ev Charging Prices API?

AAA Ev Charging Prices benötigt keine Eingabeparameter; senden Sie einen leeren JSON-Body.

Was gibt die AAA Ev Charging Prices API zurück?

Ein JSON-Ergebnis. Dieser Endpunkt läuft asynchron, daher zeigt die Antwort, wie Sie das fertige Ergebnis abrufen. Die README auf dieser Seite enthält eine Beispielantwort.

Benötige ich ein AAA-Entwicklerkonto oder einen API-Schlüssel?

Nein. AAA Ev Charging Prices läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für AAA API beantragen.