EU Fuel Prices: Spain & France Gas Station Prices avatar

EU Fuel Prices: Spain & France Gas Station Prices

Pricing

$1.00 / 1,000 station prices

Go to Apify Store
EU Fuel Prices: Spain & France Gas Station Prices

EU Fuel Prices: Spain & France Gas Station Prices

Diesel, petrol 95/98, LPG and E85 prices per gas station in Spain and France from the official ministry open data. Radius search, cheapest N, brand filter, only-changed mode. Fleet fuel cost and price comparison.

Pricing

$1.00 / 1,000 station prices

Rating

0.0

(0)

Developer

Atesen Software

Atesen Software

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

6 days ago

Last modified

Features

Limited permissions

Share

Get fuel prices per gas station in Spain and France as clean JSON, CSV or Excel. The Actor reads the national ministry feeds (no scraping of commercial price sites), gives every station and fuel type one row in one schema, and filters by location and radius, postal code, city, province or department, brand and fuel type. Ask for the cheapest N stations near a point, or run it on a schedule with the only-changed mode to track price moves.

Typical searches: fuel prices API Europe, gas station prices Spain France, diesel price by location, cheapest petrol near me, fleet fuel cost.

What you get

For every station and fuel type: country, station id, brand and sign (Spain), street address, postal code, city, province/department, latitude and longitude, distance from your centre point, fuel type, price in EUR per litre, the time of the source update, the source endpoint and the attribution text the publisher requires.

CountryOfficial sourceBrand in feedUpdate time in feed
Spain (ES)Ministerio de Industria y Turismo / MITECO, price feed of the Geoportal de Gasolinerasyes (sign, e.g. REPSOL)one timestamp for the whole feed, set by the server when it answers (no per-station time)
France (FR)Ministere de l'Economie, prix-carburants.gouv.fr "flux instantane" on data.economie.gouv.fr (Licence Ouverte 2.0)noper fuel and station (the time the station reported the price)

Fuel types: diesel, diesel_premium (Spain only), petrol95 (E5), petrol95_e10, petrol98, lpg, e85. Spain's other products (AdBlue, hydrogen, gas) are not returned.

Example input

{
"countries": ["ES", "FR"],
"fuelTypes": ["diesel"],
"latitude": 42.6887,
"longitude": 2.8948,
"radiusKm": 100,
"maxStations": 5
}

The prefilled example is a border search that answers in both countries: the 5 cheapest diesel prices per country within 100 km of Perpignan (France/Spain border), 10 rows at most.

More examples:

  • The 10 cheapest diesel prices within 10 km of central Madrid: {"countries":["ES"],"fuelTypes":["diesel"],"latitude":40.4168,"longitude":-3.7038,"radiusKm":10,"maxStations":10}
  • Cheapest petrol 95 E10 in France near Lyon: {"countries":["FR"],"fuelTypes":["petrol95_e10"],"latitude":45.764,"longitude":4.8357,"radiusKm":15,"maxStations":20}
  • Cheapest diesel in the province of Valencia, all Repsol and Cepsa stations: {"countries":["ES"],"region":"Valencia","brands":["Repsol","Cepsa"],"maxStations":50}
  • Daily price monitor: add "onlyChanged": true and schedule the run. The first run returns the baseline, later runs return only new or changed prices. Pick or create a key-value store in stateStore to keep the history (this also works with limited Actor permissions). Without a store that can be opened, the Actor still runs, but every price counts as new and the run notes say that change history was unavailable.

Example output

{
"country": "ES",
"stationId": "12145",
"brand": "ALCAMPO",
"name": "ALCAMPO",
"address": "CALLE JOSE PAULETE,",
"postalCode": "28000",
"city": "MADRID",
"region": "MADRID",
"lat": 40.393806,
"lon": -3.654528,
"distanceKm": 4.89,
"fuelType": "diesel",
"fuelLabel": "Gasoleo A",
"priceEur": 1.709,
"currency": "EUR",
"updatedAt": "2026-11-07T10:15:53.000Z",
"source": "https://sedeaplicaciones.minetur.gob.es/ServiciosRESTCarburantes/PreciosCarburantes",
"attribution": "Source: Ministerio de Industria y Turismo / MITECO ..."
}

(A Spanish row from a run on 2026-11-07, attribution shortened; every run returns the live feed. For Spain updatedAt is the feed timestamp, which is the time of the download, not the time the station changed the price.) A SUMMARY record in the key-value store lists counts per country, failed sources, notes and why the run stopped.

Use cases

  • Fleet fuel cost: price the cheapest diesel around depots, routes or customer sites and track it daily.
  • Price comparison apps and sites: feed a comparison widget with official station prices for Spain and France.
  • Route and trip planning: find the cheapest petrol or LPG within a radius of a point.
  • Research and journalism: snapshot regional price differences and brand price gaps (Spain) at a point in time.
  • Alerts: run on a schedule with onlyChanged and send new or changed prices to a webhook, Slack or a spreadsheet.

