Fuel Prices Scraper: Gas Station Prices from Official Data avatar

Fuel Prices Scraper: Gas Station Prices from Official Data

Pricing

$0.50 / 1,000 stations

Go to Apify Store
Fuel Prices Scraper: Gas Station Prices from Official Data

Fuel Prices Scraper: Gas Station Prices from Official Data

Official fuel prices per gas station from government open data: France, Spain, Italy, Germany, UK and Mexico. Diesel, petrol, E10, LPG and CNG prices with brand, address, opening hours and update time. Export to JSON, CSV or Excel, or via API.

Pricing

$0.50 / 1,000 stations

Rating

0.0

(0)

Developer

Steady Scrape

Steady Scrape

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

a day ago

Last modified

Features

Limited permissions

Share

Fuel Prices Scraper: gas station prices from official open data

Fuel Prices Scraper gets the fuel prices of every gas station from the official open data that governments and retailers publish: France, Spain, Italy, Germany, the United Kingdom and Mexico. Search a city, a postcode, a province or a point with a radius, pick diesel, petrol (gasoline), E10, LPG, CNG or AdBlue, filter by brand, and get the cheapest stations first: one row per station with its brand, address, postcode, coordinates, opening hours and every fuel price with the time the station reported it. Schedule it with "only stations whose price changed" to follow petrol prices day by day. Export to JSON, CSV or Excel, or use it via API.

No login and no proxy: every price comes from the public source each country runs, and each row names that source, its licence and the attribution it asks for. Germany needs your own free Tankerkönig key. This Actor is an independent tool, not affiliated with or endorsed by any of the authorities or retailers below.

What can this fuel price scraper do?

  • Compare gas station prices in a city: the 20 cheapest diesel stations in Paris, Lyon, Madrid, Milano or Coventry.
  • Find the cheapest fuel near a point: give a latitude, a longitude and a radius, and get each station with its distance, cheapest or nearest first.
  • Track fuel prices over time: run it daily on a schedule and get only the stations whose prices changed since the last run, marked new or changed.
  • Build a dataset of petrol prices for a whole country: France (about 9,800 stations), Spain (11,500), Italy (22,000), Mexico and the UK feeds, for price analysis, maps, fleet cards or route planning.
  • Filter by fuel and brand: diesel, premium diesel, petrol 95, E10, premium petrol, E85, LPG (autogas), CNG, LNG, hydrogen, AdBlue; brands such as Total, Repsol, Esso, Eni or Shell.

Fuel price sources by country

