# France Fuel Prices Scraper (`nanodata/france-fuel-prices-scraper`) Actor

Current fuel prices for French service stations: diesel, SP95, SP98, E10, E85 and LPG with update times, stock outages, services and opening hours. Filter by department, region, postcode or city. Pay per station.

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

## Pricing

from $1.00 / 1,000 station delivereds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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 Fuel Prices Scraper

Export the current fuel prices of French service stations. Each row is one station with its address, location, every fuel price and the time it was updated, fuels that are out of stock, services and opening hours. You pay per station delivered.

The data comes from the French government open dataset "Prix des carburants en France - Flux instantané" on data.economie.gouv.fr. No account and no API key are needed.

### What you get

For each station the actor returns one row with:

- `id`: the station id used by the source (a number)
- `address`, `postcode`, `city`
- `department`, `departmentCode`, `region`, `regionCode`
- `latitude`, `longitude` (numbers, in degrees)
- `roadType`: `motorway` or `road`, and `popCode` (`A` or `R`) as the source writes it
- `open24h`: true when the station has a 24 hours a day pump
- `openingHours`: a list with one entry per weekday (`day`, `dayNumber`, `closed`, `slots` with `opens` and `closes`)
- `services`: the services at the station
- `availableFuels` and `unavailableFuels`: lists of fuel names
- `prices`: a list with one entry per fuel (`fuel`, `price`, `updatedAt`)
- `gazolePrice`, `sp95Price`, `sp98Price`, `e10Price`, `e85Price`, `gplcPrice`: the same prices as plain numbers in euros per litre, each with an `...UpdatedAt` field next to it
- `ruptures`: fuels that are out of stock or withdrawn, with `since`, `until` and `type` (temporary or definitive)
- `scrapedAt`: when the actor read the record

A value the source does not hold is null. A fuel the station does not sell has no price.

### Typical uses

- Compare fuel prices between towns, departments or regions
- Build a price map or a price alert for drivers and fleets
- Track how prices move by running the actor on a schedule and keeping the history
- Find stations with a 24 hours pump, a given service or a fuel that is in short supply
- Feed a routing or travel-cost tool with current prices

### Pricing

You pay per station delivered, plus a small fee for each run.

| Event | Name | Price |
|---|---|---|
| Run start (charged once, together with the first delivered row) | `actor-start` | $0.001 per run |
| One station row | `station-result` | $0.001 per station ($1.00 per 1,000) |

A run that finds no station is not charged.

### Input

| Field | What it does |
|---|---|
| `departments` | Department names (Ain, Haute-Savoie) or codes (01, 2A, 75). Upper and lower case do not matter. |
| `regions` | Region names (Bretagne) or codes (53). |
| `postcodes` | 5 digit postcodes, for example 75001. |
| `cities` | City names as the source writes them. Upper and lower case do not matter, accents do. |
| `fuelTypes` | Keep stations that report a price for at least one of Gazole, SP95, SP98, E10, E85, GPLc. The row still lists all fuels of the station. |
| `stationIds` | Numeric station ids, to follow single stations. |
| `maxItems` | Maximum number of stations. Default 200, at most 10,000. |

Different filters are combined: a station must match each filter you set. Several values inside one filter are alternatives. With no filter you get the first stations of the country, sorted by id, up to `maxItems`.

Example: diesel and E10 in two departments.

```json
{
  "departments": ["Ain", "75"],
  "fuelTypes": ["Gazole", "E10"],
  "maxItems": 200
}
```

Example: follow two stations.

```json
{
  "stationIds": [1000001, 1000002]
}
```

Example: every station in one city.

```json
{
  "cities": ["Lyon"],
  "maxItems": 500
}
```

### Output sample

