{"uid":"cap_etJ6joeXqjlQDHvhp5Q7J","slug":"world-power-answer-country-electricity-generation-by-fuel-66967b18","name":"World Power Answer — Country Electricity Generation by Fuel","description":"A crossing for play, feeling, language, science and computation — creating states that do not have names yet.","url":"https://api.lilambd.com/world-power/answer?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["country"],"properties":{"year":{"type":"string","description":"year (integer)"},"country":{"type":"string","description":"ISO 3166-1 alpha-2 or alpha-3, or World"}},"additionalProperties":{"type":"string"}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"data":{"area":"Japan","iso3":"JPN","year":2025,"by_fuel_twh":{"gas":337.57,"oil":25.39,"coal":330.08,"wind":12.85,"hydro":73.9,"solar":101.06,"nuclear":94.09,"bioenergy":54.92},"country_iso2":"JP","generation_twh":1029.86,"fossil_share_pct":67.3,"change_vs_previous_year":{"year":2024,"coal_twh":2.95,"solar_twh":4.36}}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.5","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.5/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.5","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.5","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_7x7cJ4btHg52qN3sd-HHo","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.5","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns electricity generation data by fuel type for a given country and year, including fossil share percentage and year-over-year changes.","exampleAgentPrompt":"What was Japan's electricity generation breakdown by fuel type in 2024, including the fossil fuel share and how coal and solar changed compared to the previous year?","exampleUseCases":[{"title":"Country energy mix research","prompt":"Can you pull up Germany's electricity generation by fuel type for 2023 — I want to see the TWh from coal, gas, wind, solar, and nuclear, and what percentage came from fossil fuels?"},{"title":"Global renewable energy tracking","prompt":"What was the total global electricity generation in 2024 and how much came from renewables versus fossil fuels? Use 'World' as the country."},{"title":"Year-over-year coal decline analysis","prompt":"Show me China's electricity generation data for 2023, especially how coal and solar output changed compared to the year before."}],"resultDescription":"A JSON object containing the country name, ISO codes, year, total electricity generation in TWh, a breakdown of generation by fuel type (gas, oil, coal, wind, hydro, solar, nuclear, bioenergy) in TWh, the fossil fuel share as a percentage, and year-over-year changes in coal and solar TWh compared to the previous year.","failureModes":["Missing required 'country' parameter returns an error","Invalid or unrecognized country code may return no data or an error","Requesting a year with no available data may return empty or null values","Misspelled ISO code (e.g. 3-letter instead of 2-letter when only one is supported) may fail silently"],"whenToPreferThis":"Use this endpoint when you need structured, per-country electricity generation statistics broken down by fuel type, with fossil share and year-over-year delta — especially for research, reporting, or energy transition analysis. Prefer this over general web search when you need machine-readable, structured energy data with consistent schema across countries and years.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-04T06:35:13.288Z","isFirstParty":false,"canonicalSlug":"world-power-answer-country-electricity-generation-by-fuel-66967b18"}