# PlugShare API

> PlugShare returns public EV charging station locations, PlugScores, and charging details as a workflow and API.

PlugShare finds public charging stations near an address, city, or ZIP code, with driver PlugScores and charging details. Search chargers can filter by connector, radius, result count, or DC fast charging; it needs a location.

- Page: https://fous.com/workflows/plugshare
- Handle: `@plugshare`
- Category: [Travel](https://fous.com/workflows/category/travel)
- Source website: https://plugshare.com
- Last verified: Sep 29, 2026
- Fous is not affiliated with PlugShare.

## Methods

### Search chargers

Operation `search_chargers`, version 1. 1 credit per call.

Find public PlugShare charging stations near an address, city or ZIP code, nearest first, with driver PlugScores and charging details. Cost and opening hours appear when listed.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `location` | string | yes | `"Seattle, WA"` | Address, city or ZIP code, for example San Jose, CA. |
| `connector` | string | no | `"CCS"` | Connector type to match, for example CCS. |
| `max_results` | integer | no | `5` | Maximum number of stations, for example 20. |
| `radius_miles` | number | no | `8` | Search radius in miles, for example 5. |
| `fast_charging_only` | boolean | no | `true` | Only show DC fast chargers, for example true. |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "location"
  ],
  "properties": {
    "location": {
      "type": "string",
      "description": "Address, city or ZIP code, for example San Jose, CA.",
      "examples": [
        "Seattle, WA",
        "San Jose, CA"
      ]
    },
    "connector": {
      "enum": [
        "any",
        "CCS",
        "CHAdeMO",
        "Tesla/NACS",
        "J1772",
        "Type 2"
      ],
      "type": "string",
      "default": "any",
      "description": "Connector type to match, for example CCS.",
      "examples": [
        "CCS"
      ]
    },
    "max_results": {
      "type": "integer",
      "default": 20,
      "maximum": 100,
      "minimum": 1,
      "description": "Maximum number of stations, for example 20.",
      "x-fous-developer": true,
      "examples": [
        5
      ]
    },
    "radius_miles": {
      "type": "number",
      "default": 5,
      "maximum": 50,
      "minimum": 0.1,
      "description": "Search radius in miles, for example 5.",
      "examples": [
        8
      ]
    },
    "fast_charging_only": {
      "type": "boolean",
      "default": false,
      "description": "Only show DC fast chargers, for example true.",
      "examples": [
        true
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "location": "Seattle, WA",
      "connector": "CCS",
      "max_results": 5,
      "radius_miles": 8,
      "fast_charging_only": true
    },
    {
      "location": "San Jose, CA"
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `chargers` | array |  |  |
| `chargers[].cost` | string or null | `"Please open charger details to view up to date pricing"` |  |
| `chargers[].name` | string | `"Seattle Public Library Central Library"` |  |
| `chargers[].address` | string or null | `"1010 4th Ave, Seattle, WA 98104, USA"` |  |
| `chargers[].network` | string or null | `"FLO"` |  |
| `chargers[].latitude` | number | `47.606947` |  |
| `chargers[].longitude` | number | `-122.33281` |  |
| `chargers[].plugscore` | number or null | `7.1` |  |
| `chargers[].connectors` | array |  |  |
| `chargers[].distance_km` | number | `0.4` |  |
| `chargers[].opening_hours` | string or null | `"Open 24/7"` |  |
| `chargers[].distance_miles` | number | `0.25` |  |
| `chargers[].plugshare_link` | string | `"https://www.plugshare.com/location/2021954"` |  |
| `chargers[].charging_points` | integer | `2` |  |
| `chargers[].plugshare_location_id` | integer | `2021954` |  |

**Example input**

```json
{
  "location": "Seattle, WA",
  "connector": "CCS",
  "max_results": 5,
  "radius_miles": 8,
  "fast_charging_only": true
}
```

**Example output**

```json
{
  "chargers": [
    {
      "cost": "Please open charger details to view up to date pricing",
      "name": "Seattle Public Library Central Library",
      "address": "1010 4th Ave, Seattle, WA 98104, USA",
      "network": "FLO",
      "latitude": 47.606947,
      "longitude": -122.33281,
      "plugscore": null,
      "connectors": [
        {
          "type": "CCS1",
          "power_kw": 100
        }
      ],
      "distance_km": 0.4,
      "opening_hours": "Open 24/7",
      "distance_miles": 0.25,
      "plugshare_link": "https://www.plugshare.com/location/2021954",
      "charging_points": 2,
      "plugshare_location_id": 2021954
    },
    {
      "cost": "Please open charger details to view up to date pricing",
      "name": "56 Seneca Street Parking",
      "address": "1201 Western Ave #400, Seattle, WA 98101, USA",
      "network": "ChargePoint",
      "latitude": 47.6057575,
      "longitude": -122.3392178,
      "plugscore": 7.1,
      "connectors": [
        {
          "type": "CCS1",
          "power_kw": 50
        },
        {
          "type": "CHAdeMO",
          "power_kw": 50
        }
      ],
      "distance_km": 0.72,
      "opening_hours": "Open 24/7",
      "distance_miles": 0.45,
      "plugshare_link": "https://www.plugshare.com/location/530859",
      "charging_points": 2,
      "plugshare_location_id": 530859
    }
  ]
}
```

## Quick start

Call the API with a Fous API key (`FOUS_API_KEY`). To create one, turn on Developer mode in Fous Studio, then open Keys & connections → API keys (https://app.fous.com/keys).

```bash
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
: "${FOUS_API_KEY:?Set FOUS_API_KEY before running this example}"

curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 120 \
  -H "Authorization: Bearer $FOUS_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "api": "@plugshare",
  "visibility": "public",
  "operation": "search_chargers",
  "version": 1,
  "input": {
    "location": "Seattle, WA",
    "connector": "CCS",
    "max_results": 5,
    "radius_miles": 8,
    "fast_charging_only": true
  },
  "response": {
    "format": "json"
  }
}'
```

```python
# Save as fous.py and run with python3 fous.py. No packages needed.
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
import json
import os
import urllib.error
import urllib.request

api_key = os.environ.get("FOUS_API_KEY")
if not api_key:
    raise RuntimeError("Set FOUS_API_KEY before running this example")

body = json.loads("{\n  \"api\": \"@plugshare\",\n  \"visibility\": \"public\",\n  \"operation\": \"search_chargers\",\n  \"version\": 1,\n  \"input\": {\n    \"location\": \"Seattle, WA\",\n    \"connector\": \"CCS\",\n    \"max_results\": 5,\n    \"radius_miles\": 8,\n    \"fast_charging_only\": true\n  },\n  \"response\": {\n    \"format\": \"json\"\n  }\n}")
request = urllib.request.Request(
    "https://api.fous.com/v1/query",
    data=json.dumps(body).encode("utf-8"),
    headers={
        "Authorization": f"Bearer {api_key}",
        "Content-Type": "application/json",
    },
    method="POST",
)
try:
    with urllib.request.urlopen(request, timeout=120) as response:
        result = json.load(response)
except urllib.error.HTTPError as error:
    raise RuntimeError(f"HTTP {error.code}: {error.read().decode('utf-8', errors='replace')}") from error
if result.get("success") is False:
    raise RuntimeError(result.get("error", {}).get("message", "Request failed"))
print(json.dumps(result["data"]["output"], indent=2))
```

```typescript
// Save as fous.mts and run with npx tsx fous.mts.
// First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
const apiKey = process.env.FOUS_API_KEY;
if (!apiKey) throw new Error("Set FOUS_API_KEY before running this example");

const response = await fetch("https://api.fous.com/v1/query", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  signal: AbortSignal.timeout(120_000),
  body: JSON.stringify({
  "api": "@plugshare",
  "visibility": "public",
  "operation": "search_chargers",
  "version": 1,
  "input": {
    "location": "Seattle, WA",
    "connector": "CCS",
    "max_results": 5,
    "radius_miles": 8,
    "fast_charging_only": true
  },
  "response": {
    "format": "json"
  }
}),
});
type ApiResult = { success: boolean; data?: { output: unknown }; error?: { message: string } };
const result: ApiResult = await response.json();
if (!response.ok || result.success === false) {
  throw new Error(result.error?.message ?? `HTTP ${response.status}`);
}
if (!result.data) throw new Error("Missing API response data");
console.log(result.data.output);
```

Or describe the data in plain language: send `{"api":"@plugshare","prompt":"Describe the data you need, with every detail"}` to the same URL. Fous fills in the input, runs the method that fits and returns only the fields you asked for; `data.route.calls[].request` is the exact call it made. Routing is free; the run costs the same.

## Use cases

- Find public chargers near a planned destination
- Compare nearby stations by PlugScore
- Filter stations by connector type
- Locate DC fast chargers within a chosen radius
- Review listed costs and opening hours

## FAQ

### Is Fous affiliated with PlugShare?

No. Fous is not affiliated with PlugShare. This workflow reads the public plugshare.com website and returns its data.

### How much does it cost?

Each run costs 1 credit. With pay-as-you-go, a credit costs 1¢; monthly plans cost less per credit.

### Do I need a PlugShare account?

No. You only need a Fous account.

### How current is the data?

Fous gets the data from plugshare.com when you run it; repeating the same request within a day may return the saved result. Fous checks this workflow automatically; it last passed a check on Sep 29, 2026.

### Which public chargers are near a location?

Search chargers finds nearby public charging stations, nearest first, using an address, city, or ZIP code.

### Which nearby stations have a specific connector?

Search chargers can filter stations by connector type, such as CCS.

### Which nearby stations are DC fast chargers?

Search chargers can return only DC fast chargers when fast charging only is selected.

## Related

- [Open Charge Map API](https://fous.com/workflows/open-charge-map.md): Public electric-vehicle charging location listings.
- [Alternative Fuels Data Center API](https://fous.com/workflows/alternative-fuels-data-center.md): U.S. Department of Energy data on alternative fuel stations and vehicles.
- [Tesla API](https://fous.com/workflows/tesla.md): Tesla offers new and certified pre-owned vehicles across the United States and nearby open Supercharger sites, with delivery estimates and opening hours only when available.
- [GasBuddy API](https://fous.com/workflows/gasbuddy.md): GasBuddy finds stations and community-reported fuel prices in the US and Canada, with nearby prices that may be missing or out of date and regional averages that may lag the day.
- [Google Maps API](https://fous.com/workflows/google-maps.md): Google Maps returns nearby places, public place details, up to 100 public reviews, and up to three routes; transit options vary by departure time.
- [OfferUp API](https://fous.com/workflows/offerup.md): Local marketplace for buying and selling items.
- [Cars.com API](https://fous.com/workflows/cars-com.md): Cars.com finds car listings by make, model, and U.S. ZIP code, and provides dealerships’ latest customer reviews when available.
- [OpenStreetMap API](https://fous.com/workflows/openstreetmap.md): OpenStreetMap returns place coordinates, address details, nearby readable place information, and ordered place search results from contributor-created data; results reflect mapped features and may be incomplete or differ from landmarks.
- [All Travel workflows](https://fous.com/workflows/category/travel)
