# Fuel Prices Spain, France & Italy — 42,000+ Gas Stations (`tidydata/fuel-prices-spain-france-italy`) Actor

Live diesel, petrol, LPG, CNG and HVO prices for 42,000+ gas stations in Spain, France and Italy from official open data, in one unified format. Filter by fuel, radius, city or brand and get the cheapest stations first.

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

## Pricing

from $0.40 / 1,000 gas 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

## ⛽ Fuel Prices Spain, France & Italy — 42,000+ gas stations, one clean format

Get **live diesel, petrol (95 / E10 / 98), LPG, CNG, LNG, HVO, E85, AdBlue and hydrogen prices** for every gas station in **Spain, France and Italy** — straight from the official government open-data feeds, normalized into **one unified table**.

No API keys, no scraping of private sites, no cookies. Just official, legally reusable data, cleaned up and ready for Excel, Google Sheets, your app or your AI agent.

### What you get

| Country | Stations | Freshness | Official source |
|---|---|---|---|
| 🇪🇸 Spain | ~11,500 | Updated several times a day | Ministerio para la Transición Ecológica — Geoportal Gasolineras |
| 🇫🇷 France | ~9,800 | Real-time feed | prix-carburants.gouv.fr (Ministère de l'Économie) |
| 🇮🇹 Italy | ~21,000 | Daily (prices in force at 8:00 the previous day) | MIMIT — Osservaprezzi Carburanti |

Each row is **one station** with all its prices as columns:

```json
{
  "country": "ES",
  "stationId": "14803",
  "name": "BALLENOIL",
  "brand": "BALLENOIL",
  "address": "CALLE NEWTON, 13",
  "postalCode": "37188",
  "city": "CARBAJOSA DE LA SAGRADA",
  "region": "SALAMANCA",
  "latitude": 40.943306,
  "longitude": -5.655139,
  "distanceKm": 3.06,
  "currency": "EUR",
  "diesel": 1.779,
  "gasoline_95": 1.679,
  "gasoline_98": null,
  "lpg": null,
  "updatedAt": "2026-10-09T21:30:46",
  "source": "Ministerio para la Transición Ecológica (Spain) open data",
  "license": "Reuse conditions of the Spanish Ministry for the Ecological Transition (Law 37/2007, RD 1495/2011). Source: Geoportal Gasolineras.",
  "pricesLocal": {
    "Gasoleo A": 1.779,
    "Gasoleo Premium": 1.799,
    "Gasolina 95 E5": 1.679
  }
}
```

Standard fuel columns: `diesel`, `diesel_premium`, `gasoline_95`, `gasoline_95_e10`, `gasoline_95_premium`, `gasoline_98`, `lpg`, `cng`, `lng`, `e85`, `hvo`, `adblue`, `hydrogen`. The original names used by each country are kept in `pricesLocal`.

### How to use it

- **Cheapest stations near a point** — set `fuelType` = `diesel`, `latitude`/`longitude` and `radiusKm` = 10. Results come sorted from cheapest, with `distanceKm`.
- **A whole country** — pick the country, leave the filters empty. Spain is ~11,500 rows.
- **One city or postcode** — use `locationContains` = `Madrid`, `75015`, `Milano`…
- **One brand** — `brandContains` = `Repsol`, `Cepsa`, `Eni`, `Q8`, `Ballenoil`… (France does not publish brand names).
- **Daily price history** — schedule the Actor once a day and append the dataset to Google Sheets, BigQuery or your database.

### Use cases

- 🚚 **Fleets & logistics** — find the cheapest refuelling stops on a route, audit fuel-card spending.
- 📱 **Apps & websites** — power a "cheapest fuel near me" feature without dealing with three different government formats.
- 📊 **Analysts & journalists** — compare prices across regions, brands and countries; track price changes over time.
- 🤖 **AI agents** — give your assistant a reliable tool to answer "where is diesel cheapest near X?".
- 🏪 **Station owners & brands** — monitor competitors' prices around your stations.

### Pricing

Pay only for what you get: you are charged per station returned. Use the filters and `maxItems` to fetch exactly what you need.

### Data, licences and attribution

All data comes from official open-data publications that allow reuse, including commercial reuse, with attribution:

- **Spain**: reuse conditions of the Ministry (Law 37/2007 and RD 1495/2011). Source: Ministerio para la Transición Ecológica — Geoportal Gasolineras.
- **France**: Licence Ouverte / Open Licence 2.0 (Etalab). Source: prix-carburants.gouv.fr — Ministère de l'Économie.
- **Italy**: Italian Open Data License 2.0 (IODL 2.0). Source: MIMIT — Osservaprezzi Carburanti. *This dataset is not an official MIMIT publication.*

Every row includes `source`, `license` and `updatedAt` so you can keep the attribution and the date of the last update when you reuse the data. This Actor is independent and is not endorsed by any of these public bodies. Prices are reported by the stations themselves; always check the price at the pump.

### FAQ

**Why only these countries?** We only include countries whose fuel price data is published under a licence that clearly allows reuse. More will be added as soon as they meet that bar.

**How fresh is the data?** Each run downloads the latest official publication at that moment. Check `updatedAt` on each row.

**Can I get historical data?** Schedule the Actor (e.g. daily) and keep the datasets — that builds your own history.

**Something missing or broken?** Open an issue on the Actor page and it will be fixed quickly.

# Actor input Schema

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

Countries to download: ES = Spain (all ~11,500 stations, updated several times a day), FR = France (~9,800 stations, real-time feed), IT = Italy (~21,000 stations, daily file with prices valid at 8:00 the previous day). More countries with clear open-data licences coming.

## `fuelType` (type: `string`):

Only return stations selling this fuel, sorted from cheapest to most expensive. Leave empty to get every station with all its prices.

## `latitude` (type: `string`):

Center point for a radius search, e.g. 40.4168 (Madrid). Use together with longitude and radius.

## `longitude` (type: `string`):

Center point for a radius search, e.g. -3.7038 (Madrid).

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

Only stations within this distance of the center point. Adds a distanceKm field.

## `locationContains` (type: `string`):

Simple text filter on address, postcode, city and region, e.g. 'Madrid', '28001', 'Lyon'.

## `brandContains` (type: `string`):

Only stations whose brand or name contains this text, e.g. 'Repsol', 'Cepsa', 'Eni', 'Q8'. (France publishes no brand names.)

## `sortByPrice` (type: `boolean`):

When a fuel type is selected, sort from cheapest to most expensive.

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

Stop after this many stations (after sorting). Leave empty for all.

## Actor input object example

```json
{
  "countries": [
    "FR"
  ],
  "fuelType": "diesel",
  "latitude": "48.8566",
  "longitude": "2.3522",
  "radiusKm": 10,
  "sortByPrice": true,
  "maxItems": 20
}
```

# Actor output Schema

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

One row per gas station with all its current fuel prices, location, source and licence.

# 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"
    ],
    "fuelType": "diesel",
    "latitude": "48.8566",
    "longitude": "2.3522",
    "radiusKm": 10,
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("tidydata/fuel-prices-spain-france-italy").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"],
    "fuelType": "diesel",
    "latitude": "48.8566",
    "longitude": "2.3522",
    "radiusKm": 10,
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("tidydata/fuel-prices-spain-france-italy").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"
  ],
  "fuelType": "diesel",
  "latitude": "48.8566",
  "longitude": "2.3522",
  "radiusKm": 10,
  "maxItems": 20
}' |
apify call tidydata/fuel-prices-spain-france-italy --silent --output-dataset

```

## MCP server setup

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

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/PwpT1rKRGNu4Qar8V/builds/cPfgFW05zoLwYkCRE/openapi.json
