{"uid":"cap_Fc9JgpQ2KmhM70oLnJMyf","slug":"spain-electricity-generation-mix-api-cb5b7e42","name":"Spain Electricity Generation Mix API","description":"Spain's electricity generation mix for a day: MWh and share by technology (wind, solar, nuclear, combined cycle, hydro...) and renewable percentage. Red Electrica de Espana data.","url":"https://api.vextorium.com/mix-electrico-espana-pago?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":[],"properties":{"fecha":{"type":"string","description":"YYYY-MM-DD (default yesterday)"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":["object","null"],"properties":{"fecha":{"type":["string","null"]},"fuente":{"type":["string","null"]},"tecnologias":{"type":["array","null"],"items":{"type":["null","object"],"properties":{"mwh":{"type":["null","number"]},"renovable":{"type":["boolean","null"]},"porcentaje":{"type":["null","number"]},"tecnologia":{"type":["null","string"]}}}},"renovable_pct":{"type":["number","null"]},"generacion_total_mwh":{"type":["number","null"]}}}}}}},"responseSchema":{"type":"json","example":{"fecha":"2026-10-01","fuente":"Red Eléctrica de España (REE), sistema nacional","tecnologias":[{"mwh":181158,"renovable":false,"porcentaje":22.41,"tecnologia":"Ciclo combinado"},{"mwh":169114,"renovable":true,"porcentaje":20.92,"tecnologia":"Solar fotovoltaica"},{"mwh":165997.8,"renovable":false,"porcentaje":20.53,"tecnologia":"Nuclear"},{"mwh":136284.9,"renovable":true,"porcentaje":16.86,"tecnologia":"Eólica"},{"mwh":66579.2,"renovable":true,"porcentaje":8.24,"tecnologia":"Hidráulica"},{"mwh":36823.3,"renovable":false,"porcentaje":4.55,"tecnologia":"Cogeneración"},{"mwh":11469,"renovable":false,"porcentaje":1.42,"tecnologia":"Turbina de vapor"},{"mwh":10657.4,"renovable":true,"porcentaje":1.32,"tecnologia":"Otras renovables"},{"mwh":9104.5,"renovable":true,"porcentaje":1.13,"tecnologia":"Solar térmica"},{"mwh":8530.1,"renovable":false,"porcentaje":1.06,"tecnologia":"Motores diésel"},{"mwh":5086.5,"renovable":false,"porcentaje":0.63,"tecnologia":"Carbón"},{"mwh":3213,"renovable":false,"porcentaje":0.4,"tecnologia":"Turbina de gas"},{"mwh":2921.8,"renovable":false,"porcentaje":0.36,"tecnologia":"Residuos no renovables"},{"mwh":1510.6,"renovable":true,"porcentaje":0.19,"tecnologia":"Residuos renovables"}],"renovable_pct":48.64,"generacion_total_mwh":808450.1}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_g7JVq3a4jVSfV1et_d7fY","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns Spain's daily electricity generation breakdown by technology (wind, solar, nuclear, hydro, etc.) in MWh and percentage share, including total renewable percentage, sourced from Red Eléctrica de España.","exampleAgentPrompt":"What was Spain's electricity generation mix on 2025-03-15? I want to know how many MWh came from each source — wind, solar, nuclear, hydro, combined cycle — and what percentage of the total was renewable.","exampleUseCases":[{"title":"Daily renewable energy monitoring","prompt":"Pull up Spain's electricity generation mix for yesterday and tell me what percentage came from renewables versus fossil fuels, broken down by technology."},{"title":"Solar generation trend research","prompt":"How many MWh did Spain generate from solar photovoltaic on 2024-06-21, and what share of total generation did that represent?"},{"title":"Grid decarbonization reporting","prompt":"I'm writing a report on Spain's power grid — can you get me the full generation breakdown for 2024-01-01, including which technologies are renewable and the total renewable percentage?"}],"resultDescription":"A JSON object containing the queried date, data source attribution (Red Eléctrica de España), an array of technology entries each with name, MWh generated, percentage of total, and a renewable boolean flag, plus the overall total generation in MWh and aggregate renewable percentage.","failureModes":["Date not yet available — REE data may lag by 1-2 days; defaults to yesterday if no date provided","Invalid date format returns an error — must be YYYY-MM-DD","Future dates return no data","Very old historical dates may not be available"],"whenToPreferThis":"Use this endpoint when you need official, structured daily electricity generation data for Spain broken down by technology with renewable flagging. Prefer this over scraping REE's website directly or using generic energy databases, especially when you need machine-readable MWh figures and renewable percentages for a specific date.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T00:41:31.766Z","isFirstParty":false,"canonicalSlug":"spain-electricity-generation-mix-api-cb5b7e42"}