{"uid":"cap_jIooB1p8NwqTmiWcUsrYP","slug":"eia-us-electricity-data-api-829f532a","name":"EIA US Electricity Data API","description":"US electricity data from the EIA grid monitor and retail survey: generation mix by fuel type with percentage breakdown (latest hour), demand by region, and average retail price by state/sector (monthly).","url":"https://api.agentstools.dev/energy/electricity","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{"state":{"type":"string","description":"Two-letter state code or US for retail_price (default US)"},"metric":{"enum":["generation_mix","demand","retail_price"],"type":"string","description":"Which electricity series (default generation_mix)"},"region":{"enum":["us","california","carolinas","central","florida","mid_atlantic","midwest","new_england","new_york","northwest","southeast","southwest","tennessee","texas"],"type":"string","description":"Grid region for generation_mix/demand (default us)"},"history":{"type":"integer","maximum":120,"minimum":1,"description":"Recent data points for demand/retail_price"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.008","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.008/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_C4PHtT35R2mzE9iPqp9Vv","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.008","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns US electricity data including generation mix by fuel type, regional demand, and average retail price by state/sector from EIA grid monitor and retail surveys.","exampleAgentPrompt":"What's the current electricity generation mix for Texas — show me the fuel type breakdown — and also pull the last 12 data points of demand for the same region?","exampleUseCases":null,"resultDescription":"Returns structured electricity data: for generation_mix, a percentage breakdown by fuel type (natural gas, coal, wind, solar, nuclear, hydro, etc.) for the latest hour in the selected region; for demand, recent demand values by region; for retail_price, average monthly retail electricity price by state and sector (residential, commercial, industrial).","failureModes":["Invalid region enum value returns 400 or empty result","Unsupported state code for retail_price returns error or empty series","History value out of range (>120 or <1) rejected by schema validation","EIA data source unavailable causes upstream timeout or stale data response","Missing required 'metric' or 'method' field in input causes validation error"],"whenToPreferThis":"Use this endpoint when you need current or recent US electricity data sourced from the official EIA — particularly for grid generation mix by fuel type (latest hour), regional demand trends, or state-level retail electricity pricing by sector. Prefer this over general web search when you need structured, cited EIA data ready for analysis or comparison without scraping.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:11:59.787Z","isFirstParty":false}