AAA Ev Charging Prices
https://api.sandbase.ai/v1/api/aaa/ev-charging-pricesReturns 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.
- Fiyat
- $0.01USD / çağrı
- Yöntem
- POST
- Yanıt
- Asenkron JSON
- Parametreler
- 0 gerekli · 0 isteğe bağlı
Oynatma Alanı
Çıktınız burada görünecek
Girdileri tamamlayın, ardından Çalıştır'a tıklayın.
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_costperkwhby 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
| Field | Meaning |
|---|---|
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_ID | Name of the location, such as Alaska. In the sample rows both fields hold the same value. |
data.ev_data[].LOCATION_STATE | Two-letter state code, such as AK or AL. |
data.ev_data[].LOCATION_TYPE | Location type code. The sample rows show ST for each state. |
data.ev_data[].ev_costperkwh | Charging cost per kWh for the location, returned as a string such as 0.459. |
data.ev_data[].ev_totalchargers | Total number of chargers for the location, returned as a string such as 1008. |
status | Result of the call. The value is success when the data was returned. |
Notes
- Values such as
ev_costperkwhandev_totalchargerscome back as strings. Convert them to numbers before sorting or doing math. - Use
LOCATION_TYPEto filter rows by type, andLOCATION_STATEto 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.
Geliştirmeye başlayın
İlk isteğinizi gönderin
Birleşik kimlik doğrulama ve kullanım takibi sunan Platform API uç noktası.
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 '{}'2. Kimlik doğrulama
SandBase API anahtarınızı sunucu ortamınıza ayarlayın. İstekler Bearer kimlik doğrulaması kullanır.
export SANDBASE_API_KEY="YOUR_API_KEY"Anahtarınızı sunucuda tutun. Tarayıcı kodunda açığa çıkarmayın.
3. Parametreler
Bu API için bir parametre şeması yayınlanmamış.
4. Yanıt
Bu API için kaydedilmiş örnek yanıt; görüntülerken canlı istek yapılmaz.
Yayınlanmış bir kaydedilmiş yanıt yok. Yanıtını incelemek için API'yi Playground'da çalıştırın.
Daha fazlasını keşfedin
İlgili APIs
| API | Fiyat | Yanıt |
|---|---|---|
AAA Ev Charging PricesBu API AAA | $0.01 çağrı başına | Asenkron JSON |
AAA | $0.01 çağrı başına | Asenkron JSON |
AAA | $0.01 çağrı başına | Asenkron JSON |
AAA | $0.01 çağrı başına | Asenkron JSON |
AAA | $0.01 çağrı başına | Asenkron JSON |
AAA | $0.02 çağrı başına | Asenkron JSON |
Sorular
SSS
AAA Ev Charging Prices API'sini nasıl kullanırım?
SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/aaa/ev-charging-prices adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.
AAA Ev Charging Prices API'sinin fiyatı nedir?
çağrı başına $0.01, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.
AAA Ev Charging Prices API'si hangi parametreleri kabul eder?
AAA Ev Charging Prices hiçbir giriş parametresi almaz; boş bir JSON gövdesi gönderin.
AAA Ev Charging Prices API'si ne döndürür?
Bir JSON sonucu. Bu uç nokta asenkron çalışır; bu nedenle yanıt, tamamlanan sonucu nasıl alacağınızı söyler. Bu sayfadaki README'de örnek bir yanıt yer alır.
Bir AAA geliştirici hesabına veya API anahtarına ihtiyacım var mı?
Hayır. AAA Ev Charging Prices, SandBase üzerinden çalışır; bu nedenle tek bir SandBase API anahtarı bu uç noktayı ve katalogdaki diğer tüm API'leri ve modelleri kapsar. AAA API erişimi için ayrıca başvuru yapmanız gerekmez.
