Check the Setup
- Python 3.10 or newer
- A notebook environment such as Jupyter or Google Colab
- A free NLR API key saved in the NREL_API_KEY environment variable
Alternative-fuel and EV charging station locations for building corridor maps and local charging finders.
Report a ProblemFrom Source to Product Signal
The Alternative Fuel Stations API returns station locations that power the Alternative Fuels Data Center locator. Start with electric stations in one state and a small limit. A listed station can be temporarily unavailable, network-specific, or restricted to fleets.
Install the packages, then run the notebook cell.
python -m pip install pandas requests
import os
import pandas as pd
import requests
response = requests.get(
"https://developer.nlr.gov/api/alt-fuel-stations/v1.json",
params={
"api_key": os.environ["NREL_API_KEY"],
"fuel_type": "ELEC",
"state": "CO",
"status": "E",
"limit": 20,
},
timeout=30,
)
response.raise_for_status()
stations = pd.DataFrame(response.json()["fuel_stations"])
stations["retrieved_at_utc"] = pd.Timestamp.now(tz="UTC")
print(stations[["station_name", "city", "latitude", "longitude", "ev_connector_types"]].head(20))Test a Useful Signal
Test whether a bounded station extract can power a local charging finder.
National Renewable Energy Laboratory is a government source. Last verified 2026-08-17. Temporal coverage: continuously updated station inventory.