# Fuel Prices: Petrol & Diesel in the UK, France, Spain & More (`zaiq/fuel-prices`) Actor

Station-level petrol and diesel prices, brands, addresses, coordinates and update times from UK retailer feeds, France, Spain, Portugal, Mexico and more. Search places, postcodes or GPS points; get normalised fuel grades, price per litre and a free cheapest-station comparison per location.

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

## Pricing

from $0.40 / 1,000 station fuel prices

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: Petrol and Diesel by Station in the UK, France, Spain and More

Get **station-level fuel prices across countries in one run**. Choose the UK, France, Spain, Portugal, Mexico or Western Australia, supply places, postcodes or latitude,longitude points, and receive petrol, diesel, premium and LPG quotes in **one nullable row schema**. Each priced station/fuel quote is one paid row; every location also gets a **free cheapest-station and median-price comparison**.

Each row preserves the original fuel name next to a normalised grade, the price and currency, station coordinates, the source update time where one exists, the distance from the searched point and a price per litre. Public national or retailer feeds need no account or key.

Cloud tests on 12 November 2026 returned 95 prices across all six offered countries. GB postcodes, Paris place names and French postcodes also resolved and delivered prices.

Tested in Apify's cloud: the default input delivered 65 paid rows. The example below is a real delivered cloud row.

### What you get

| Field | What it holds |
|---|---|
| Record type | `recordType=stationPrice` is a paid quote. `recordType=summary` is a free comparison per input location. Both use exactly the same 37 nullable fields. Filter recordType before importing prices. |
| Source and station | `country` (ISO code), `source`, `sourceUrl`, `stationId`, `brand`, `name`, `address`, `city`, `postcode`. Missing source fields are null. FuelWatch station IDs are derived from name, address and coordinates because RSS has no native ID. |
| Position | `latitude`, `longitude`, `distanceKm` (straight line), `searchLocation`, `searchPoint` (resolved point, country and method), `radiusKm`. |
| Fuel | `fuelType` is petrol, E10, premium, diesel, premium_diesel, LPG, E85, HVO, biodiesel, midgrade or unl88 as available. `sourceFuelType` preserves the publisher’s actual grade label. |
| Price | `price`, `currency`, `unit` (litre or US gallon), `pricePerLitre`. UK pence and WA cents are divided by 100. A US gallon is 3.785411784 litres. Currencies are not converted. |
| Time | `updatedAt` and `updatedAtBasis` distinguish a price report from a feed extract. `scrapedAt` is collection time. WA supplies `priceDate`, `validFrom` and `validUntil`; its report time stays null. |
| Free comparison | `stationCount`, `priceRowCount`, `byFuelType` (cheapestStation, medianPricePerLitre, quote count and station count), `bySource` (delivered counts, status, notes, reason), `failedSources`, `partial`, `notes`. |
| Deduplication | `resultId` is stable for one location/station/source grade/price basis. Overlapping UK quotes use the newest available feed report; restarted runs do not charge delivered rows again. |

### What people use it for

- **Fleet and delivery cost checks:** compare the published diesel or petrol quotes near depots, stops or proposed purchase points. Use coordinates for reproducible point searches.
- **Price comparison apps:** load several official country feeds through one schema, then show the original grade, update date and source alongside each quote.
- **AI agents:** answer which delivered station is cheapest near a location using one tool and its free comparison instead of separate country scrapers.
- **Market monitoring:** schedule the same locations and save datasets to build your own observed price history. Each run reads the currently published feeds.

### How to use it

1. Choose the countries. The six defaults are GB, FR, ES, PT, MX and AU; only sources near each searched point are read.
2. Enter up to 20 locations. Coordinates avoid geocoding. Add a country to a place name. SW1A 1AA is a working Great Britain postcode example.
3. Set a 0.1–200 km radius and fuel grades. Petrol includes regular petrol and E10; diesel includes premium diesel. Select an exact ethanol grade when that distinction matters.
4. Set the maximum number of priced stations per location (1–500). The nearest candidates are kept; each may have several fuel quotes. Set Maximum cost per run in Apify.
5. Read summary records first, then filter stationPrice rows by country, fuelType, sourceFuelType and priceBasis for a like-for-like comparison.

### Input

| Field | Example | Notes |
|---|---|---|
| countries | \["GB","FR","ES","PT","MX","AU"] | Choose the six offered public-feed countries. AU covers Western Australia. |
| locations | \["51.5074,-0.1278", "48.8566,2.3522", "40.4168,-3.7038"] | 1–20 places, postcodes or latitude,longitude strings. The default coordinates are London, Paris and Madrid. |
| radiusKm | 15 | 0.1–200 km in a straight line from the resolved input point. |
| fuelTypes | \["petrol", "diesel"] | Choose petrol, diesel, premium, premium_diesel, LPG, E10, E5, E85, HVO, biodiesel, midgrade or unl88. Exact blend requests require explicit source labels. |
| maxStationsPerLocation | 10 | Nearest 1–500 priced stations across relevant selected feeds. This is a station cap, not a paid-row cap. A station may yield several prices. |

### Output

Each result is one row in the run's dataset (download it as JSON, CSV, Excel, XML or HTML, or read it through the API). An example row (values shortened):

```json
{
  "recordType": "stationPrice",
  "resultId": "53c008c712ea06d417d4d60045a1adc1f61d701d6dc6b9423713a5173aab4cb0",
  "country": "GB",
  "source": "uk:sgn",
  "sourceUrl": "https://www.sgnretail.uk/files/data/SGN_daily_fuel_prices.json",
  "stationId": "gcpvju9kj9kv",
  "brand": "TEXACO",
  "name": null,
  "address": "241 City Road, Islington, London",
  "city": null,
  "postcode": "EC1V 1JQ",
  "latitude": 51.52932,
  "longitude": -0.096918,
  "fuelType": "E10",
  "sourceFuelType": "E10",
  "price": 1.679,
  "currency": "GBP",
  "unit": "litre",
  "pricePerLitre": 1.679,
  "updatedAt": "2026-11-12T12:13:01Z",
  "updatedAtBasis": "retailer-feed",
  "priceBasis": "retail",
  "priceDate": null,
  "validFrom": null,
  "validUntil": null,
  "distanceKm": 3.241,
  "searchLocation": "51.5074,-0.1278",
  "scrapedAt": "2026-11-12T18:56:42Z",
  "searchPoint": {
    "latitude": 51.5074,
    "longitude": -0.1278,
    "resolvedName": "51.5074,-0.1278",
    "country": null,
    "method": "input-coordinates"
  },
  "radiusKm": 15,
  "stationCount": null,
  "priceRowCount": null,
  "byFuelType": null,
  "bySource": null,
  "failedSources": null,
  "partial": null,
  "notes": null
}
```

Filter recordType to separate paid records from free search summaries. The SUMMARY key-value record includes delivered counts and source failures. Comparisons cover delivered records only.

### Pricing

- **$0.0005 per delivered station fuel-price row ($0.50 per 1,000)**, plus $0.00005 per Actor start.
- Each station/fuel grade is one paid row. Free location summaries, failures and unavailable quotes have no station-price charge.

What typical jobs cost at the list price:

| Job | Cost |
|---|---|
| 100 station/fuel prices | $0.05005 including one start |
| 1,000 station/fuel prices | $0.50005 including one start |

Set Maximum cost per run in Apify. A cloud test on 12 November 2026 stopped cleanly at two paid rows with a $0.0013 limit; free summaries are retained.

### Tips

- Use the same coordinates and radius on repeated runs. Place and postcode centroids can change and ambiguous names can resolve to the wrong town; inspect searchPoint.
- Compare sourceFuelType as well as fuelType. Regular petrol and E10, premium 95 and premium 98, or special/additive diesel are not identical products.
- Keep currencies separate. pricePerLitre normalises quantity only; GBP, EUR, AUD, MXN and USD are not exchange-rate equivalents.
- Inspect updatedAtBasis. A recently downloaded feed is not proof that a particular station changed its price recently.
- National downloads are cached within a run, so several locations in one country share the same feed download. FuelWatch needs one request per selected product per reporting region (ten regions), then reuses that data for all WA points.

