{"uid":"cap_ABDrfjPlex2S2cCbq8_dX","slug":"eia-electricity-data-api-6fe4a2e0","name":"EIA 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://payai.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_ElF9LS3S0QBDK14wYrV1I","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 generation mix by fuel type, regional demand, and retail price by state/sector from EIA grid monitor and retail survey data.","exampleAgentPrompt":"What does the US electricity generation mix look like right now — break it down by fuel type with percentages, using the national grid region?","exampleUseCases":null,"resultDescription":"Returns structured data on US electricity including: generation mix with percentage share by fuel type (coal, gas, solar, wind, nuclear, etc.) for the latest hour; electricity demand by grid region; or average retail electricity price by state and sector (residential, commercial, industrial), optionally with historical data points.","failureModes":["Invalid state code returns error (must be two-letter US state abbreviation or 'US')","Invalid region enum value returns error","Invalid metric enum value returns error","EIA data source unavailability may cause empty or stale results","history parameter out of range (1-120) returns validation error","Payment not included or insufficient USDC returns 402 error"],"whenToPreferThis":"Use this endpoint when you need authoritative US electricity data sourced directly from EIA — including real-time generation mix by fuel type, regional demand tracking, or monthly retail price surveys. Prefer this over general web search when you need structured, cited, machine-readable energy data with consistent schema. Especially useful for energy policy analysis, sustainability reporting, utility cost benchmarking, or monitoring grid fuel composition over time.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:06:26.482Z","isFirstParty":false}