```json
{
  "id": 1000001,
  "address": "596 AVENUE DE TREVOUX",
  "postcode": "01000",
  "city": "Saint-Denis-lès-Bourg",
  "department": "Ain",
  "departmentCode": "01",
  "region": "Auvergne-Rhône-Alpes",
  "regionCode": "84",
  "latitude": 46.201,
  "longitude": 5.198,
  "roadType": "road",
  "popCode": "R",
  "open24h": false,
  "services": ["DAB (Distributeur automatique de billets)", "Station de gonflage"],
  "availableFuels": ["Gazole", "SP95", "E85", "E10", "SP98"],
  "unavailableFuels": ["GPLc"],
  "prices": [
    {"fuel": "Gazole", "price": 2.106, "updatedAt": "2026-11-06T00:54:00+00:00"}
  ],
  "gazolePrice": 2.106,
  "gazoleUpdatedAt": "2026-11-06T00:54:00+00:00",
  "ruptures": [
    {"fuel": "GPLc", "since": "2017-09-16T09:50:23+00:00", "until": null, "type": "definitive"}
  ],
  "scrapedAt": "2026-11-07T14:00:00Z"
}
```

### Limitations

- The data covers about 9,800 stations in France. Stations that do not report to the open dataset are not in it.
- Prices are as reported by the stations. They can lag behind the pump, and some stations report only some fuels. Check `...UpdatedAt` before you rely on a price.
- Update times are given as the source publishes them. The source labels them with a +00:00 offset, so treat them as local French time if you need an exact hour.
- Names must match the source spelling. Cities and departments ignore upper and lower case but not accents or hyphens. If a name returns nothing, try the code or the postcode.
- One run returns up to 10,000 stations. Use `maxItems` and the filters to keep a run small.
- Opening hours are free text from the stations, turned into slots. Some stations give none.
- The actor shows current data only. For a price history, run it on a schedule and store each result.

### FAQ

**Where does the data come from?**
From the open dataset "Prix des carburants en France - Flux instantané" published by the French Ministry of Economy on data.economie.gouv.fr. It is released under the Licence Ouverte / Open Licence 2.0 (Etalab). Source: data.economie.gouv.fr, Ministère de l'Économie, des Finances et de la Souveraineté industrielle et numérique.

**May I reuse the data?**
The Licence Ouverte (Etalab 2.0) allows reuse, including commercial reuse, if you name the source and the date of the last update. Keep the credit above when you publish results.

**How current are the prices?**
The dataset is refreshed by the ministry throughout the day. Each fuel carries its own update time.

**How do I get the whole country?**
Leave all filters empty and set `maxItems` to 10000. The country has about 9,800 stations.

**Why is a price missing?**
The station does not sell that fuel, or it did not report a price. Look at `ruptures` for fuels that are out of stock.

**Do I need an API key?**
No.

# Actor input Schema

## `departments` (type: `array`):

Department names (Ain, Haute-Savoie) or codes (01, 2A, 75). Names ignore upper and lower case. Leave all filters empty for a sample of the country.

## `regions` (type: `array`):

Region names (Bretagne) or codes (53).

## `postcodes` (type: `array`):

5 digit French postcodes, for example 75001.

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

City names as written in the source, for example Lyon or Saint-Denis-lès-Bourg. Upper and lower case do not matter, accents do.

## `fuelTypes` (type: `array`):

Keep only stations that report a price for at least one of these fuels: Gazole, SP95, SP98, E10, E85, GPLc. All fuels of a matching station stay in the row.

## `stationIds` (type: `array`):

Numeric station ids, for example 1000001. Use this to follow single stations.

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

Maximum number of stations. Default 200. The source returns up to 10,000 per search, which covers the whole country (about 9,800 stations).

## `proxyConfiguration` (type: `object`):

Keep the default.

## Actor input object example

```json
{
  "departments": [
    "Ain",
    "75"
  ],
  "fuelTypes": [
    "Gazole",
    "E10"
  ],
  "maxItems": 200,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `defaultDataset` (type: `string`):

One row per fuel station with current prices

# 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 = {
    "departments": [
        "Ain",
        "75"
    ],
    "fuelTypes": [
        "Gazole",
        "E10"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("nanodata/france-fuel-prices-scraper").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 = {
    "departments": [
        "Ain",
        "75",
    ],
    "fuelTypes": [
        "Gazole",
        "E10",
    ],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("nanodata/france-fuel-prices-scraper").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 '{
  "departments": [
    "Ain",
    "75"
  ],
  "fuelTypes": [
    "Gazole",
    "E10"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call nanodata/france-fuel-prices-scraper --silent --output-dataset

```

## MCP server setup

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

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/DNaBkeajgZpGAEEte/builds/Kv2twwGjRAqg24WOP/openapi.json