### Use it through the API

**Python**

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("zaiq/fuel-prices").call(run_input={"countries": ["GB", "FR", "ES", "PT", "MX", "AU"], "locations": ["51.5074,-0.1278", "48.8566,2.3522", "40.4168,-3.7038"], "radiusKm": 15, "fuelTypes": ["petrol", "diesel"], "maxStationsPerLocation": 10})
for row in client.dataset(run.default_dataset_id).iterate_items():
    print(row)
```

**JavaScript**

```js
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('zaiq/fuel-prices').call({"countries": ["GB", "FR", "ES", "PT", "MX", "AU"], "locations": ["51.5074,-0.1278", "48.8566,2.3522", "40.4168,-3.7038"], "radiusKm": 15, "fuelTypes": ["petrol", "diesel"], "maxStationsPerLocation": 10});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

**HTTP (one call, results back)**

```bash
curl -X POST 'https://api.apify.com/v2/acts/zaiq~fuel-prices/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>' \
  -H 'Content-Type: application/json' \
  -d '{"countries": ["GB", "FR", "ES", "PT", "MX", "AU"], "locations": ["51.5074,-0.1278", "48.8566,2.3522", "40.4168,-3.7038"], "radiusKm": 15, "fuelTypes": ["petrol", "diesel"], "maxStationsPerLocation": 10}'
```

### Integrations and schedules

- **Schedules:** run it every hour, day or week from the Apify Console (Schedules) and keep a history of results.
- **Make, Zapier, n8n, Google Sheets, Slack, Airtable:** connect it through Apify's integrations, or send each finished run to a **webhook**.
- **Datasets:** results stay in the run's dataset; export them or read them by API whenever you need them.

### Use it with AI agents (MCP)

Add Apify's MCP server with this Actor already pinned (`https://mcp.apify.com?tools=zaiq/fuel-prices`) to Claude, ChatGPT, Cursor, VS Code or any MCP client. The agent can find this Actor and run it for you: ask it for "Compare diesel and regular petrol near 48.8566,2.3522 in France within 10 km. Give me the cheapest delivered station, median per litre, report times and any failed sources.". AI agents can also pay for runs directly through Apify's agentic payments.

### Limits

- FuelWatch prices are the published date’s 06:00–06:00 AWST quotes. The previous date is requested before 06:00; expired/future periods are excluded. No station report timestamp is invented.
- Mexico has no update timestamp in these XML feeds. France lacks brand/name. Source fields can legitimately be missing and remain null.
- Prices are source-reported observations, not a purchase guarantee. Pump prices, eligibility, membership restrictions and local conditions can differ. Check the actual forecourt before relying on a saving.
- No login, private account, paid key or challenge solving is used. Refused cloud addresses are retired through the shared Pool. A login stops that source. Other sources continue.
- UK coverage uses Asda, Esso, SGN, JET and Moto feeds. Refused, stale, invalid-certificate and out-of-country feeds were excluded. Italy, US and Austria are unavailable.
- Coordinates avoid geocoding delays. Place names and postcodes depend on the public geocoder; unresolved locations receive free notes.

### FAQ

**What is a paid row?**

One delivered price for one original fuel grade at a station for one searched location and price basis. Multiple grades or Italian service modes mean multiple rows. Summaries and failures are free.

**Does the cheapest station cover every station in the area?**

It is the cheapest among delivered rows after the radius and station cap. National feed coverage itself can be partial. Increase the station cap to compare more of the published candidates.

**Can I compare prices across currencies?**

The Actor converts US gallons to litres, but it does not convert currencies. Summary groups keep country, currency, normalised grade and price basis separate.

**Why can a source return no prices?**

The point may be outside coverage, no selected grades may be priced, the source may be stale or unavailable, or the spending limit may have stopped work. bySource and failedSources distinguish these cases.

**Why are UK feeds from April not included?**

They still answer with plausible prices but their own update dates are months old. Retailer feeds older than seven days are rejected before any quote is charged.

**Can I get history or changes since my last run?**

