Skip to content
Fourohtwo

opendata402.com/v1/fuel/es

Live fuel prices at every filling station in Spain (Ministry for the Ecological Transition, updated every 30 minutes): diesel, petrol 95/98, LPG, CNG, renewable diesel and AdBlue per station, by province (INE code 01-52) and optional town, with brand, address, coordinates and opening hours. Sort by price for one fuel. Spanish government open data, reuse with source and update date.

BasePolygonArbitrumUnchecked
GEThttps://opendata402.com/v1/fuel/es

UptimeNot checked yet

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://opendata402.com/v1/fuel/es?fuel=diesel&province=28&town=Madrid");
console.log(await res.json());

Example input

{
  "fuel": "diesel",
  "province": "28",
  "town": "Madrid"
}

More from opendata402