# NREL Alternative Fuels Station Locator (via 2s.io)

> NREL Alternative Fuels Station Locator (via 2s.io) is a paid API for AI agents from 2s.io, paid per call via x402, $0.0012/call, status unknown (last checked 2026-09-14).

Search and filter US alternative-fuel stations (EV, CNG, hydrogen, biodiesel, etc.) by location, fuel type, status, and access code using NREL AFDC data.

## Facts

- Endpoint: GET https://2s.io/api/energy/fuel-stations
- Price: $0.0012/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nrel-alternative-fuels-station-locator-via-2s-io-c0d3731c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8HoN3NbaRJS6yY0Fqny2Z

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability nrel-alternative-fuels-station-locator-via-2s-io-c0d3731c
```

Example prompt: Can you find all available public EV charging stations within 15 miles of coordinates 37.7749, -122.4194, and show me what connector types and charger levels they offer?

## When to prefer this

Use this endpoint when you need authoritative, government-sourced data on US alternative-fuel station locations, especially for EV trip planning, fleet routing with CNG/LNG/hydrogen, or EV infrastructure analysis. Prefer this over consumer apps when you need structured programmatic access with rich filtering (fuel type, access, network, status) and precise geospatial queries.

## Known failure modes

- Missing location parameter (lat/lon, zip, or state required) — returns 400 or empty result
- Invalid fuel type code returns validation error
- Radius out of range (must be 0.1–500 miles) returns error
- No stations found in the specified area returns empty array
- Invalid state abbreviation returns no results
- EV network filter with non-existent network name returns empty results

## How this service works

Locate alternative-fuel stations across the US via NREL Alternative Fuels Data Center. Search by lat/lon + radius (miles), state, or zip. Filter by fuelType (BD=Biodiesel | CNG=Compressed Natural Gas | ELEC=Electric vehicle charging | E85=Ethanol | HY=Hydrogen | LNG=Liquefied Natural Gas | LPG=Propane | RD=Renewable Diesel), status (E=Available | P=Planned | T=Temporarily Unavailable), access (public/private), and EV network. For EV chargers, returns connector types (J1772, CHAdeMO, Tesla, etc.), Level 1/2/DC-fast counts, pricing, and access hours. Indispensable for trip-planning agents, fleet logistics, EV-adoption analysis.

## Output

Returns a list of alternative-fuel stations matching the query, each with name, address, fuel type, station status, access type, access hours, pricing, EV connector types (J1772, CHAdeMO, Tesla, CCS, etc.), Level 1/2/DC-fast charger counts, EV network affiliation, and geographic coordinates.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "lat": 40.7128,
   "lon": -74.006,
   "limit": 10,
   "radius": 15,
   "status": "E",
   "fuelType": "ELEC",
   "accessCode": "public"
  }
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "properties": {
      "lat": {
       "type": "number",
       "maximum": 90,
       "minimum": -90
      },
      "lon": {
       "type": "number",
       "maximum": 180,
       "minimum": -180
      },
      "zip": {
       "type": "string"
      },
      "limit": {
       "type": "integer",
       "default": 25,
       "maximum": 200,
       "minimum": 1
      },
      "state": {
       "type": "string"
      },
      "radius": {
       "type": "number",
       "default": 25,
       "maximum": 500,
       "minimum": 0.1
      },
      "status": {
       "enum": [
        "all",
        "E",
        "P",
        "T"
       ],
       "type": "string",
       "default": "E"
      },
      "network": {
       "type": "string"
      },
      "fuelType": {
       "enum": [
        "BD",
        "CNG",
        "ELEC",
        "E85",
        "HY",
        "LNG",
        "LPG",
        "RD"
       ],
       "type": "string",
       "description": "Comma-separated codes."
      },
      "accessCode": {
       "enum": [
        "all",
        "public",
        "private"
       ],
       "type": "string",
       "default": "all"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nrel-alternative-fuels-station-locator-via-2s-io-c0d3731c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2s.io](https://www.zero.xyz/host/2s.io/llms.txt)