CountrySourceSearch byWhat a row has
🇫🇷 Franceprix-carburants.gouv.fr, flux instantané v2 (Ministère de l'Économie), the whole file once per runcity, postcode, department code (69, 2A), point, whole countryaddress, postcode, city, department, coordinates, opening hours, each price with its time. No brand or station name: the official feed has none.
🇪🇸 SpainGeoportal de Gasolineras (MITECO)municipality, province, postcode, point, whole countrybrand, address, postcode, municipality, province, coordinates, opening hours as the ministry writes them (L-D: 24H), the file's update time.
🇮🇹 ItalyOsservaprezzi carburanti (MIMIT)town, point, whole countryname, brand, operating company, street, postcode, province, coordinates, opening hours when the station reported them, self-service and attended prices, each with its time.
🇩🇪 GermanyTankerkönig (MTS-K data), with your own free keypoint (up to 25 km)name, brand, street and number, postcode, city, coordinates, diesel, E5 and E10 prices.
🇬🇧 United Kingdomthe retailers' open fuel price feeds (CMA scheme): Asda, Esso, SGN Retail, JET, Moto, Rontec, Applegreen, Morrisonstown, full or outward postcode (SW1A 1AA, CV3), point, whole countrybrand, address, postcode, coordinates, E10, E5, diesel and super diesel in pounds, dated at the feed's update.
🇲🇽 MexicoComisión Nacional de Energía (formerly CRE), places and prices feedspoint, whole countrypermit holder's name, coordinates, regular, premium and diesel prices in pesos. No address and no report time.

A place is searched in every country you pick, and a country that does not have it is skipped. If no country has it, one free row says so.

How to search fuel prices

By city or postcode. Put each place in Cities or postcodes: Lyon, Madrid, Las Rozas de Madrid, Milano, Coventry. A place with a digit is a postcode: 75015, 08001, CV3, SW1A 1AA, or a French department code (2A, 69). Accents, hyphens and Spanish articles do not matter: Saint Etienne finds Saint-Étienne, Las Rozas de Madrid finds the register's "Rozas de Madrid (Las)", and a Spanish province name (Asturias) reads the whole province.

Around a point. Give a Latitude, a Longitude and a Radius (km): each station comes with its distanceKm. This is the only way to search Mexico and Germany.

A whole country. Leave places and point empty. Max stations per search still applies, so raise it for a full export.

Cheapest first. With Sort by: Cheapest first, each search is sorted by the first fuel you picked (diesel when you pick none), and stations without that fuel come last.

Only stations whose price changed. Turn on Only stations whose price changed since the last run and schedule the run: the first run delivers every station and saves its prices; each later run with the same search, countries and filters delivers only the stations whose prices moved or that appeared, and you pay only for those.

Input example

{
"countries": ["FR", "ES"],
"places": ["Paris", "Madrid"],
"fuelTypes": ["diesel", "gasoline"],
"sortBy": "cheapest",
"maxStations": 20,
"maxPriceAgeDays": 90
}

A point search in Germany with your Tankerkönig key:

{
"countries": ["DE"],
"latitude": 52.52,
"longitude": 13.405,
"radiusKm": 5,
"tankerkoenigApiKey": "your-free-key"
}

Output example

One row per station, with each fuel's price in fuels and the lowest price per fuel in prices:

{
"rowType": "station",
"status": "ok",
"country": "ES",
"stationId": "ES:3085",
"sourceStationId": "3085",
"name": null,
"brand": "CARREFOUR",
"operator": null,
"address": "CARRETERA MADRID-LA CORUÑA KM. 22",
"postcode": "28230",
"city": "Rozas de Madrid (Las)",
"region": "MADRID",
"latitude": 40.521389,
"longitude": -3.884917,
"openingHours": "L-D: 24H",
"fuels": [
{ "fuel": "diesel", "name": "Gasoleo A", "price": 1.849, "currency": "EUR", "unit": "litre", "service": null, "updatedAt": "2026-11-19T02:07:19.000Z" },
{ "fuel": "gasoline", "name": "Gasolina 95 E5", "price": 1.599, "currency": "EUR", "unit": "litre", "service": null, "updatedAt": "2026-11-19T02:07:19.000Z" },
{ "fuel": "gasoline_premium", "name": "Gasolina 98 E5", "price": 1.807, "currency": "EUR", "unit": "litre", "service": null, "updatedAt": "2026-11-19T02:07:19.000Z" }
],
"prices": { "diesel": 1.849, "gasoline": 1.599, "gasoline_premium": 1.807 },
"currency": "EUR",
"pricesUpdatedAt": "2026-11-19T02:07:19.000Z",
"source": "Geoportal de Gasolineras, servicio REST de precios de carburantes",
"licence": "Reuse of public sector information, Ley 37/2007 (commercial reuse allowed with attribution)",
"attribution": "Fuente de los datos: Ministerio para la Transición Ecológica y el Reto Demográfico",
"unreadFields": [],
"search": "Las Rozas de Madrid",
"distanceKm": null,
"sortFuel": "diesel",
"sortFuelPrice": 1.849,
"change": null,
"scrapedAt": "2026-11-19T02:07:14.405Z"
}

The dataset's Every price view gives one line per station and fuel, ready for a spreadsheet.

Output fields

FieldWhat it is
rowType, statusstation and ok on a station (charged); status and its reason code on a free row (below).
countryFR, ES, IT, DE, GB or MX.
stationId, sourceStationIdThe country and the source's own station id (FR:75013025), stable across runs, and the source's id alone (75013025).
name, brand, operatorThe station's name, its brand and the company that runs it, where the source gives them.
address, postcode, city, regionThe station's address; region is the department (France) or province (Spain, Italy).
latitude, longitudeThe station's coordinates.
openingHoursThe opening hours, per weekday (Mon-Fri 06:00-22:00, Sat-Sun 07:00-22:00), as the source gives them.
fuelsEvery fuel price: fuel (the shared code below), name (as the source calls it), price, currency, unit (litre or kg), service (self or attended, Italy), updatedAt (when the station reported it, UTC).
pricesThe lowest price of each fuel, by fuel code.
pricesUpdatedAtThe latest report time of the station's prices.
source, licence, attributionWhere the data comes from, its licence and the credit it asks for.
unreadFieldsFields the source stopped sending for this station (normally empty); a null without it means the source has none.
search, distanceKmThe place or point this station was found for, and its distance from the point.
sortFuel, sortFuelPriceThe fuel the run sorted by and this station's lowest price for it.
changeWith "only stations whose price changed": new or changed.
scrapedAtWhen the run read the row, UTC.
reasonOn a free row: why the search, place or source gave no station.

Fuel codes: diesel, diesel_premium, gasoline (petrol 95 / regular), gasoline_e10, gasoline_premium (98, super plus, premium), e85, lpg, cng, lng, hydrogen, biodiesel, renewable_diesel (HVO), adblue, other.

Free rows. When a search has no station, a row with rowType: "status" says why: not_found (no country has that place), place_not_supported (that country cannot be searched that way), no_results, no_changes, source_unavailable, source_changed, key_missing, key_rejected, spending_limit. These rows are free.

How much does it cost?

US$0.50 per 1,000 stations (US$0.0005 per station row). Status rows are free. A station is charged once per run even when two of your searches find it. The 20 cheapest stations of a city cost US$0.01; a daily "only changed" run pays only for the stations whose prices moved.

Limits

  • France publishes no brand or station name, so a brand filter leaves French stations out.
  • France writes each town as the station reported it (PARIS or Paris); a city search matches either, accents and hyphens aside.
  • Germany needs your own free Tankerkönig API key (onboarding.tankerkoenig.de) and is searched around a point, up to 25 km.
  • Mexico is searched around a point or as a whole country: its feeds carry coordinates but no address.
  • Italy cannot be searched by postcode (search the town or a point). A station page that fails to load leaves that station with the search's fields, its missing ones named in unreadFields.
  • A station that stopped reporting keeps its last price in the feed: prices older than 90 days are left out by default (Leave out prices older than; 0 keeps them all).
  • United Kingdom: only the retailers whose feeds answer are covered (Asda, Esso, SGN Retail, JET, Moto, Rontec, Applegreen, Morrisons). A feed that is down is left out of that run and the others are still delivered.
  • A source that refuses or is down gives a free source_unavailable row and the run goes on with the other countries.

Every source is open data or published for reuse:

  • France: Licence Ouverte 2.0 (Etalab).
  • Spain: reuse of public sector information under Ley 37/2007, commercial reuse allowed with attribution.
  • Italy: Italian Open Data License 2.0.
  • Germany: CC BY 4.0 (Tankerkönig, MTS-K data), through your own key.
  • Mexico: Libre Uso MX.
  • United Kingdom: published by each retailer for reuse under the CMA's open fuel price scheme.

These licences ask you to credit the source and not to suggest that it endorses your use: each row carries source, licence and attribution for that. The data is about businesses, not people. Check that your use fits the licence of each country you publish.