# Fuel Prices Europe: Live Petrol & Diesel Station Prices (`datacrate/fuel-prices-eu-open-data`) Actor

Live petrol and diesel prices for ~9,800 French stations from the official open-data feed (refreshed every 10 minutes). Filter by department, postal code, radius and fuel type; cheapest-first; delta mode flags price changes. Licence Ouverte v2.0.

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

## Pricing

from $0.64 / 1,000 station price returneds

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

## Fuel Prices Europe – live petrol & diesel station prices (France open data)

Get current **diesel (gazole), SP95, SP98, E10, E85 and LPG** prices for every open French fuel station (about 9,800 stations and 32,000 prices) as clean rows. Data comes straight from the French government's official open-data feed, which is refreshed about every 10 minutes. No scraping, no browser, no API key.

**First run:** press Start. The prefill returns the 50 cheapest diesel and SP95 prices in Paris (department 75). It costs about **$0.04 at $0.0008 per row** and finishes in a few seconds. **Empty input also works:** you get the 100 cheapest diesel (gazole) prices in the Paris area (departments 75, 92, 93, 94).

Coverage: **France only** in this version. Other countries are not included because their reuse terms have not been confirmed.

### What you can do with it

- **Find the cheapest fuel near a point:** give `latitude`, `longitude` and `radiusKm`, sort by `price` or `distance`.
- **Regional price monitoring:** pass `departments` (for example `["13","69"]`) or `postalCodes` (`["750","920"]` prefixes work).
- **Price-change alerts:** schedule the actor with `onlyChangedSinceLastRun`. Every row also carries `previousPrice`, `priceChange` and `changedSinceLastRun`, so you can build alerts or charts.
- **Fleet and logistics budgets:** compare diesel across depots; filter 24/7 card pumps with `automate24hOnly`.
- **Fresh data only:** `maxAgeHours` drops prices that have not been updated recently.

### Input

| Field | What it does |
|---|---|
| `departments` | Département codes: `75`, `13`, `2A`, `971`. Empty with no other location filter = Paris area (75, 92, 93, 94) |
| `postalCodes` | Full 5-digit codes or prefixes |
| `latitude`, `longitude`, `radiusKm` | Radius search (default radius 10 km). Rows include `distanceKm` |
| `fuelTypes` | `gazole`, `sp95`, `sp98`, `e10`, `e85`, `gplc`. Empty = `gazole` |
| `maxAgeHours` | Skip prices older than this (0 = no limit) |
| `sortBy` | `price` (cheapest first, default) or `distance` |
| `automate24hOnly` | Only stations with a 24/24 pump |
| `onlyChangedSinceLastRun`, `stateKey` | Delta mode: only new or changed prices since the last run with the same State name. The first run returns everything |
| `maxItems` | Cap on rows (default 100). You pay per row. Because rows are sorted cheapest first, `maxItems: 20` gives you the 20 cheapest |

Example: `{ "departments": ["75"], "fuelTypes": ["gazole", "sp95"], "maxItems": 50 }`

Radius example: `{ "latitude": 43.2965, "longitude": 5.3698, "radiusKm": 15, "fuelTypes": ["e10"], "sortBy": "distance" }`

### Output

```json
{
  "country": "FR",
  "stationId": "94430007",
  "address": "79 RUE DES FUSILLES DE CHATEAUBR",
  "postalCode": "94430",
  "city": "Chennevières-sur-Marne",
  "department": "94",
  "latitude": 48.799,
  "longitude": 2.543,
  "roadType": "road",
  "fuelType": "gazole",
  "fuelName": "Gazole",
  "price": 2.042,
  "currency": "EUR",
  "unit": "EUR per litre",
  "priceUpdatedAt": "2026-11-16T23:01:00.000Z",
  "priceAgeHours": 20.7,
  "distanceKm": null,
  "isAutomate24h": false,
  "openingHours": [{ "day": "Monday", "closed": false, "slots": ["06:00-21:00"] }],
  "services": ["Station de gonflage", "Wifi"],
  "previousPrice": 2.039,
  "priceChange": 0.003,
  "changedSinceLastRun": true,
  "source": "prix-carburants.gouv.fr (donnees.roulez-eco.fr open data feed)",
  "license": "Licence Ouverte / Open Licence v2.0 (Etalab)",
  "attribution": "Ministère de l'Economie, prix-carburants.gouv.fr"
}
```

