# French Fuel Prices: live station prices by area (`futurelife/french-fuel-prices`) Actor

Today's fuel prices at French petrol stations (diesel, SP95, SP98, E10, E85, LPG) from the official government feed. Search around an address, by postal code, city or department; sort by cheapest fuel; one clean row per station with GPS, opening 24/7, services and shortages.

- **URL**: https://apify.com/futurelife/french-fuel-prices.md
- **Developed by:** [Future Life](https://apify.com/futurelife) (community)
- **Categories:** Travel, Other
- **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 exporteds

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

## French Fuel Prices

Today's fuel prices at every petrol station in France, around an address or across a whole department, straight from the official government feed, one clean row per station.

- **Every fuel, dated**: diesel (Gazole), SP95, SP98, E10, E85 and LPG in euros per litre, each with the time the station last updated it.
- **Where and how**: address, postal code, city, GPS, distance from your place, 24/7 pump, road or motorway station, services (car wash, shop, truck lane…), fuels out of stock.
- **Sorted the way you need**: cheapest diesel first within 5 km of a warehouse, all stations of three postal codes, or the whole country (about 9,800 stations) in under a minute.

No account on any French site, no API key. **$1 per 1,000 stations.**

### What you get

Sample row (run with `center: "Place du Capitole, Toulouse"`, `radiusKm: 5`, `sortByFuel: "gazole"`):

```json
{
  "station_id": 31200002,
  "address": "211 Route d'Albi",
  "postal_code": "31200",
  "city": "Toulouse",
  "department_code": "31",
  "department": "Haute-Garonne",
  "region": "Occitanie",
  "latitude": 43.643,
  "longitude": 1.467,
  "station_type": "road",
  "open_24h": true,
  "services": ["Toilettes publiques", "Boutique alimentaire", "Station de gonflage", "Piste poids lourds", "Lavage automatique", "Automate CB 24/24"],
  "distance_km": 4.71,
  "gazole_eur_per_l": 2.25,
  "gazole_updated_at": "2026-09-17T08:01:10+00:00",
  "sp95_eur_per_l": null,
  "sp98_eur_per_l": 1.99,
  "sp98_updated_at": "2026-09-17T08:01:10+00:00",
  "e10_eur_per_l": 1.99,
  "e10_updated_at": "2026-09-17T08:01:10+00:00",
  "e85_eur_per_l": null,
  "gplc_eur_per_l": null,
  "fuels_available": ["Gazole", "E10", "SP98"],
  "fuels_not_sold": ["SP95", "E85", "GPLc"],
  "fuels_out_of_stock": [],
  "snapshot_at": "2026-09-17T18:09:23.037Z",
  "map_url": "https://www.openstreetmap.org/?mlat=43.643&mlon=1.467#map=16/43.643/1.467",
  "source_url": "https://data.economie.gouv.fr/explore/dataset/prix-des-carburants-en-france-flux-instantane-v2/"
}
```

Every row has the same 32 columns (the services list is shortened above), so the CSV or Excel export opens flat.

### Who it is for

- **Fleet and logistics managers**: the cheapest diesel around each depot, refreshed every morning by a schedule.
- **Travel and mobility apps**: stations with prices and services along a route, by radius.
- **Price watchers, journalists, analysts**: a full daily snapshot of the country to track averages by department or city over time.
- **Motorhome and EV-hybrid planners**: 24/7 pumps and LPG availability near a place.

### How to use it

1. Type a place in **Around this place** (an address, a landmark, a city, or coordinates "lat, lon") and a **Radius** in km. Or leave it empty and give **Postal codes**, **Cities** or **Departments**. Leave everything empty for the whole country.
2. Optionally restrict to some **Fuels**, keep **Open 24/7 only**, or choose **Road only / Motorway only**.
3. Pick **Sort by cheapest** (e.g. Diesel) to get the best prices first; without it, stations come nearest-first around a place.
4. Set **Maximum number of stations**, run, and download the dataset as CSV, Excel or JSON, or plug it into Google Sheets, Zapier, Make or your own code through the Apify API. Schedule the run daily to build a price history.

### Input summary

| Field | Example | What it does |
|---|---|---|
| `center` | `"Gare de Lyon, Paris"` or `"48.844, 2.374"` | Place to search around. |
| `radiusKm` | `10` | Radius around the place, 1 to 300 km. |
| `postalCodes` | `["75012", "75013"]` | 5-digit postal codes. |
| `cities` | `["Toulouse"]` | City names; every postal code of the city is used. |
| `departments` | `["31", "82"]` | Department codes. |
| `fuels` | `["gazole", "e10"]` | Keep stations selling at least one of them. |
| `sortByFuel` | `"gazole"` | Cheapest first for this fuel. |
| `open24hOnly` | `true` | 24-hour pump only. |
| `stationType` | `"motorway"` | `all`, `road` or `motorway`. |
| `maxStations` | `200` | Stop after this many stations. |

### Pricing

**$1 per 1,000 stations** (one paid event per row written to the dataset) plus the standard Actor start event ($0.05 per 1,000 runs). A 20-station search costs $0.02; the whole country, about $9.80.

### Speed and limits

- The whole country (9,802 stations on 2026-09-17) took 37 seconds and 100 feed requests in testing; a 5 km search takes a couple of seconds.
- Prices are those declared by the stations to the French government and republished as open data several times a day; each price carries its own update time. A station that has not updated a fuel for days keeps its last value, so check `*_updated_at` when freshness matters.
- The feed does not publish the brand of the station. It does publish services, opening 24/7, road/motorway type and declared shortages.
- The feed answers at most 10,000 rows per filter; the Actor reads department by department when a filter matches more (never the case on 2026-09-17, the whole feed being under 10,000).
- Addresses are resolved with the national address base and city names with the official communes register, both public French services. If a place is not found, write coordinates "lat, lon" instead.

### Data source and legal notice

All data comes from "Prix des carburants en France - flux instantané v2", published by the French Ministry of Economy (DGCCRF) on data.economie.gouv.fr and data.gouv.fr under the French open licence "Licence Ouverte 2.0" (Etalab). It can be reused, including commercially, provided the source is mentioned ("Source: DGCCRF, prix des carburants, data.economie.gouv.fr"). The Actor reads the feed as-is and adds no data of its own.

### Support

Something wrong with a station? Open its `map_url`, and compare with the official page in `source_url`, which shows the raw record. For anything else, use the **Issues** tab of this Actor.

# Changelog

This Actor's version history is a separate document: https://apify.com/futurelife/french-fuel-prices/changelog.md

# Actor input Schema

## `center` (type: `string`):

An address, a place or a city (e.g. "Place du Capitole, Toulouse", "Gare de Lyon, Paris"), or coordinates written "lat, lon" (e.g. "43.6045, 1.4442"). Stations within the radius below are returned, nearest first when no price sort is chosen.

## `radiusKm` (type: `integer`):

Distance around the place above, in kilometres (1 to 300).

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

5-digit French postal codes, e.g. 75008, 31000.

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

City names (Toulouse, Lyon, "Saint-Denis (93)"). Every postal code of the city is included.

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

French department codes: 75, 69, 13, 31, 2A, 974… Leave empty to ignore.

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

Keep only stations that sell at least one of these fuels. Leave empty for all fuels.

## `sortByFuel` (type: `string`):

Order the stations by the price of this fuel, cheapest first; stations without a price for it are left out.

## `open24hOnly` (type: `boolean`):

Keep only stations with a 24-hour self-service pump.

## `stationType` (type: `string`):

Road stations, motorway stations, or both.

## `maxStations` (type: `integer`):

The run stops once this many stations have been exported. The whole country has about 9,800 stations.

## `requestsPerSecond` (type: `integer`):

Speed of calls to the public feed (1 to 8). The default is fine.

## Actor input object example

```json
{
  "center": "Place du Capitole, Toulouse",
  "radiusKm": 10,
  "sortByFuel": "none",
  "open24hOnly": false,
  "stationType": "all",
  "maxStations": 200,
  "requestsPerSecond": 4
}
```

# Actor output Schema

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

One row per petrol station: prices per fuel with their timestamp, address, GPS, distance, opening 24/7, services, shortages. Download as JSON, CSV or Excel.

## `run` (type: `string`):

Log, statistics and the same dataset in a table view.

# 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 = {
    "center": "Place du Capitole, Toulouse"
};

// Run the Actor and wait for it to finish
const run = await client.actor("futurelife/french-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 = { "center": "Place du Capitole, Toulouse" }

# Run the Actor and wait for it to finish
run = client.actor("futurelife/french-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 '{
  "center": "Place du Capitole, Toulouse"
}' |
apify call futurelife/french-fuel-prices --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,futurelife/french-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/AK3DhD3RuN6FL9dpT/builds/bA6Npo1EszbnPZOLW/openapi.json
