# France & Spain Fuel Prices: Every Station, Official Data (`northbell/france-fuel-prices`) Actor

Get fuel prices for every gas station in France and Spain (gasolineras, stations carburant): diesel and petrol prices, LPG, E85, with price changes since the last run, address and coordinates. Straight from official open data. No login, no key. Filter by postal code, city or radius.

- **URL**: https://apify.com/northbell/france-fuel-prices.md
- **Developed by:** [Northbell](https://apify.com/northbell) (community)
- **Categories:** Travel
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.80 / 1,000 stations

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## France & Spain Fuel Prices: Every Station, Official Data

**Fuel prices for every petrol station in France and Spain (gasolineras, stations carburant), from the official open data of the two ministries.** France: 9,826 stations and 33,038 prices (Gazole, SP95, E10, SP98, E85, GPLc). Spain: 11,542 stations and 43,108 prices (Gasoleo A, Gasolina 95 E5, Gasolina 98 E5, LPG, AdBlue and more). Measured on the live files on 22 November 2026. Each row has the current price per litre, when it was updated, what changed since your last run, the address and the coordinates. No login, no API key. $1.00 per 1,000 stations.

**Try it now — the input is already filled in.** Press **Start**: you get the stations in the postal codes 75015 (Paris) and 69003 (Lyon). Measured on the live file on 22 November 2026: 9 rows.

For Spain, set **Country** to Spain and use Spanish postal codes (see "Spain" below).

A few rows from a real run (prices in EUR per litre):

| Station | City | Gazole | SP95 | E10 | SP98 | E85 | GPLc |
|---|---|---|---|---|---|---|---|
| 69003012 | Lyon 3e | 2.229 | 2.119 | 2.079 | | | |
| 69003013 | Lyon | 2.209 | 2.099 | 2.049 | | | 1.111 |
| 75015003 | Paris 15e | 2.309 | | 2.049 | 2.209 | 0.979 | |
| 75015011 | Paris 15e | 2.114 | | 1.914 | 2.014 | | |
| 75015025 | Paris 15e | 2.210 | | | 1.990 | | |

One row as JSON (shortened):

```json
{
  "stationId": "75015011",
  "address": "19 BD DES FRERES VOISINS",
  "city": "Paris",
  "postalCode": "75015",
  "departement": "75",
  "latitude": 48.828,
  "longitude": 2.272,
  "roadType": "road",
  "open24h": false,
  "prices": { "Gazole": 2.114, "E10": 1.914, "SP98": 2.014 },
  "updatedAt": { "Gazole": "2026-11-21T06:31:00Z", "E10": "2026-11-21T06:31:00Z", "SP98": "2026-11-21T06:31:00Z" },
  "previousPrices": null,
  "priceChange": {},
  "changedSinceLastRun": null,
  "source": "prix-carburants.gouv.fr open data (Licence Ouverte v2)"
}
```

### What you get

One row per station, the same shape for France and Spain.

| Field | Meaning |
|---|---|
| `country` | `FR` or `ES`. |
| `stationId` | Station id in the ministry file (Spain: `IDEESS`). |
| `brand` | Spain only: the station brand (`Rótulo`, for example REPSOL). `null` for France. |
| `address`, `city`, `postalCode` | Address as the ministry lists it. In Spain `city` is the `Localidad`. |
| `municipality`, `province` | Spain only. `null` for France. |
| `departement` | France only: 2 digits, `2A` / `2B` for Corsica, 3 digits for overseas (97x). `null` for Spain. |
| `latitude`, `longitude` | Degrees, 5 decimals. |
| `roadType` | France: `road` or `motorway`. `null` for Spain. |
| `open24h` | France: `true` when the station has a 24/7 pay-at-pump terminal (the ministry's automate 24/24 flag). Spain: `true` when the opening hours say 24H. |
| `openingHours` | Spain only: the opening hours text of the file. `null` for France. |
| `services` | France: services listed for the station (car wash, shop, ...). Spain: empty. |
| `prices` | Price per litre in EUR by fuel. Only the fuels you asked for and the station sells. |
| `updatedAt` | When each price was last updated, by fuel, as a UTC time. Spain: the time of the whole file (the Spanish file has no time per price). |
| `outOfStock` | Fuels currently reported out of stock (France; empty for Spain). |
| `previousPrices` | Prices from your last run with the same filters. `null` on the first run. |
| `priceChange` | New price minus old price by fuel, only fuels that changed. |
| `changedSinceLastRun` | `true` or `false`; `null` on the first run. |
| `distanceKm` | Only with `near`: distance from your point, 2 decimals. |
| `source`, `scrapedAt` | Source and licence; when the run read the file. |

Rows are sorted by distance with `near`, otherwise by postal code and station id.

### Input

| Input | What it does |
|---|---|
| `country` | `FR` (France, default) or `ES` (Spain). |
| `postalCodes` | France: 5-digit postal codes (`75015`) or a whole département (`75`, `2A`, `2B`, `971`). Spain: 5-digit postal codes (`28001`) or a whole province (`28`). |
| `cities` | City names, matched exactly but ignoring case and accents. In Spain a name matches the `Localidad` or the `Municipio`. |
| `near` | `{"lat": 48.8566, "lon": 2.3522, "radiusKm": 5}`: stations within the radius. |
| `allFrance` | Every station in the chosen country (France about 9,800 rows, Spain about 11,500). Raise `maxItems` to 12000. |
| `fuels` | France only: `Gazole`, `SP95`, `E10`, `SP98`, `E85`, `GPLc`. Default: all. Stations with none of the chosen fuels are left out. |
| `fuelsSpain` | Spain only: the fuel names of the Spanish file, for example `Gasoleo A` (diesel), `Gasolina 95 E5`, `Gasolina 98 E5`, `Gases licuados del petróleo`. Default: all. |
| `motorwayOnly` | France only: only motorway stations. With Spain it stops with an error. |
| `onlyChanged` | Only stations whose prices changed since your last run (see below). |
| `maxItems` | Stop after this many stations (default 1000). |

Give at least one of `postalCodes`, `cities`, `near`, or switch on `allFrance`. If you give several, a station is returned when it matches any of them. Overseas départements (97x) are not in the French ministry's current file at the time of writing.

### Spain

Set `country` to `ES`. The Actor reads the price file of the Spanish Ministry for the Ecological Transition (Geoportal Gasolineras, `sedeaplicaciones.minetur.gob.es`): 11,542 stations and 43,108 prices, measured on 22 November 2026. The `postalCodes` input takes 5 digits (`28001`) or the first 2 digits for a whole province (`28` is Madrid, `08` is Barcelona).

Example input: `{"country": "ES", "postalCodes": ["28001", "28002", "28003"], "maxItems": 5}`. A real run on 22 November 2026 (11 stations in those three postal codes; the first 5 shown; prices in EUR per litre):

| Station | Brand | City | Postal code | Gasoleo A | Gasolina 95 E5 | Gasolina 98 E5 |
|---|---|---|---|---|---|---|
| 4710 | SHELL | MADRID | 28001 | 1.809 | 1.639 | 1.779 |
| 13199 | REPSOL | MADRID | 28002 | 1.859 | 1.639 | |
| 4483 | REPSOL | MADRID | 28002 | 1.849 | 1.639 | 1.799 |
| 4536 | REPSOL - PRINCIPE DE VERGARA | MADRID | 28002 | 1.859 | 1.639 | |
| 4539 | MOEVE | MADRID | 28002 | 1.874 | 1.644 | 1.76 |

The Spanish file carries 23 fuel names (diesel, three petrol grades, LPG, natural gas, biodiesel, hydrogen, AdBlue and others). Gasoleo A is sold by 11,321 stations, Gasolina 95 E5 by 10,975, Gasolina 98 E5 by 5,515, LPG by 1,006. The Spanish file has no time per price, so every `updatedAt` is the time of the file; it also has no motorway flag, no services list and no out-of-stock list.

### Only changed stations

Every run saves the prices it returned, in a named store of your own account (`france-fuel-prices-memory`), one entry per set of filters (the country is part of it). The next run with the same filters shows `previousPrices` and `priceChange`. Switch `onlyChanged` on and stations whose prices are identical are left out and not charged. The status message tells you how many were left out. The first run with a set of filters returns everything. If the store cannot be opened, the run still works; it just shows no price changes and says so.

Schedule it every morning:

```bash
curl -X POST "https://api.apify.com/v2/acts/northbell~france-fuel-prices/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"postalCodes":["75"],"fuels":["Gazole","E10"],"onlyChanged":true}'
```

### How fresh the data is

The ministry file is updated continuously from the stations' own reports. Each price carries its own update time in `updatedAt`, so you can see which prices are from this morning and which are weeks old (a small station may report rarely). The Actor reads the file once per run.

### Source and licence

**France.** Data: Ministry of the Economy, Finance and Industrial and Digital Sovereignty (France), "Prix des carburants en France - Flux instantane", published on data.gouv.fr and prix-carburants.gouv.fr, under the Licence Ouverte v2.0 (Etalab). Reuse, also commercial, is allowed with attribution. If you publish or share the data, include:

Source: Ministere de l'Economie, des Finances et de la Souverainete industrielle et numerique, prix-carburants.gouv.fr, Licence Ouverte v2.0. Data processed by this Actor. Not an official product.

**Spain.** Data: Ministerio para la Transicion Ecologica y el Reto Demografico, Geoportal Gasolineras (precios de carburantes en las estaciones de servicio), listed in the official INSPIRE catalogue under CC BY 4.0. Reuse, also commercial, is allowed with attribution. If you publish or share the data, include:

Source: Ministerio para la Transicion Ecologica y el Reto Demografico, Geoportal Gasolineras, CC BY 4.0. Data processed by this Actor. Not an official product.

Every row carries the `source` field.

### What you never pay for

A run that finds no station costs only the start fee ($0.00005). With `onlyChanged` on, stations whose prices did not change cost nothing. Rows are pushed and charged in batches. Set a maximum charge on the run and the Actor stops cleanly when it is reached; everything charged is in the dataset.

### FAQ

**Does it need a login or a key?** No. It reads the ministries' public files.

**Are the prices live?** They are as fresh as the stations' reports; see `updatedAt` per fuel. In Spain `updatedAt` is the time of the whole file.

**Why is a fuel missing for a station?** The station does not sell it, or has not reported a price for it.

# Actor input Schema

## `country` (type: `string`):

Which national price file to read: France or Spain. Postal codes, cities, radius, Max rows and Only changed work the same in both.

## `postalCodes` (type: `array`):

France: 5-digit postal codes (75015); a 2-digit value means a whole département (75, 69, 2A, 2B for Corsica; 971 to 976 for overseas). Spain: 5-digit postal codes (28001); a 2-digit value means a whole province (28 Madrid, 08 Barcelona). Stations matching any postal code, city or radius below are returned.

## `cities` (type: `array`):

City names, matched exactly but ignoring case and accents (Paris, Saint-Étienne). In Spain a name matches the Localidad or the Municipio (Madrid, Alcalá de Henares). Optional.

## `near` (type: `object`):

Stations within a radius of a point, for example {"lat": 48.8566, "lon": 2.3522, "radiusKm": 5}. radiusKm defaults to 5. Rows then carry distanceKm and are sorted by distance. Optional.

## `allFrance` (type: `boolean`):

Every station in the chosen country (France about 9,800 rows, Spain about 11,500). Raise Max rows to 12000 to get them all. Use this instead of postal codes, cities or a radius.

## `fuels` (type: `array`):

France only. Keep only these fuels in prices. Stations that sell none of them are left out. Empty: all fuels. Ignored when the country is Spain (use Fuels (Spain)).

## `fuelsSpain` (type: `array`):

Spain only. Keep only these fuels in prices (names as in the Spanish file: Gasoleo A is diesel, Gasolina 95 E5 and Gasolina 98 E5 are petrol). Stations that sell none of them are left out. Empty: all fuels. Ignored when the country is France.

## `motorwayOnly` (type: `boolean`):

France only: keep only stations on a motorway (roadType motorway). With country Spain this must stay off.

## `onlyChanged` (type: `boolean`):

Off (default): every matching station is returned. On: a station whose prices are the same as in your last run with the same filters is left out and not charged. The first run returns everything. Use it with a schedule.

## `maxItems` (type: `integer`):

Stop after this many stations.

## Actor input object example

```json
{
  "country": "FR",
  "postalCodes": [
    "75015",
    "69003"
  ],
  "allFrance": false,
  "fuels": [
    "Gazole",
    "SP95",
    "E10",
    "SP98",
    "E85",
    "GPLc"
  ],
  "fuelsSpain": [
    "Adblue",
    "Amoniaco",
    "Biodiesel",
    "Bioetanol",
    "Biogas Natural Comprimido",
    "Biogas Natural Licuado",
    "Diésel Renovable",
    "Gas Natural Comprimido",
    "Gas Natural Licuado",
    "Gases licuados del petróleo",
    "Gasoleo A",
    "Gasoleo B",
    "Gasoleo Premium",
    "Gasolina 95 E10",
    "Gasolina 95 E25",
    "Gasolina 95 E5",
    "Gasolina 95 E5 Premium",
    "Gasolina 95 E85",
    "Gasolina 98 E10",
    "Gasolina 98 E5",
    "Gasolina Renovable",
    "Hidrogeno",
    "Metanol"
  ],
  "motorwayOnly": false,
  "onlyChanged": false,
  "maxItems": 1000
}
```

# Actor output Schema

## `stations` (type: `string`):

Station id, address, prices per fuel, price changes, coordinates, services, source.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "postalCodes": [
        "75015",
        "69003"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("northbell/france-fuel-prices").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "postalCodes": [
        "75015",
        "69003",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("northbell/france-fuel-prices").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "postalCodes": [
    "75015",
    "69003"
  ]
}' |
apify call northbell/france-fuel-prices --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,northbell/france-fuel-prices"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/RqSJHKusXMOl2TtmU/builds/htFWtkbOmDxh2LujW/openapi.json