One row per station and fuel type. `previousPrice` and `changedSinceLastRun` are `null` on the first run for a given State name. Prices are euros per litre. `priceUpdatedAt` is converted from the feed's Paris local time to UTC. `roadType` is `road` or `motorway`. The feed has no brand or station name, so those fields are not returned.

### Data source, licence and attribution

Prices come from the French Ministry of the Economy's "Prix des carburants en France" instant feed (`donnees.roulez-eco.fr/opendata/instantane`), published as open data under the **Licence Ouverte / Open Licence v2.0**. That licence allows free reuse, including commercial reuse, if you credit the source. If you publish or redistribute this data, credit it as:

> Ministère de l'Economie, prix-carburants.gouv.fr

Every row carries `source`, `license` and `attribution` fields to make that easy. The actor downloads one small zip file per run with a descriptive User-Agent and does not send any other requests. No personal data is collected; station rows contain business addresses only, and no phone or email contact data is stored or returned.

### Notes and limits

- Stations only report prices they entered; a missing fuel type means that station does not sell it or has not reported it. Prices can lag real pump prices by hours.
- The feed is a snapshot of the current price. Historical prices are not included, but scheduling the actor with delta mode lets you build your own history.
- Delta mode compares against the price snapshot saved by the previous run with the same State name (stored in a named key-value store on your account).
- Not affiliated with or endorsed by the French government.

### Pricing

Pay per result: **$0.0008 per station-price row** ($0.80 per 1,000), no start fee. Set `maxItems` to cap spend.

# Actor input Schema

## `countries` (type: `array`):

Country codes. Only France (FR) is available in this version.

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

French département codes, e.g. 75 (Paris), 13 (Bouches-du-Rhône), 2A, 971. Empty with no postal code or coordinates = Paris area (75, 92, 93, 94).

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

Full 5-digit postal codes or prefixes, e.g. 69001 or 690. Combined with departments (a station must match both when both are set).

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

gazole (diesel), sp95, sp98, e10, e85, gplc (LPG). Empty = gazole.

## `latitude` (type: `number`):

Centre point for a radius search, e.g. 48.8566. Use together with Longitude.

## `longitude` (type: `number`):

Centre point for a radius search, e.g. 2.3522.

## `radiusKm` (type: `number`):

Search radius around the latitude/longitude point.

## `maxAgeHours` (type: `number`):

Skip prices last reported more than this many hours ago. 0 = no limit.

## `sortBy` (type: `string`):

price = cheapest first (so Max stations returned gives you the cheapest N). distance = nearest first (needs latitude/longitude).

## `automate24hOnly` (type: `boolean`):

Only stations with a 24/24 card-payment pump.

## `onlyChangedSinceLastRun` (type: `boolean`):

Return only prices that are new or different since the previous run with the same State name. The first run returns everything. Each row always carries previousPrice and changedSinceLastRun.

## `stateKey` (type: `string`):

Name of the saved price snapshot. Use different names for different watchlists.

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

Stop after this many rows (cheapest or nearest first). You are charged per row returned.

## Actor input object example

```json
{
  "countries": [
    "FR"
  ],
  "departments": [
    "75"
  ],
  "postalCodes": [],
  "fuelTypes": [
    "gazole",
    "sp95"
  ],
  "radiusKm": 10,
  "maxAgeHours": 0,
  "sortBy": "price",
  "automate24hOnly": false,
  "onlyChangedSinceLastRun": false,
  "stateKey": "default",
  "maxItems": 50
}
```

# Actor output Schema

## `results` (type: `string`):

One row per station and fuel type (default dataset items).

# 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 = {
    "countries": [
        "FR"
    ],
    "departments": [
        "75"
    ],
    "fuelTypes": [
        "gazole",
        "sp95"
    ],
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("datacrate/fuel-prices-eu-open-data").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 = {
    "countries": ["FR"],
    "departments": ["75"],
    "fuelTypes": [
        "gazole",
        "sp95",
    ],
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("datacrate/fuel-prices-eu-open-data").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 '{
  "countries": [
    "FR"
  ],
  "departments": [
    "75"
  ],
  "fuelTypes": [
    "gazole",
    "sp95"
  ],
  "maxItems": 50
}' |
apify call datacrate/fuel-prices-eu-open-data --silent --output-dataset

```

## MCP server setup

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

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/CpnlJefueFlBSy64A/builds/j1LkgODOTAkVqBy6T/openapi.json
