# NREL EV Charging Station Network Scraper (`groundplanes/nrel-ev-charging-station-network-scraper`) Actor

Extract US DOE Alternative Fuels Data Center (AFDC, NLR formerly NREL) commercial EV charging stations, DC fast charging ports, networks, connector types and host facility metadata by state, fuel type, connector and status. Runs on DEMO_KEY or the buyer's own free api.data.gov key.

- **URL**: https://apify.com/groundplanes/nrel-ev-charging-station-network-scraper.md
- **Developed by:** [Groundplane Labs](https://apify.com/groundplanes) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.10 / 1,000 stations

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## NREL Commercial EV Charging Stations & Host Site Scraper

Extract official US Department of Energy (DOE) Alternative Fuels Data Center (AFDC / NREL) commercial electric vehicle charging station locations, DC fast charging ports, charging network operators (Tesla Supercharger, Electrify America, EVgo, ChargePoint), connector standards, and host facility metadata across all US states.

> This actor is an independent product and is not affiliated with, endorsed by, or sponsored by the National Renewable Energy Laboratory (NREL) or the US Department of Energy (DOE).

### Source

Official US DOE Alternative Fuels Data Center (AFDC) Alternative Fuel Stations REST API v1, backed by api.data.gov. The dataset is updated daily: AFDC receives daily updates from many networked providers, and other providers update on a regular cycle. It is not real-time charger availability.

Domain note (verified live 2026-11-01): the laboratory was renamed the National Laboratory of the Rockies (NLR). The actor queries `developer.nlr.gov` first (HTTP 200, live data); the legacy `developer.nrel.gov` API endpoint no longer returns a response, and is kept only as a fallback address.

### Important Guidance on Station Operating Statuses

- **Status E (Available):** Operational stations open to public or fleet charging.
- **Status P (Planned):** Proposed stations under development or permitted.
- **Status T (Temporarily Unavailable):** Stations reporting temporary offline status. *Note: Status T indicates a station reported itself temporarily unavailable; it does not prove physical equipment damage or an urgent repair need. Status T and P listings serve as commercial prospecting signals, not confirmed failure diagnostics.*

### What it does

- **DC Fast Charging & Level 2 Port Counts:** Filter stations by minimum DC fast charging ports (e.g. `>= 1` or `>= 4` ports) to identify high-power charging plazas.
- **Network & Host Categorization:** Classify sites by network (Tesla, EVgo, Electrify America, Blink, Shell Recharge) and host facility type (Shopping Centers, Hotels, Gas Stations, Municipal Utilities).
- **Flexible Credential Model:** Runs keyless out of the box using public `DEMO_KEY` (30 requests/hour), or accepts your free `api.data.gov` developer key in `nrelApiKey` for up to 1,000 requests/hour. The run log and status report which key class was used, never exposing secret key strings.
- **State-Chunked Resilience:** Queries states individually so that an intermittent timeout on one state never voids data gathered from other states.

### Who it's for

- **EV Fleet & Delivery Operators:** Identify commercial high-speed charging hubs along specific regional transport routes.
- **Site Acquisition & Real Estate Developers:** Benchmark host facility types and locate charging deserts adjacent to retail or hospitality properties.
- **EVSE Equipment & Maintenance Contractors:** Prospect for expanding networks, planned host sites, and equipment upgrades.

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `nrelApiKey` | string (secret) | `""` | Optional free `api.data.gov` API key. When blank, uses `DEMO_KEY`. |
| `states` | array | `["CA", "TX", "FL", "NY", "WA"]` | 2-letter US state postal codes. |
| `fuelTypes` | array | `["ELEC"]` | Fuel types (ELEC=Electric, HY=Hydrogen, CNG, LNG, LPG, E85). |
| `evConnectorTypes` | array | `["J1772COMBO", "TESLA"]` | Connector plugs (J1772COMBO / CCS, TESLA / NACS, CHADEMO, J1772). |
| `statusCodes` | string | `"E,P,T"` | Comma-separated: E (Available), P (Planned), T (Temporarily Unavailable). |
| `minDcFastPorts` | integer | `1` | Minimum number of DC Fast Charging ports (set 0 for all). |
| `maxItems` | integer | `2000` | Maximum charging stations to output. |

#### Example input

```json
{
  "states": ["CA", "TX", "FL", "NY", "WA"],
  "fuelTypes": ["ELEC"],
  "evConnectorTypes": ["J1772COMBO", "TESLA"],
  "minDcFastPorts": 1,
  "maxItems": 1000
}
```

#### Canary input (labeled canary)

```json
{
  "states": ["WA"],
  "fuelTypes": ["HY"],
  "evConnectorTypes": [],
  "statusCodes": "E,P,T",
  "minDcFastPorts": 0,
  "maxItems": 2000
}
```

The canary is a small, stable query: on 2026-11-01 it delivered exactly 2 rows, matching the API's own `total_results` of 2 for the same filters, with a Complete status.

### Output

One row per charging facility record.

| Field | Type | Description |
|---|---|---|
| `stationId` | integer | Unique AFDC/NREL station ID. |
| `stationName` | string | Public station name. |
| `statusCode` | string | `E` (Available), `P` (Planned), `T` (Temp Unavailable). |
| `evNetwork` | string or null | Operating network brand. |
| `facilityType` | string or null | Facility classification (Shopping Center, Hotel, Utility). |
| `streetAddress` | string or null | Street address. |
| `city` | string or null | City. |
| `state` | string | 2-letter US state code. |
| `zip` | string or null | ZIP code. |
| `stationPhone` | string or null | Public business contact phone. |
| `evDcFastCount` | integer | Number of operational DC Fast Charging ports. |
| `evLevel2EvseNum` | integer or null | Number of Level 2 charging ports. |
| `evConnectorTypes` | array | List of connector types available. |
| `evPricingText` | string or null | Published session pricing. |
| `ownerTypeCode` | string or null | Ownership type code (P=Private, LG=Local Gov, FG=Federal). |
| `dateLastConfirmed` | string or null | Date information was last verified (YYYY-MM-DD). |
| `openDate` | string or null | Date station opened (YYYY-MM-DD). |
| `latitude` | number or null | Latitude coordinate. |
| `longitude` | number or null | Longitude coordinate. |

#### Sample row (real NREL AFDC data)

```json
{
  "stationId": 1517,
  "stationName": "LADWP - Truesdale Center",
  "statusCode": "E",
  "evNetwork": "SHELL_RECHARGE",
  "facilityType": "UTILITY",
  "streetAddress": "11797 Truesdale St",
  "city": "Sun Valley",
  "state": "CA",
  "zip": "91352",
  "evDcFastCount": 2,
  "evLevel2EvseNum": 57,
  "evConnectorTypes": [
    "CHADEMO",
    "J1772",
    "J1772COMBO"
  ],
  "ownerTypeCode": "LG",
  "dateLastConfirmed": "2025-11-13",
  "openDate": "1999-10-15",
  "latitude": 34.248319,
  "longitude": -118.387971
}
```

Notes on output honesty: delivered rows are reconciled per state against the API's `total_results` for the same filters; a mismatch ends the run PARTIAL naming the state. A source date or number value in a format the actor cannot parse is never shipped as a wrong value: dates, Level 2 counts and coordinates ship null, a row whose DC fast port count is unparseable is dropped, and the run ends PARTIAL stating how many values and rows were affected.

### Troubleshooting

- **DEMO_KEY Rate Limits:** If running keyless on `DEMO_KEY` across many states, the API limits requests to 30 per hour per IP. Obtain a free key at [api.data.gov](https://api.data.gov) and enter it in `nrelApiKey` for 1,000 requests/hour.
- **Zero Matches:** If zero records match, lower `minDcFastPorts` to 0 or expand connector types.
- **Caps:** A run that hits `maxItems` or the charge cap ends PARTIAL naming the cap; that is a limit you set, not a source problem.

If this keeps happening, please open an issue on this actor's Issues tab and we'll fix it fast.

### Changelog

- 0.1.1 (2026-11-01, review fix round): reconstructed the missing `.actor` definition files (actor, input, output and dataset schemas; the key input is a secret field, categories BUSINESS, $50 default charge cap, 256 MB, 1200 s). Fixed an HTTP-date `Retry-After` crash in the retry helper. Added per-state reconciliation against the API `total_results` and value-format drift handling: unparseable dates, counts and coordinates are disclosed in a PARTIAL status instead of being shipped as wrong values in a Complete. Documented the verified NLR domain move and the daily source cadence.
- 0.1.0 (2026-11-01): initial build by Antigravity.

# Actor input Schema

## `evConnectorTypes` (type: `array`):

Connector plugs to require (J1772COMBO / CCS, TESLA / NACS, CHADEMO, J1772). Applied only when ELEC is among the fuel types.

## `fuelTypes` (type: `array`):

Fuel types (ELEC=Electric, HY=Hydrogen, CNG, LNG, LPG, E85).

## `maxItems` (type: `integer`):

Maximum charging stations to output.

## `minDcFastPorts` (type: `integer`):

Minimum number of DC fast charging ports (set 0 for all).

## `nrelApiKey` (type: `string`):

Optional. Your free api.data.gov API key. When blank, the actor runs on DEMO_KEY (30 requests/hour per IP; a free key allows 1,000 requests/hour). The run status reports which key class was used, never the value.

## `states` (type: `array`):

2-letter US state postal codes.

## `statusCodes` (type: `string`):

Comma-separated station statuses: E (Available), P (Planned), T (Temporarily Unavailable).

## Actor input object example

```json
{
  "evConnectorTypes": [
    "J1772COMBO",
    "TESLA"
  ],
  "fuelTypes": [
    "ELEC"
  ],
  "maxItems": 2000,
  "minDcFastPorts": 1,
  "states": [
    "CA",
    "TX",
    "FL",
    "NY",
    "WA"
  ],
  "statusCodes": "E,P,T"
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("groundplanes/nrel-ev-charging-station-network-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("groundplanes/nrel-ev-charging-station-network-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call groundplanes/nrel-ev-charging-station-network-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,groundplanes/nrel-ev-charging-station-network-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/EHu4yvymVbtza516a/builds/ZbUeXBZlYs6YaZZT1/openapi.json
