Overview

Open Charge Map is a global registry of electric vehicle (EV) charging stations with detailed location and connector information. You need a free API key to access it, which you can request on their website. It is an excellent resource for building EV trip planners or mapping applications.

Beginner Tip

Use the latitude, longitude, and distance parameters together to find nearby chargers. Start with a large distance (e.g., 10 km) to make sure you get results before narrowing down.

Available Data

The kind of data this API exposes, based on its documentation. We could not call the endpoint to confirm the exact field names.

vehicle make and model
year and specifications
fuel economy
VIN decode data

Example Response

Illustrative shape only — we were not able to call this endpoint (it requires credentials or exposes no public sample URL), so the fields below show the kind of data this API returns rather than a recorded response.

JSON Response · Illustrative
{
  "route": "Line 1",
  "origin": "Station A",
  "destination": "Station B",
  "departure": "08:30",
  "arrival": "09:15",
  "status": "On Time",
  "delays_min": 0
}

Field Reference

AddressInfo Location details including street address, city, latitude, and longitude of the charging station
Connections List of available connector types at the station, including power level and plug standard
NumberOfPoints Total number of individual charging points available at the location
StatusType Operational status of the station (e.g., operational, under construction)
UsageCost Human-readable description of the pricing model or cost to use the charger

Implementation Example

Calls a real endpoint of this API. Replace any placeholder credentials with your own key.

Request
const url = "https://openchargemap.org/site/develop/api";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
  headers: {
  "X-API-Key": "YOUR_API_KEY"
  }
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

Common Errors & Troubleshooting

Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.

401 Unauthorized or empty results API key is missing or invalid
Register at openchargemap.org to obtain a free API key and pass it as the key query parameter
Empty results array No charging stations found within the specified radius
Increase the distance parameter or verify that latitude/longitude values are correct
Too many results or slow response maxresults parameter not set, defaulting to a large number
Always include maxresults (e.g., maxresults=20) to limit response size and improve performance

Metadata Score Breakdown

Estimated from metadata — endpoint not independently tested

This score is estimated from observable metadata — HTTPS support, authentication model, declared CORS, and documentation reachability — because the API requires authentication or exposes no publicly testable endpoint. The five-signal breakdown is only shown for live-tested APIs.

Metadata estimate · endpoint not independently tested

Technical Specifications

Auth API Key
HTTPS REQUIRED
CORS YES
Category Transportation
Difficulty Intermediate
Listing details not endpoint-verified

Related Tags

Similar APIs

View All →