EV Charger API
The EV Charger API helps you find electric vehicle charging stations in nearly 100 countries around the world. Get details like connector types, pricing, availability status and more.
Get electric vehicle charging stations near a location specified by latitude and longitude coordinates. If you need to get chargers by address, use our Geocoding API to get the latitude and longitude coordinates first.
From 5,040 users
Applications using this API
API Status
API Response Times
Average | P50 | P75 | P90 | P95 |
|---|---|---|---|---|
| 189ms | 202ms | 287ms | 668ms | 1030ms |
Similar APIs
Didn't find what you were looking for? Suggest an improvement
/v1/evcharger GET
https://api.api-ninjas.com/v1/evcharger
Parameters
latrequiredLatitude coordinate (e.g.
37.4277).lonrequiredLongitude coordinate (e.g.
-122.1701).distanceoptionalSearch distance in kilometers. The search area is a box from specified
lat-distancetolat+distanceandlon-distancetolon+distance. Default is3kilometers. Max value is50kilometers.leveloptionalCharging level (
1,2, or3). By default, all levels are returned.limitoptional premium onlyHow many results to return. Must be between
1and30. Default is3.offsetoptional premium onlyNumber of results to skip. Used for pagination. Default is
0.
Headers
X-Api-KeyrequiredAPI Key associated with your account.
Response
A JSON array of objects, each containing the following fields, or an error if the request is unsuccessful.
is_activeWhether the charging station is currently active (
trueorfalse).nameName of the charging station.
addressStreet address of the charging station.
cityCity where the charging station is located.
regionState, province, or administrative region.
country2-letter ISO country code.
latitude,longitudeGeographic coordinates of the charging station.
connectionsArray of connection objects, each containing:
type_nameName of the connection type (e.g.,
Type 1 (J1772)).type_officialOfficial specification name (e.g.,
SAE J1772-2009).levelCharging level (
1,2, or3).num_connectorsNumber of connectors of this type at the station.
Sample Request Live Demo!
Try our APIs in the API playground
Sign up for a free API key to get started — no credit card required.
https://api.api-ninjas.com/v1/evcharger?lat=37.4277&lon=-122.1701Headers
X-Api-KeyLog in or sign up to get your API KeySample Response
Code Examples
1
2
curl -X GET "https://api.api-ninjas.com/v1/evcharger?lat=37.4277&lon=-122.1701" \
-H "X-Api-Key: YOUR_API_KEY"If your programming language is not listed in the Code Example above, you can still make API calls by using a HTTP request library written in your programming language and following the above documentation.
Frequently Asked Questions
Can I use the EV Charger API for commercial purposes?
Yes, but you must have a premium subscription. Commercial use of the EV Charger API is not permitted on the free tier. See our pricing page to choose a plan that fits your needs.How do I get an API key and start using the EV Charger API?
Sign up for a free account to instantly get your API key, then pass it in theX-Api-Keyheader on every request. The documentation above includes ready-to-run examples in cURL, Python, JavaScript, Node.js, and more.What happens if I exceed my quota for the month?
Your API requests will simply be denied once you hit your monthly quota — you will never be charged more than the plan you signed up for. To increase your quota, you can upgrade your plan any time on our pricing page.What happens if a request to the EV Charger API fails?
The API responds with a standard HTTP status code and a JSON error message describing the problem. See our error codes reference for the full list of codes and how to resolve each one, or contact support if you need help.How do I find EV charging stations near a specific location?
Pass the location'slatandloncoordinates to the/v1/evchargerendpoint, and optionally setdistance(in kilometers, default3, max50) to widen the search box. If you only have a street address, first convert it to coordinates with our Geocoding API.What data does the EV Charger API provide and where does it cover?
It returns charging stations across nearly 100 countries, with each result includingname,address,city,region,country,latitude/longitude, anis_activestatus, and aconnectionsarray. See the full list of transportation APIs for related vehicle data.How do I filter chargers by charging speed?
Use the optionallevelparameter to return only Level1,2, or3chargers; by default all levels are returned. Each entry in theconnectionsarray also reports its ownlevel,type_name,type_official, andnum_connectors. To look up details about the vehicles using these chargers, see the Electric Vehicle API.Can I control how many charging stations are returned?
Yes, thelimitparameter (premium only) sets how many results to return, between1and30with a default of3, andoffset(premium only) lets you skip results for pagination. See pricing for details on premium access.