EV Charging API for Developers
ChargingNear.me provides the most comprehensive US EV charging station API — 60,000+ stations, updated daily from the US Department of Energy. Available via REST API, MCP server (for AI agents), GeoJSON feeds, and ChatGPT plugin. Licensed under CC-BY-4.0.
Integration Options
- REST API
- Standard RESTful JSON API at
/api/v1/. Search stations by location, city, state, network, or connector type. Interactive docs (Swagger UI) | API Reference (ReDoc) - MCP Server
- Model Context Protocol server for Claude, Cursor, Gemini, and compatible AI agents. Endpoint:
https://chargingnear.me/api/mcp. Tools: search_stations, get_nearest_stations, get_station_details, get_city_charging_stats, get_state_charging_stats, find_stations_on_route. - GeoJSON Feed
- Full station catalog as GeoJSON at
/api/v1/stations.geojson. Supports bbox filtering for efficient map tile loading. - ChatGPT Plugin
- OpenAI-compatible plugin manifest at
/.well-known/ai-plugin.json. Lets ChatGPT query station data conversationally. - OpenAPI Specification
- Machine-readable API spec at
/.well-known/openapi.json(OpenAPI 3.1).
Authentication
The API supports both unauthenticated and authenticated requests:
- No key required: 100 requests/day per IP
- Free API key: 100 requests/day (authenticated)
- Starter ($99/mo): 5,000 requests/day
- Pro ($295/mo): 25,000 requests/day
- Scale ($595/mo): 1,000,000 requests/day
- Enterprise ($2,495+/mo): 10,000,000 requests/day + SLA
Pass your API key as Authorization: Bearer cnm_your_key_here in the request header.
Quick Start Examples
cURL — Search stations in San Francisco
curl "https://chargingnear.me/api/v1/stations?city=San+Francisco&state=CA&limit=5"
cURL — Find nearest stations
curl "https://chargingnear.me/api/v1/stations/nearest?lat=37.7749&lng=-122.4194&radius_mi=5"
JavaScript (fetch)
const response = await fetch(
"https://chargingnear.me/api/v1/stations?city=Austin&state=TX&limit=10",
{ headers: { Authorization: "Bearer cnm_your_key" } }
);
const data = await response.json();
console.log(data.stations);
Python (requests)
import requests
resp = requests.get(
"https://chargingnear.me/api/v1/stations",
params={"city": "Denver", "state": "CO", "limit": 10},
headers={"Authorization": "Bearer cnm_your_key"}
)
stations = resp.json()["stations"]
MCP Configuration (Claude / Cursor)
{
"mcpServers": {
"chargingnearme": {
"url": "https://chargingnear.me/api/mcp"
}
}
}
MCP Tools
- search_stations — Search by city, state, network, or connector type
- get_nearest_stations — Find stations nearest to coordinates
- get_station_details — Full details for a specific station by ID
- get_city_charging_stats — City-level charging statistics
- get_state_charging_stats — State-level charging statistics
- find_stations_on_route — Find chargers along a multi-waypoint route
Data & Attribution
Station data is sourced from the US Department of Energy NREL Alternative Fuel Stations database and enriched with Google Places, OpenChargeMap, and OpenStreetMap data. Licensed under CC-BY-4.0.
When using our data, please include a link to chargingnear.me and credit "US Department of Energy NREL" as the upstream source.
Frequently Asked Questions
Is the API free to use?
Yes, the free tier includes 100 requests/day with no API key required. For higher limits, create a free API key to get 100 authenticated requests/day. Paid plans start at $99/month for 5,000 requests/day.
What data formats are available?
The API returns JSON by default. GeoJSON is available at /api/v1/stations.geojson for map integrations. The MCP server returns structured tool results for AI agent integration. OpenAPI 3.1 spec is available at /.well-known/openapi.json.
How often is the data updated?
Station data is synced daily from the US Department of Energy's NREL Alternative Fuel Stations database. Enrichment data (Google Places, OpenChargeMap) is updated weekly. Real-time availability data is provided on-demand where supported.
Can I use this data in my app?
Yes, the data is licensed under CC-BY-4.0. You must attribute ChargingNear.me and the US Department of Energy NREL as data sources. Include a link to chargingnear.me when displaying station data.
What is MCP and how do I use it?
Model Context Protocol (MCP) lets AI assistants like Claude, Cursor, and other compatible systems query our station database directly. Point your MCP client to https://chargingnear.me/api/mcp to connect. No API key required for basic queries.