Query the OpenEI Utility Rate Database (URDB) API for tariff structures

domain: openei.org · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Register for a free API key at openei.org and review the URDB API tutorial at en.openei.org/wiki/Help:US_Utility_Rate_Database_API_Tutorial.
  2. Query the utility rate list endpoint at apps.openei.org/services/util_rates.json (or the equivalent current endpoint from the services page) passing parameters: version, format (json), api_key, and filters such as eia (EIA utility ID), sector (Residential/Commercial/Industrial), or address/lat/lon/radius for geographic lookup.
  3. Parse the response array; each rate object contains a label (unique rate ID), name, utility, sector, and a URI pointing to the full rate detail.
  4. Fetch the full rate structure by querying the rate detail endpoint with the rate's label; the response includes energyratestructure (tier/TOU energy charges as nested arrays), flatdemandstructure, demandratestructure, fixedmonthlycharge, minmonthlycharge, and peakkwcapacitymin.
  5. Decode the energyratestructure as a 2D array indexed by [period][tier] where each element contains a rate in $/kWh and optional maximum kWh threshold for the tier; cross-reference with energyweekdayschedule and energyweekendschedule to map periods to hours.
  6. Supplement URDB data with utility-published tariff PDFs for validation, as URDB rates may lag official filings by weeks to months.

Known gotchas

Related routes

look up a specific utility's tariff structure from the OpenEI Utility Rate Database (URDB) using the getpage parameter and parse tiered energy/demand rate arrays
openei.org · 6 steps · unrated
Look up utility electricity rate structures via the OpenEI Utility Rate Database API
openei.org · 5 steps · unrated
Query electricity generation and retail price data from the EIA API v2
api.eia.gov · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans