# Fuel Prices API - Europe Stations & Weekly Averages, No Key (`martin10291/europe-fuel-prices`) Actor

No API key. Cheapest diesel, petrol and LPG at stations near any point in France, Spain and Italy (official feeds, about 33,000 stations) plus official weekly pump prices for all 27 EU countries with history since 2005. Price monitor mode returns only changes.

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

## Pricing

from $0.70 / 1,000 results

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 API - Europe Stations & Official Weekly Averages

**Problem:** your fleet, logistics, travel or price-comparison app needs diesel and petrol prices per station and per country. Every country publishes its own feed in its own format (a 12 MB JSON file in Spain, two pipe-separated CSVs in Italy, a geo API in France, a weekly Excel file from the European Commission), and most fuel price APIs cover one or two countries.

**This API:** no API key, no login. One call returns:

- **Station prices near a point** in **France, Spain and Italy** (about 33,000 stations), cheapest first or nearest first: address, coordinates, distance, the price of your fuel and every other fuel the station sells, with the time the station last reported it.
- **Official weekly pump prices for all 27 EU countries** (EU Weekly Oil Bulletin, incl. taxes): petrol 95, diesel, LPG and heating oil in EUR per litre, change vs last week, 4 weeks and 52 weeks, plus the EU-27 and euro area averages and **weekly history back to 2005**.

### Why it is different

- **3 countries of station data + 27 countries of averages in one schema.** Fuels are normalised (diesel, petrol95, petrol95_e10, petrol98, lpg, e85, cng, lng, premium grades, adblue, hydrogen).
- **Fast:** national files are cached and refreshed in the background, so calls do not wait for a national download.
- **Honest timestamps:** every price carries the time the station reported it (`priceUpdatedAt`); an outage of one country's feed is reported in the run summary and never shown as "no stations".
- **Price monitor:** `onlyNew: true` + `monitorId` returns only stations whose price went down or up (with `previousPrice`) and only new weekly averages. Schedule it daily.
- Official open data only, with the source and licence on every row. No scraping, no personal data.

### Example (API)

```bash
curl -X POST "https://api.apify.com/v2/acts/martin10291~europe-fuel-prices/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"latitude": 40.4168, "longitude": -3.7038, "radiusKm": 5, "fuel": "diesel", "maxStations": 10, "averageCountries": ["ES", "EU"]}'
```

Station row (trimmed):

```json
{"type": "station", "country": "ES", "stationId": "ES-4535", "brand": "Ballenoil", "address": "Calle Santa Genoveva, 26",
 "city": "Madrid", "latitude": 40.424306, "longitude": -3.648806, "distanceKm": 4.73, "fuel": "diesel", "price": 1.799,
 "priceUpdatedAt": "2026-11-12T15:26:50+01:00", "prices": {"diesel": {"price": 1.799}, "petrol95": {"price": 1.599}},
 "currency": "EUR", "source": "Ministerio para la Transicion Ecologica, Geoportal Gasolineras"}
```

Weekly average row (trimmed):

```json
{"type": "weekly_average", "countryCode": "DE", "country": "Germany", "date": "2026-11-09",
 "prices": {"petrol95": 2.067, "diesel": 2.253, "lpg": 1.1341, "heatingOil": 1.6909},
 "changeVsLastWeek": {"petrol95": -0.061, "diesel": -0.029}, "change52Weeks": {"diesel": 0.617},
 "historyFrom": "2005-01-03", "source": "European Commission, Weekly Oil Bulletin (prices incl. taxes)", "licence": "CC BY 4.0"}
```

### Use from agents (MCP)

Add the Apify MCP server (`https://mcp.apify.com?tools=martin10291/europe-fuel-prices`) to Claude, Cursor or any MCP client and ask: "Where is the cheapest diesel within 5 km of the Colosseum?" or "How did diesel prices in Poland change over the last year?".

### Input

| Field | What it does |
|---|---|
| `mode` | `both` (default), `stations` or `averages` |
| `latitude`, `longitude`, `radiusKm` | Point and radius (0.5-50 km) for station prices |
| `fuel` | diesel, petrol95, petrol95_e10, petrol98, lpg, e85, cng, lng, diesel_premium, petrol_premium, adblue, hydrogen, all |
| `sortBy`, `maxStations` | `price` (cheapest first) or `distance`; up to 200 stations |
| `averageCountries`, `historyWeeks` | EU country codes (+ EU, EA, or ALL) and how many weeks of history to attach |
| `onlyNew`, `monitorId` | Price monitor: only changes since the last run with this Monitor ID |

### Sources and licences

- France: prix-des-carburants (data.economie.gouv.fr), Licence Ouverte 2.0. Updated by stations in near real time.
- Spain: Ministerio para la Transicion Ecologica, Geoportal Gasolineras (public sector reuse with attribution). Updated about every 30 minutes.
- Italy: MIMIT Osservaprezzi carburanti, IODL 2.0. Daily file (prices as of 8:00).
- EU 27: European Commission Weekly Oil Bulletin, CC BY 4.0. Weekly (Monday prices, published mid-week).

### Honest limits

- **Station prices: France, Spain and Italy only.** Other countries get the official weekly national averages, not per-station prices.
- Italian stations report their own prices; some prices are days or weeks old. Always check `priceUpdatedAt`.
- Weekly averages are national averages incl. taxes as reported by each member state to the European Commission, not live prices.

### FAQ

- **How fresh is the data?** France: as reported by each station (minutes). Spain: national file refreshed about every 30 minutes. Italy: daily file. EU averages: weekly (Monday prices). Every row has its own timestamp.
- **What if a source is down?** That country's stations are skipped, the run summary lists the error, and other countries still answer. Nothing is invented and you are not charged for missing rows.
- **Why no station prices for Germany or Austria?** Their station feeds need a personal key or have no clear reuse licence, so we only give their official weekly averages.
- **Can I get only changes?** Yes: `onlyNew: true` with a `monitorId` returns stations whose price changed since the last run (with `previousPrice` and `priceChange`) and only new weekly bulletins.

# Actor input Schema

## `mode` (type: `string`):

both = station prices near the point plus the weekly national averages; stations = only stations near the point (France, Spain, Italy); averages = only the official weekly averages per EU country.

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

Latitude of the point to search around (WGS84), e.g. 48.8566 for Paris, 40.4168 for Madrid, 41.9028 for Rome. Station prices cover France, Spain and Italy.

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

Longitude of the point to search around (WGS84), e.g. 2.3522 for Paris.

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

Search radius around the point in kilometres, 0.5 to 50.

## `fuel` (type: `string`):

Fuel to price and sort by: diesel, petrol95 (E5), petrol95_e10, petrol98, lpg, e85, cng, lng, diesel_premium, petrol_premium, adblue, hydrogen, or all (every fuel the station sells, sorted by distance). Every row also lists all fuels of the station.

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

price = cheapest first (ties by distance); distance = nearest first.

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

Maximum number of stations to return, 1 to 200.

## `averageCountries` (type: `array`):

ISO country codes for the official EU Weekly Oil Bulletin averages (any of the 27 EU countries, plus EU for the EU-27 average and EA for the euro area). Use \["ALL"] for all. Leave empty in both mode to skip averages.

## `historyWeeks` (type: `integer`):

Add the last N weekly prices to every average row (0 = none, up to 1,100 weeks back to 2005).

## `onlyNew` (type: `boolean`):

Return only stations whose price changed (price_down / price_up / new_station) and only new weekly averages since the last run with the same Monitor ID. The first run returns everything. Use it on a schedule.

## `monitorId` (type: `string`):

Name of the watch list for Only changes mode, e.g. paris-diesel. Each Monitor ID keeps its own memory.

## Actor input object example

```json
{
  "mode": "both",
  "latitude": 48.8566,
  "longitude": 2.3522,
  "radiusKm": 5,
  "fuel": "diesel",
  "sortBy": "price",
  "maxStations": 10,
  "averageCountries": [
    "FR",
    "DE",
    "ES",
    "IT",
    "EU"
  ],
  "historyWeeks": 0,
  "onlyNew": false,
  "monitorId": "default"
}
```

# Actor output Schema

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

Station rows (type station: country, address, coordinates, distance, price of the chosen fuel and every fuel the station sells, update time, source and licence) and weekly average rows (type weekly_average: EUR per litre incl. taxes for petrol 95, diesel, LPG and heating oil, change vs last week, 4 weeks and 52 weeks, optional history since 2005).

# 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 = {
    "latitude": 48.8566,
    "longitude": 2.3522,
    "maxStations": 10,
    "averageCountries": [
        "FR",
        "DE",
        "ES",
        "IT",
        "EU"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("martin10291/europe-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 = {
    "latitude": 48.8566,
    "longitude": 2.3522,
    "maxStations": 10,
    "averageCountries": [
        "FR",
        "DE",
        "ES",
        "IT",
        "EU",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("martin10291/europe-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 '{
  "latitude": 48.8566,
  "longitude": 2.3522,
  "maxStations": 10,
  "averageCountries": [
    "FR",
    "DE",
    "ES",
    "IT",
    "EU"
  ]
}' |
apify call martin10291/europe-fuel-prices --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,martin10291/europe-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/iUZeH9YlgNNN8OTk1/builds/3C0QoeTiC6cAku8LY/openapi.json
