BUILD YOUR ESCAPE ROUTE · ✦ CURSOR · HOST IT · ◫ SUPABASE · CONNECT IT · ↯ RELAY · BUILD YOUR ESCAPE ROUTE · ✦ CURSOR · HOST IT · ◫ SUPABASE · CONNECT IT · ↯ RELAY ·
← BACK TO DATABASE

QUERY IT / Energy Commodities And Utilities

🌐

What can you query with EIA Open Data API?

Energy production, consumption, prices and electricity data

THE DECISIONCONTEXTIMPLEMENTATION PROMPTTRADE-OFFS
GEOGRAPHYUS
CONNECTAPI + REST
API KEYfalse
MCPnone

THE DECISION

Source route

# EIA Open Data API ## What It Contains EIA Open Data API is a publisher-operated source for energy production, consumption, prices and electricity data. It offers a documented programmatic route for bounded research queries and operational analysis. Use the official documentation, preserve identifiers and retrieval time, and follow applicable source terms, pagination, and rate limits. The data should be interpreted with its coverage notes and is not a substitute for professional legal, financial, regulatory, or trade advice. ## Search With Codex ```text Use EIA Open Data API only through https://www.eia.gov/opendata/documentation.php. Inspect the official documentation before writing a small Python query for a bounded research question. Respect pagination, rate limits, and error responses; return the documented fields in JSON with the source URL and retrieval timestamp. Do not scrape an unofficial site or invent an endpoint. ``` ## Python Starter Script ```python import json from urllib.request import Request, urlopen url = "https://api.eia.gov/v2/electricity/rto/region-data/data/?api_key=DEMO_KEY&frequency=hourly&data[0]=value&length=1" # Replace with an authorised, documented query. request = Request(url, headers={"User-Agent": "byebuy.ai research (contact: you@example.com)", "Accept": "application/json"}) with urlopen(request, timeout=20) as response: if response.status != 200: raise RuntimeError(f"Unexpected HTTP status: {response.status}") payload = json.load(response) print(json.dumps(payload, indent=2)[:2000]) ``` ## Example Searches - What is the most recent official record for a bounded query? - Which available fields support a reproducible dashboard? - What metadata and retrieval date should accompany an export? ## What You Could Build - A provenance-aware research dashboard using permitted results. - A scheduled alert that records source updates rather than redistributing raw data. - A data-enrichment workflow that preserves the publisher's terms. ## Access and Rights Connect: API + REST. Rights code: M. No API key is required for the documented public route. Follow the official terms and source-specific notices. ## Geography Details Primary coverage is US; use the publisher's metadata for detailed scope. ## Related Databases - Relationships will be added only after targets are independently verified within Query It. ## Sources - [https://www.eia.gov/opendata/documentation.php](https://www.eia.gov/opendata/documentation.php) - [https://www.eia.gov/opendata/documentation.php](https://www.eia.gov/opendata/documentation.php) ## FAQ - **Is this an official route?** Yes; use the linked publisher documentation. - **Can I redistribute results?** Check the linked rights evidence and source-specific terms. - **Does it need credentials?** See Access and Rights. - **Should I scrape the website?** No; use the documented route. - **How current is it?** Check source metadata and the verification date.

COPYABLE IMPLEMENTATION PROMPT

Design a source-aware query workflow for EIA Open Data API.

Source context: Energy production, consumption, prices and electricity data

Use the documented access route, record the exact source and retrieval time for every result, respect rate limits and rights, and distinguish source facts from analysis. Do not invent missing data.

Opening an AI app also copies this prompt as a fallback.

THE USEFUL CORE

What you can query

WHAT TO VERIFY BEFORE USE

What to verify before use

Confirm the source licence, access rules, update cadence, documentation, and whether the data is complete enough for the decision you need to make.

QUESTIONS

What should I verify first?

Start with the official source, current terms or licence, practical setup requirements, and the limits of the recorded catalogue data.

Is this information current?

Last recorded check: 2026-08-17. Verify time-sensitive details with the linked official source.

Can I save this route?

Yes. Create an account or log in, then use the Save button to keep it in your collection.

ACCOUNT ACCESS

LOG IN
OR REGISTER.

Use a secure email link to save routes and pick up where you left off.

Enter your email and we’ll send a secure sign-in link.

NEW ROUTES ADDED WEEKLY · 9,235 CATALOGUE ENTRIES · BUILD · DEPLOY · QUERY · STACK · SAY BYE TO BUY · NEW ROUTES ADDED WEEKLY · 9,235 CATALOGUE ENTRIES · BUILD · DEPLOY · QUERY · STACK · SAY BYE TO BUY ·