How it works and what it does not do

  • Reads only the official ministry feeds named above, one request per Spanish province (or one paged query for France) and filters the result. No login, no proxy, no browser.
  • A radius search in Spain downloads just the provinces the circle touches. A search without coordinates, postal code or province downloads all 52 Spanish provinces, which is much slower, so give a location when you can.
  • Prices are what station operators report to the ministries. A pump price can differ from the published one, and a feed can lag behind a price change. France publishes the update time per fuel and station (stored in updatedAt; the French dataset labels these times +00:00 although they are Paris local time, so the Actor converts them to real UTC). Spain publishes only one timestamp for the whole feed, set when the server answers, so for Spain updatedAt shows when you downloaded the feed, not when a price last changed.
  • Prices are passed on exactly as published (euro per litre, the Spanish decimal comma becomes a number). Coordinates are published values too; the few Spanish rows with clearly swapped latitude/longitude are put in the right order, and unusable coordinates become null (such a station is skipped in a radius search). Rows with no price for the fuel, or an implausible price (0.2 EUR or less, 6 EUR or more), are skipped and never charged.
  • The ministry server in Spain is sometimes slow. Spanish downloads get a time budget of about 3 minutes per run; what was read until then is returned and the SUMMARY lists the provinces that are missing. If Spain fails completely and France answers, the run still succeeds with the French rows and the status message says partial: ES failed.
  • France publishes no brand, so a brand filter finds no French station. Spain lists a few stations that sell to members only (cooperatives); they are left out unless you set includeRestrictedSales.
  • Only Spain and France are included in this version. Other countries are not covered.
  • Not an official service of any ministry. Keep the attribution text when you publish the data; the Spanish conditions ask for the source and the date of the last update, the French Licence Ouverte 2.0 asks for the source and the date of the last update as well.
  • No personal data is read: station sign, address and coordinates of the business only. No operator names, e-mails or phone numbers are requested. The Spanish sign (rótulo) is a business sign as the ministry publishes it; for a few small independent stations it can be the trader's own name.

Input fields

FieldMeaning
countriesES, FR (default both)
fuelTypesone or more fuel types (default diesel)
latitude, longitude, radiusKmradius search around a point, 0.1 to 200 km
postalCode, city, regionfilters; for Spain a postal code or province also limits what is downloaded
brandswords to match in the sign/brand (Spain)
maxStationscheapest (or nearest) N per country and fuel type
sortByprice or distance
stateStorekey-value store (picker) that keeps the change history; works with limited Actor permissions; pick or create one and use it for every run of the same watchlist
onlyChangedreturn only new or changed prices of this exact query since the last run (state kept in the key-value store you pick in stateStore, otherwise in a store named eu-fuel-prices-state in your account; if no store can be opened the run still succeeds but has no history, every price counts as new and the run notes say so; at most 20,000 prices per query: narrow a wider query, otherwise no state is saved and every run returns all rows)
includeRestrictedSalesinclude members-only stations (Spain)
maxResultshard row cap per run

Pricing

Pay per event: you are charged for each station price row that is delivered to the dataset. Empty results, failed sources and runs that find no station are free. Set a maximum cost per run in the run options; the Actor stops cleanly when that limit is reached. The current price is on the pricing tab of this page.

Maximum items is a hard cap on charged rows. Set maxItems in the run options (or ?maxItems= in the API) and the run stops after that many station prices: it never writes or charges more rows than that number. Leave it empty for no cap. Free status rows are not counted.

Use via API

One request runs the Actor, waits for it and returns the dataset items as JSON. Send your token in the Authorization header, not in the URL:

curl -X POST "https://api.apify.com/v2/acts/atesen-software~eu-fuel-prices/run-sync-get-dataset-items?timeout=120" \
-H "Authorization: Bearer $APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"countries":["ES","FR"],"fuelTypes":["diesel"],"latitude":42.6887,"longitude":2.8948,"radiusKm":100,"maxStations":5}'

The synchronous endpoint waits up to 300 seconds. For longer jobs start a run with POST https://api.apify.com/v2/acts/atesen-software~eu-fuel-prices/runs and read the dataset when it finishes.

JavaScript (npm install apify-client):

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('atesen-software/eu-fuel-prices').call({ countries: ["ES", "FR"], fuelTypes: ["diesel"], latitude: 42.6887, longitude: 2.8948, radiusKm: 100, maxStations: 5 });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

Use with AI agents (MCP)

Claude Desktop, Cursor, VS Code and other MCP clients can call this Actor as a tool through the Apify MCP server. Load only this Actor with:

https://mcp.apify.com?tools=atesen-software/eu-fuel-prices

Client config (sign in with Apify OAuth when the browser opens, or add an Authorization: Bearer <APIFY_TOKEN> header instead):

{
"mcpServers": {
"apify": { "url": "https://mcp.apify.com?tools=atesen-software/eu-fuel-prices" }
}
}

Then ask in plain words, for example: "Find the 5 cheapest diesel stations within 100 km of Perpignan in Spain and France." The agent fills the same input fields you see on the Input tab, and runs are billed to your Apify account at the prices on the Pricing tab.

FAQ

Is this the official API? No. It is an independent Actor that reads the ministries' open data feeds. It is not affiliated with or endorsed by any ministry.

How fresh are the prices? As fresh as the ministry feed at the moment of the run: the Actor downloads it live on every run and caches nothing. France's instant feed carries a report time per station and fuel (updatedAt), and the dataset is refreshed during the day (on 2026-11-07 the newest report was about 15 minutes old). Spain's feed carries no per-station time, so updatedAt there is only the download time; a station's price can be older.

Why is a Spanish run without a location slow? The Spanish server delivers the national list in 52 province downloads. A radius, postal code or province keeps it to one or a few downloads.

Can I get Germany, Italy, Austria or Portugal? Not in this version.

Can I use the data commercially? The French feed is under the Licence Ouverte 2.0 (commercial reuse allowed, credit the source and the date of the last update, no suggestion of official endorsement). The Spanish ministry's reuse conditions ask that the content is not altered, the source is cited and the date of the last update is stated. Keep the attribution and updatedAt fields with the data. The Actor does not grant you any rights beyond those licences, and this is not legal advice.