NewConnect Claude, Gemini, ChatGPT, and other AI agents to API Ninjas via our MCP server

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.

(4.8)

From 5,040 users

3,000+

Applications using this API

API Status

Online - All Systems Operational

API Response Times

Average
P50
P75
P90
P95
189ms202ms287ms668ms1030ms

Didn't find what you were looking for? Suggest an improvement


/v1/evcharger GET

https://api.api-ninjas.com/v1/evcharger

Parameters

  • lat  required

    Latitude coordinate (e.g. 37.4277).

  • lon  required

    Longitude coordinate (e.g. -122.1701).

  • distance  optional

    Search distance in kilometers. The search area is a box from specified lat - distance to lat + distance and lon - distance to lon + distance. Default is 3 kilometers. Max value is 50 kilometers.

  • level  optional

    Charging level (1, 2, or 3). By default, all levels are returned.

  • limit  optional premium only

    How many results to return. Must be between 1 and 30. Default is 3.

  • offset  optional premium only

    Number of results to skip. Used for pagination. Default is 0.

Headers

  • X-Api-Key  required

    API 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_active

    Whether the charging station is currently active (true or false).

  • name

    Name of the charging station.

  • address

    Street address of the charging station.

  • city

    City where the charging station is located.

  • region

    State, province, or administrative region.

  • country

    2-letter ISO country code.

  • latitude, longitude

    Geographic coordinates of the charging station.

  • connections

    Array of connection objects, each containing:

    • type_name

      Name of the connection type (e.g., Type 1 (J1772)).

    • type_official

      Official specification name (e.g., SAE J1772-2009).

    • level

      Charging level (1, 2, or 3).

    • num_connectors

      Number of connectors of this type at the station.

Sample Request Live Demo!

lat
lon
distance
level
limit premium

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.1701

Headers

X-Api-KeyLog in or sign up to get your API Key

Sample Response

JSON
[
    {
      is_active:true,
      name:"City of Palo Alto - City Hall Garage",
      address:"250 Hamilton Ave",
      city:"Palo Alto",
      region:"CA",
      country:"US",
      latitude:37.44462,
      longitude:-122.16042,
      connections:[
        {
          type_name:"Type 1 (J1772)",
          type_official:"SAE J1772-2009",
          level:2,
          num_connectors:2
        },
        {
          type_name:"SP Inductive",
          type_official:"Small Paddle Inductive",
          level:null,
          num_connectors:1
        },
        "..."
      ]
    },
    "..."
]

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

  • 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.
  • Sign up for a free account to instantly get your API key, then pass it in the X-Api-Key header on every request. The documentation above includes ready-to-run examples in cURL, Python, JavaScript, Node.js, and more.
  • 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.
  • 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.
  • Pass the location's lat and lon coordinates to the /v1/evcharger endpoint, and optionally set distance (in kilometers, default 3, max 50) to widen the search box. If you only have a street address, first convert it to coordinates with our Geocoding API.
  • It returns charging stations across nearly 100 countries, with each result including name, address, city, region, country, latitude/longitude, an is_active status, and a connections array. See the full list of transportation APIs for related vehicle data.
  • Use the optional level parameter to return only Level 1, 2, or 3 chargers; by default all levels are returned. Each entry in the connections array also reports its own level, type_name, type_official, and num_connectors. To look up details about the vehicles using these chargers, see the Electric Vehicle API.
  • Yes, the limit parameter (premium only) sets how many results to return, between 1 and 30 with a default of 3, and offset (premium only) lets you skip results for pagination. See pricing for details on premium access.