Alternative Fuel Stations in New York

Usage guide

Go to https://afdc.energy.gov/stations/#/find/nearest to access the full database of alternative fuel station locations nationwide, collected and maintained by the U.S.

Records
5,946
Columns
76
Version
1.0.0
License
NY Open Data Terms of Use

Curated by

· Updated November 27, 2026

Original source: Energy Research and Development Authority (data.ny.gov)

Copy-paste recipes for loading Alternative Fuel Stations in New York into the tools engineers actually use. Every URL below is live and stable.

Quick start

Python (pandas)

import pandas as pd

df = pd.read_csv("https://intellectunited.com/datasets/alternative-fuel-stations-in-new-york/data.csv")

# Summary statistics for every numeric column
print(df.describe())

# Top 10 rows by zip
print(df.sort_values("zip", ascending=False).head(10))

JavaScript (fetch the REST API)

const response = await fetch('https://intellectunited.com/api/v1/datasets/alternative-fuel-stations-in-new-york/records?per_page=100')
const { data, meta } = await response.json()

console.log(`Loaded ${data.length} of ${meta.total} records`)
console.log(data[0])

cURL

# Dataset metadata and schema
curl -s https://intellectunited.com/api/v1/datasets/alternative-fuel-stations-in-new-york

# Search records
curl -s "https://intellectunited.com/api/v1/datasets/alternative-fuel-stations-in-new-york/records?search=example&per_page=25"

# Full download
curl -sLO https://intellectunited.com/datasets/alternative-fuel-stations-in-new-york/data.csv

SQL (SQLite)

-- sqlite3 alternative_fuel_stations_in_new_york.db
.mode csv
.import data.csv alternative_fuel_stations_in_new_york

SELECT fuel_type_code, zip
FROM alternative_fuel_stations_in_new_york
ORDER BY CAST(zip AS REAL) DESC
LIMIT 10;

R

df <- read.csv("https://intellectunited.com/datasets/alternative-fuel-stations-in-new-york/data.csv")
summary(df)

Working with the schema

Column names in the CSV keep their original headers (with units in parentheses). The JSON API and data.json use the snake_case keys listed in the data dictionary, with numbers already cast to numeric types. datapackage.json describes the same schema in the Frictionless Data format, so tools like frictionless, pandas and DuckDB can validate it automatically.

Validate the packagebash
pip install frictionless
frictionless validate https://intellectunited.com/datasets/alternative-fuel-stations-in-new-york/datapackage.json

Cite the data you use

If this dataset helps your work, please cite it. The citation page has APA-style text, BibTeX and CITATION.cff, and always credits the original publisher.

Previous
Statistics