16trust / 100

Spain Power Mix

by Vextorium in Other

x402 APIFailing, checked 4 h ago

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.

POST https://api.vextorium.com/v1/spain-power-mix

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
0.0%
Response time
- typical, - slowest 5%
Last check
4 h ago: Amount "0.004" is not in atomic token units
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://api.vextorium.com/v1/spain-power-mix" \
  -H "content-type: application/json" \
  -d '{}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.vextorium.com%2Fv1%2Fspain-power-mix
const res = await pay("https://api.vextorium.com/v1/spain-power-mix", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({}),
});
console.log(await res.json());

Example input

{}

Example output

{
  "date": "2026-10-01",
  "renewable_pct": 48.64,
  "source": "Red Electrica de Espana (REE), national system",
  "technologies": [
    {
      "mwh": 181158,
      "percentage": 22.41,
      "renewable": false,
      "technology": "Combined cycle"
    },
    {
      "mwh": 169114,
      "percentage": 20.92,
      "renewable": true,
      "technology": "Solar PV"
    }
  ],
  "total_generation_mwh": 808450.1
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
4 h agoAmount "0.004" is not in atomic token units40283 ms$0.004
8 h agoAmount "0.004" is not in atomic token units402172 ms$0.004
13 h agoAmount "0.004" is not in atomic token units402120 ms$0.004
17 h agoAmount "0.004" is not in atomic token units40277 ms$0.004
21 h agoAmount "0.004" is not in atomic token units40273 ms$0.004
25 h agoAmount "0.004" is not in atomic token units40288 ms$0.004
29 h agoAmount "0.004" is not in atomic token units40291 ms$0.004
33 h agoAmount "0.004" is not in atomic token units40280 ms$0.004
37 h agoAmount "0.004" is not in atomic token units40281 ms$0.004
41 h agoAmount "0.004" is not in atomic token units402147 ms$0.004
45 h agoAmount "0.004" is not in atomic token units40285 ms$0.004
2 days agoAmount "0.004" is not in atomic token units40276 ms$0.004
2 days agoAmount "0.004" is not in atomic token units40277 ms$0.004
2 days agoAmount "0.004" is not in atomic token units40292 ms$0.004
3 days agoAmount "0.004" is not in atomic token units402114 ms$0.004