Hourly regulated electricity price in Spain (PVPC 2.0TD, mainland) for today, tomorrow…
Hourly regulated electricity price in Spain (PVPC 2.0TD, mainland) for today, tomorrow (published ~20:30) or any date: every hour in EUR/kWh, daily average, cheapest and most expensive hours and best 3-hour window. Red Electrica de Espana data.
by api.vextorium.com · discovered, not yet claimed by its owner · updated 2026-10-06
Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.
What it does
Hourly regulated electricity price in Spain (PVPC 2.0TD, mainland) for today, tomorrow (published ~20:30) or any date: every hour in EUR/kWh, daily average, cheapest and most expensive hours and best 3-hour window. Red Electrica de Espana data.
Tags: electricity · spain · pvpc · energy · prices · bazaar
Call contract
- Method
- POST
- Input
- json
- Output
- json
- Last paid call
- 2026-10-06
{
"fecha": "hoy"
}{
"fecha": "2026-10-02",
"horas": [
{
"eur_kwh": 0.1609,
"eur_mwh": 160.9,
"hora": "00:00"
},
{
"eur_kwh": 0.14965,
"eur_mwh": 149.65,
"hora": "01:00"
},
{
"eur_kwh": 0.14555,
"eur_mwh": 145.55,
"hora": "02:00"
},
{
"eur_kwh": 0.1453,
"eur_mwh": 145.3,
"hora": "03:00"
},
{
"eur_kwh": 0.15241,
"eur_mwh": 152.41,
"hora": "04:00"
},
{
"eur_kwh": 0.17789,
"eur_mwh": 177.89,
"hora": "05:00"
},
{
"eur_kwh": 0.2226,
"eur_mwh": 222.6,
"hora": "06:00"
},
{
"eur_kwh": 0.27434,
"eur_mwh": 274.34,
"hora": "07:00"
},
{
"eur_kwh": 0.3229,
"eur_mwh": 322.9,
"hora": "08:00"
},
{
"eur_kwh": 0.24509,
"eur_mwh": 245.09,
"hora": "09:00"
},
{
"eur_kwh": 0.24068,
"eur_mwh": 240.68,
"hora": "10:00"
},
{
"eur_kwh": 0.204,
"eur_mwh": 204,
"hora": "11:00"
},
{
"eur_kwh": 0.20125,
"eur_mwh": 201.25,
"hora": "12:00"
},
{
"eur_kwh": 0.19891,
"eur_mwh": 198.91,
"hora": "13:00"
},
{
"eur_kwh": 0.1297,
"eur_mwh": 129.7,
"hora": "14:00"
},
{
"eur_kwh": 0.13736,
"eur_mwh": 137.36,
"hora": "15:00"
},
{
"eur_kwh": 0.14452,
"eur_mwh": 144.52,
"hora": "16:00"
},
{
"eur_kwh": 0.16911,
"eur_mwh": 169.11,
"hora": "17:00"
},
{
"eur_kwh": 0.31029,
"eur_mwh": 310.29,
"hora": "18:00"
},
{
"eur_kwh": 0.35435,
"eur_mwh": 354.35,
"hora": "19:00"
},
{
"eur_kwh": 0.37978,
"eur_mwh": 379.78,
"hora": "20:00"
},
{
"eur_kwh": 0.34402,
"eur_mwh": 344.02,
"hora": "21:00"
},
{
"eur_kwh": 0.2559,
"eur_mwh": 255.9,
"hora": "22:00"
},
{
"eur_kwh": 0.22908,
"eur_mwh": 229.08,
"hora": "23:00"
}
],
"mas_baratas": [
{
"eur_kwh": 0.1297,
"eur_mwh": 129.7,
"hora": "14:00"
},
{
"eur_kwh": 0.13736,
"eur_mwh": 137.36,
"hora": "15:00"
},
{
"eur_kwh": 0.14452,
"eur_mwh": 144.52,
"hora": "16:00"
}
],
"mas_caras": [
{
"eur_kwh": 0.37978,
"eur_mwh": 379.78,
"hora": "20:00"
},
{
"eur_kwh": 0.35435,
"eur_mwh": 354.35,
"hora": "19:00"
},
{
"eur_kwh": 0.34402,
"eur_mwh": 344.02,
"hora": "21:00"
}
],
"media_eur_kwh": 0.22065,
"mejor_franja_3h": {
"desde": "14:00",
"media_eur_kwh": 0.13719
},
"nota": "Término de energía del PVPC con peajes y cargos, sin impuestos. Fuente: Red Eléctrica de España (REE).",
"zona": "Península"
}Use with an agent
- Discover. Agents find this listing with
GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP toolsearch_resources, or/discovery/resources. - Inspect. Fetch
/resources/37456.jsonfor the price and payment options. - Pay. Call
GET https://api.vextorium.com/precio-luz-espana-pago. The provider answers402with its payment requirements. An x402 client signs one of the options below and retries withPAYMENT-SIGNATURE. - Execute. The provider returns
200with the data. Agent Bazaar is not in the request path and never sees your payment.
For humans
You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base, Solana, Polygon, Optimism, eip155:5042, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.
Pricing & payment
- Price
- $0.004 / request
- Protocol
- x402 v2
- Auth
- No account or API key. Pay per request.
- Networks
- Base, Solana, Polygon, Optimism, eip155:5042
- Demand
- 2 calls · 2 unique payers in 30d (public x402 Bazaar data)
x402 payment requirements
| Scheme | Network | Asset | Amount | Pay to | Timeout |
|---|---|---|---|---|---|
| exact | Base eip155:8453 | USDC | $0.004 | 0xb9f06D2734B7E9D7b21B64C4D8b95bd774b71aCf | 300s |
| exact | Solana solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp | USDC | $0.004 | HcjfmZLgWRZzwj4deEiS7pewc4KBYSw39mW5nTyt3pz2 | 300s |
| exact | Polygon eip155:137 | USDC | $0.004 | 0xb9f06D2734B7E9D7b21B64C4D8b95bd774b71aCf | 300s |
| exact | Optimism eip155:10 | 0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85 | 4000 | 0xb9f06D2734B7E9D7b21B64C4D8b95bd774b71aCf | 604900s |
| exact | eip155:5042 eip155:5042 | 0x3600000000000000000000000000000000000000 | 4000 | 0xb9f06D2734B7E9D7b21B64C4D8b95bd774b71aCf | 604900s |
accepts[] (raw JSON)
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0xb9f06D2734B7E9D7b21B64C4D8b95bd774b71aCf",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "4000",
"amountUsd": 0.004,
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
"payTo": "HcjfmZLgWRZzwj4deEiS7pewc4KBYSw39mW5nTyt3pz2",
"asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount": "4000",
"amountUsd": 0.004,
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "eip155:137",
"payTo": "0xb9f06D2734B7E9D7b21B64C4D8b95bd774b71aCf",
"asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
"amount": "4000",
"amountUsd": 0.004,
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "eip155:10",
"payTo": "0xb9f06D2734B7E9D7b21B64C4D8b95bd774b71aCf",
"asset": "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",
"amount": "4000",
"maxTimeoutSeconds": 604900
},
{
"scheme": "exact",
"network": "eip155:5042",
"payTo": "0xb9f06D2734B7E9D7b21B64C4D8b95bd774b71aCf",
"asset": "0x3600000000000000000000000000000000000000",
"amount": "4000",
"maxTimeoutSeconds": 604900
}
]Schemas
Output schema (JSON Schema)
{
"properties": {
"example": {
"properties": {
"fecha": {
"type": [
"string",
"null"
]
},
"horas": {
"items": {
"properties": {
"eur_kwh": {
"type": [
"null",
"number"
]
},
"eur_mwh": {
"type": [
"null",
"number"
]
},
"hora": {
"type": [
"null",
"string"
]
}
},
"type": [
"null",
"object"
]
},
"type": [
"array",
"null"
]
},
"mas_baratas": {
"items": {
"properties": {
"eur_kwh": {
"type": [
"null",
"number"
]
},
"eur_mwh": {
"type": [
"null",
"number"
]
},
"hora": {
"type": [
"null",
"string"
]
}
},
"type": [
"null",
"object"
]
},
"type": [
"array",
"null"
]
},
"mas_caras": {
"items": {
"properties": {
"eur_kwh": {
"type": [
"null",
"number"
]
},
"eur_mwh": {
"type": [
"null",
"number"
]
},
"hora": {
"type": [
"null",
"string"
]
}
},
"type": [
"null",
"object"
]
},
"type": [
"array",
"null"
]
},
"media_eur_kwh": {
"type": [
"number",
"null"
]
},
"mejor_franja_3h": {
"properties": {
"desde": {
"type": [
"string",
"null"
]
},
"media_eur_kwh": {
"type": [
"number",
"null"
]
}
},
"type": [
"object",
"null"
]
},
"nota": {
"type": [
"string",
"null"
]
},
"zona": {
"type": [
"string",
"null"
]
}
},
"type": [
"object",
"null"
]
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}Example shape — generated from the schema, not a captured live response
{
"example": {
"fecha": "string",
"horas": [
{
"eur_kwh": null,
"eur_mwh": null,
"hora": null
}
],
"mas_baratas": [
{
"eur_kwh": null,
"eur_mwh": null,
"hora": null
}
],
"mas_caras": [
{
"eur_kwh": null,
"eur_mwh": null,
"hora": null
}
],
"media_eur_kwh": 0,
"mejor_franja_3h": {
"desde": "string",
"media_eur_kwh": 0
},
"nota": "string",
"zona": "string"
},
"type": "string"
}Examples
curl "https://api.vextorium.com/precio-luz-espana-pago"
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paidconst res = await fetch("https://api.vextorium.com/precio-luz-espana-pago");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}import httpx
res = httpx.get("https://api.vextorium.com/precio-luz-espana-pago")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerDetails
- Provider
- api.vextorium.com
- Endpoint
- https://api.vextorium.com/precio-luz-espana-pago
- Machine-readable
/resources/37456.json