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.
- Preço
- $0.01USD / chamada
- Método
- POST
- Resposta
- JSON assíncrono
- Parâmetros
- 0 obrigatórios · 0 opcionais
Playground
Sua saída aparecerá aqui
Preencha as entradas e clique em Executar.
README da 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_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.
Comece a construir
Envie sua primeira solicitação
Endpoint da API da plataforma com autenticação unificada e rastreamento de uso.
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. Autenticação
Defina sua chave da API SandBase no ambiente do seu servidor. As requisições usam autenticação Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Mantenha sua chave no servidor. Não a exponha em código do navegador.
3. Parâmetros
Nenhum schema de parâmetros foi publicado para esta API.
4. Resposta
Resposta de exemplo salva para esta API; nenhuma requisição ao vivo é feita ao visualizá-la.
Nenhuma resposta salva foi publicada. Execute a API no Playground para inspecionar a resposta.
Explorar mais
APIs relacionadas
| API | Preço | Resposta |
|---|---|---|
AAA Ev Charging PricesEsta API AAA | $0.01 por chamada | JSON assíncrono |
AAA | $0.01 por chamada | JSON assíncrono |
AAA | $0.01 por chamada | JSON assíncrono |
AAA | $0.01 por chamada | JSON assíncrono |
AAA | $0.01 por chamada | JSON assíncrono |
AAA | $0.02 por chamada | JSON assíncrono |
Perguntas
FAQ
Como eu uso a API AAA Ev Charging Prices?
Envie uma solicitação POST para https://api.sandbase.ai/v1/api/aaa/ev-charging-prices com sua chave de API da SandBase no cabeçalho Authorization (Bearer) e os parâmetros no corpo JSON. Você também pode testar no Playground desta página sem escrever código.
Quanto custa a API AAA Ev Charging Prices?
$0.01 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.
Quais parâmetros a API AAA Ev Charging Prices aceita?
AAA Ev Charging Prices não recebe parâmetros de entrada; envie um corpo JSON vazio.
O que a API AAA Ev Charging Prices retorna?
Um resultado JSON. Este endpoint é assíncrono, então a resposta informa como buscar o resultado final. O README desta página inclui um exemplo de resposta.
Preciso de uma conta de desenvolvedor AAA ou de uma chave de API?
Não. AAA Ev Charging Prices funciona via SandBase, então uma única chave de API da SandBase cobre este endpoint e todas as outras APIs e modelos do catálogo. Você não precisa solicitar acesso à API do AAA separadamente.
