spain-agent-toolkit.spain-agent-toolkit.workers.dev/v1/es/electricity/pvpc
Spain's regulated household electricity price (PVPC, peninsula) for today or tomorrow, hour by hour, with the cheapest hours and the cheapest 2h/3h windows. Use when an agent must schedule appliances/EV charging or answer 'when is electricity cheapest in Spain today/tomorrow'. Data: Preciluz (preciluz.com, CC-BY-4.0) from REE/ESIOS.
GET
https://spain-agent-toolkit.spain-agent-toolkit.workers.dev/v1/es/electricity/pvpcUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://spain-agent-toolkit.spain-agent-toolkit.workers.dev/v1/es/electricity/pvpc?day=today");
console.log(await res.json());Example input
{
"day": "today"
}More from Spain Agent Toolkit
- es.redtapeapi.com/v1/es/electricity/pvpcSpain's regulated household electricity price (PVPC, peninsula) for today or tomorrow, hour by hour, with the cheapest hours and the cheapest 2h/3h windows. Use when an agent must schedule appliances/EV charging or answer 'when is electricity cheapest in Spain today/tomorrow'. Data: Preciluz (preciluz.com, CC-BY-4.0) from REE/ESIOS.0.002
- spain-agent-toolkit.spain-agent-toolkit.workers.dev/v1/iban/validateValidate an IBAN (length per country + mod-97 checksum; for Spain also the national DC check digits) offline. Stores nothing. Use before SEPA payments or invoices.0.005