This build returns current published snapshots. Schedule it and retain datasets to build history; resultId is stable for matching the same searched-location quote across runs. No between-run history service is included.

**Can I use names and postcodes?**

Yes, when the public geocoder resolves them. A full GB postcode also has a dedicated free lookup. Supply latitude,longitude for the most reproducible search and to avoid public geocoder availability.

**Why is Austria unavailable when its API answers?**

E-Control’s official FAQ explicitly excludes third-party reuse. The Actor does not request Austrian prices; it writes a free explanation if AT is selected.

**Can AI agents call this as one tool?**

Yes. Arrays select countries, places and grades; stationPrice rows share one schema and every location has a free summary. Set a spending cap and inspect partial/source failures.

### Related Actors from Zaiq

- [product-price-compare](https://apify.com/zaiq/product-price-compare): product offers across US retailers in one schema
- [used-car-listings](https://apify.com/zaiq/used-car-listings): car listings across multiple countries and marketplaces

### Support

Questions, a site that changed, or a field you need? Open an issue on this Actor's **Issues** tab: we answer there, usually within a day.

***

Also found as: fuel prices, petrol prices, diesel prices by station, UK fuel prices, France fuel prices, Spain petrol prices, Portugal DGEG prices, Mexico gas prices, FuelWatch Western Australia, fuel price API, station fuel comparison, fuel prices for AI agents.

# Actor input Schema

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

Public station feeds: GB legacy retailer coverage, France, Spain, Portugal, Mexico and Western Australia. Coverage varies by source.

## `locations` (type: `array`):

1–20 places, postcodes or latitude,longitude points. Add a country to ambiguous names, such as Paris, France. Coordinates avoid the public Photon geocoder. A radius applies around each resolved point.

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

0.1–200 km, measured in a straight line from each searched point. These are distances to stations, not driving distances or a route search.

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

Petrol includes regular petrol and E10; diesel includes premium diesel. Exact E5/E10 requests use explicit source labels only. Premium, LPG and other grades depend on each source. Prices per kg or cubic metre are excluded.

## `maxStationsPerLocation` (type: `integer`):

1–500 priced stations per location across all relevant sources, nearest first. Each station can produce several fuel-price rows. Summaries compare delivered rows only. US results also depend on GasBuddy's returned search window.

## Actor input object example

```json
{
  "countries": [
    "GB",
    "FR",
    "ES",
    "PT",
    "MX",
    "AU"
  ],
  "locations": [
    "51.5074,-0.1278",
    "48.8566,2.3522",
    "40.4168,-3.7038"
  ],
  "radiusKm": 15,
  "fuelTypes": [
    "petrol",
    "diesel"
  ],
  "maxStationsPerLocation": 10
}
```

# Actor output Schema

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

Dataset: the results.

## `summary` (type: `string`):

What each input returned, and notes.

# 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": [
        "GB",
        "FR",
        "ES",
        "PT",
        "MX",
        "AU"
    ],
    "locations": [
        "51.5074,-0.1278",
        "48.8566,2.3522",
        "40.4168,-3.7038"
    ],
    "radiusKm": 15,
    "fuelTypes": [
        "petrol",
        "diesel"
    ],
    "maxStationsPerLocation": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("zaiq/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 = {
    "countries": [
        "GB",
        "FR",
        "ES",
        "PT",
        "MX",
        "AU",
    ],
    "locations": [
        "51.5074,-0.1278",
        "48.8566,2.3522",
        "40.4168,-3.7038",
    ],
    "radiusKm": 15,
    "fuelTypes": [
        "petrol",
        "diesel",
    ],
    "maxStationsPerLocation": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("zaiq/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 '{
  "countries": [
    "GB",
    "FR",
    "ES",
    "PT",
    "MX",
    "AU"
  ],
  "locations": [
    "51.5074,-0.1278",
    "48.8566,2.3522",
    "40.4168,-3.7038"
  ],
  "radiusKm": 15,
  "fuelTypes": [
    "petrol",
    "diesel"
  ],
  "maxStationsPerLocation": 10
}' |
apify call zaiq/fuel-prices --silent --output-dataset

```

## MCP server setup

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