PlugShare stations near a point

GET https://api.api.sh/plugshare/v1/nearby
1 credit / call automotive try it in the playground →

The charging locations nearest a point, closest first, with their distance and the same fields and filters as the map. Home chargers shared by private people are never returned.

Every response includes credits_used: the credits this call cost.

Part of the PlugShare API: 10 endpoints with prices, use cases and example responses.

Parameters

nametypedescription
latituderequired number Latitude of the point. Example: 37.7749
longituderequired number Longitude of the point. Example: -122.4194
limit integer Locations to return (1-100, default 20). Example: 20
radius_m integer Only locations within this many metres.
connectors string Connector type ids, comma-separated (from /plugshare/v1/filters, e.g. 13 = CCS1, 26 = NACS (Tesla), 2 = J-1772, 3 = CHAdeMO).
min_power integer Minimum charging power in kW.
max_power integer Maximum charging power in kW.
networks string Only these network ids, comma-separated (from /plugshare/v1/networks).
exclude_networks string Leave out these network ids, comma-separated.
min_stations integer At least this many stations at the location.
free_only boolean Only locations that are free to use.
available_now boolean Only locations with a station reported available now.
min_plugscore integer Minimum PlugScore (1-10).
amenities string Amenity ids, comma-separated (1 Lodging, 2 Dining, 3 Restrooms, 4 EV Parking, 5 Valet Parking, 6 Park, 7 WiFi, 8 Shopping, 9 Grocery, 10 Hiking, 11 Camping).
parking string Parking attribute ids, comma-separated (e.g. COVERED, GARAGE, PULL_IN, PULL_THROUGH; see /plugshare/v1/filters).
places string Only these place types, comma-separated (e.g. HOTEL, AIRPORT, GROCERY_STORE; see /plugshare/v1/filters).
exclude_places string Leave out these place types, comma-separated.
exclude_dealerships boolean Leave out car dealerships.
include_restricted boolean false: public locations only (default true: also locations restricted to customers, guests, residents...).
coming_soon include | only | exclude include (default), only, or exclude locations that are not open yet.
exclude_tesla_only boolean Leave out locations only Tesla drivers can use.
exclude_rivian_only boolean Leave out locations only Rivian drivers can use.

Every endpoint also takes fresh, raw, fields (see lean responses and caching).

Example

curl "https://api.api.sh/plugshare/v1/nearby?latitude=37.7749&longitude=-122.4194" \
  -H "x-api-key: $APISH_KEY"

Response

A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).

Example response (real call, trimmed: lists cut to 2 items, long text shortened, raw left out)

{"latitude": 37.7749,"longitude": -122.4194,"radius_m": null,"applied_filters": {"include_restricted": true},"count": 20,"locations": [{"id": 478737,"name": "1550 Mission St Parking Garage","url": "https://www.plugshare.com/location/478737","address": "90 11th St, San Francisco, CA 94103, USA","latitude": 37.77382618816251,"longitude": -122.41837886808266,"distance_meters": 149.372,"access": "public","plugscore": null,"fast_charger": false,"connector_types": ["J-1772"],"station_count": 34,"available_station_count": null,"in_use_station_count": null,"coming_soon": false,"under_repair": false,"icon_type": "G","network_logo": null,"stations": [{"id": 1226350,"network_id": null,"outlets": [{"…": "7 fields"}]},{"id": 1226351,"network_id": null,"outlets": [{"…": "7 fields"}]},"… 32 more"]},{"id": 60505,"name": "Hudson Pacific Properties","url": "https://www.plugshare.com/location/60505","address": "1455 Market St, San Francisco, CA 94103, USA","latitude": 37.775604,"longitude": -122.41795,"distance_meters": 149.564,"access": "public","plugscore": 8,"fast_charger": true,"connector_types": ["CCS1","CHAdeMO","… 1 more"],"station_count": 13,"available_station_count": 9,"in_use_station_count": 4,"coming_soon": false,"under_repair": false,"icon_type": "Y","network_logo": "https://assets.plugshare.com/network-images/map_card_logos/chargepoint_map_card.png","stations": [{"id": 1177303,"network_id": 1,"outlets": [{"…": "7 fields"}]},{"id": 1177304,"network_id": 1,"outlets": [{"…": "7 fields"}]},"… 11 more"]},"… 18 more"],"cached": false,"credits_used": 1}
The fastest way to see the full response is the playground: it runs this endpoint with your account and shows the exact JSON.