PlugShare filter values
The values the PlugShare map filters accept for a country: connector types (id, name, image), networks, amenities, parking attributes, place types, access restrictions, outlet status values and check-in problem types. Use the ids with the map, nearby and search endpoints.
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
| name | type | description |
|---|---|---|
country | string | Two-letter country code (default US). Example: US |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/plugshare/v1/filters?country=US" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/plugshare/v1/filters",
params={"country": "US"},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json() const url = new URL("https://api.api.sh/plugshare/v1/filters");
url.searchParams.set("country", "US");
const res = await fetch(url, { headers: { "x-api-key": process.env.APISH_KEY } });
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); 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)
{"country": "US","connectors": [{"id": 26,"name": "NACS (Tesla)","short_name": "NACS (Tesla)","image": "https://assets.plugshare.com/outlets/images/tesla.svg"},{"id": 13,"name": null,"short_name": null,"image": null},"… 6 more"],"connectors_all": [{"id": 26,"name": "NACS (Tesla)","short_name": "NACS (Tesla)","image": "https://assets.plugshare.com/outlets/images/tesla.svg"},{"id": 20,"name": "CCS2","short_name": "CCS2","image": "https://assets.plugshare.com/outlets/images/ccs-type2.svg"},"… 22 more"],"networks": [{"id": 1021,"name": "AmpUp","thumbnail": "https://assets.plugshare.com/network-images/ampup_thumb.png"},{"id": 1252,"name": "Applegreen Fast Charge","thumbnail": "https://assets.plugshare.com/network-images/applegreen_thumb.png"},"… 50 more"],"amenities": [{"id": 1,"name": "Lodging"},{"id": 2,"name": "Dining"},"… 9 more"],"parking": [{"id": "COVERED","name": "Covered parking"},{"id": "GARAGE","name": "Garage"},"… 7 more"],"places": [{"id": "AIRPORT","name": "Airport"},{"id": "ARENA_CONCERT_HALL","name": "Arena/Concert Hall"},"… 42 more"],"access_restrictions": [{"id": "CUSTOMERS_ONLY","name": "Customers Only"},{"id": "GUESTS_ONLY","name": "Guests Only"},"… 6 more"],"outlet_status_values": [{"id": "AVAILABLE","name": "Available"},{"id": "BLOCKED","name": "Blocked"},"… 9 more"],"problem_types": [{"id": 0,"name": "Not specified"},{"id": 1,"name": "Broken hardware"},"… 5 more"],"cached": false,"credits_used": 1}