# Italy Fuel Prices API - Petrol & Diesel, Official MIMIT (`digivibetech/fuel-prices-italy`) Actor

Prices for every petrol station in Italy (~24,000) from the Ministry's official open data (MIMIT, updated daily): diesel, petrol, LPG, CNG, self vs served, brand, address, GPS. Filter by province or comune. $0.00115 per station.

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

## Pricing

$1.15 / 1,000 fuel station with prices delivereds

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

## Italy Fuel Prices API - Petrol & Diesel, Official MIMIT

**Italy Fuel Prices API** — prices for every petrol station in Italy (~24,000) from the Ministry's official open data (MIMIT, updated daily): diesel, petrol, LPG, CNG, self vs served, brand, address, GPS.

> **Try it free:** press **Start** — the prefilled input runs a small real job (up to 20 × fuel station with prices delivered, about $0.023 in events). Apify's free plan includes monthly platform credit, so a first test costs you nothing. You can also set a maximum cost per run.

- **What you get:** `country`, `brand`, `address`, `postalCode`, `city`, `prices`
- **Who it's for:** fleet managers, mobility apps and price analysts
- **Price:** $0.00115 per fuel station with prices delivered
- **Data source:** Uses the Italian Ministry (MIMIT) official open data, updated daily.

### What is Italy Fuel Prices API?

Prices for **every petrol station in Italy** (about 24,000) from the Ministry of Enterprises and Made in Italy (MIMIT) official open data: prices in force at 08:00 of the previous day, published daily under the IODL 2.0 licence.

Each item joins the station registry with its prices: `diesel`, `sp95` (benzina), `lpg` (GPL), `cng` (metano, per kg), `dieselPremium`, plus **self-service and served prices separately**, brand-specific fuels (`otherFuels`, e.g. Blue Diesel, HVO), brand, address, comune, province, GPS, motorway flag and the time each price was reported.

### ⬇️ What data you get

One dataset item per result. Key fields:

| Field |
|---|
| `country` |
| `brand` |
| `address` |
| `postalCode` |
| `city` |
| `prices` |
| `open24h` |
| `pricesUpdatedAt` |
| `stationId` |

### 🎯 Use cases

- Find the cheapest diesel or petrol in a province
- Monitor price changes per station over time
- Feed station prices and GPS into a map or app

#### Use cases

Fleet fuel cost tracking, price-comparison apps and maps, logistics route costing, retail fuel market research, daily price monitoring (schedule the actor).

### ▶️ How to use

1. Open the actor; the input is prefilled with a small real example.
2. Replace it with your own input and set `maxStations` to control the cost.
3. Press **Start**. Results appear in the **Output** tab (Overview view).
4. Download JSON, CSV or Excel, call the results via API, or schedule the actor.

#### Quick start: example input, output and cost

Official Italian petrol station prices from MIMIT open data: diesel, benzina, GPL, metano, self vs served, by province or comune. Pay per station.

**Example input**

```json
{
  "areas": [
    "IT Bergamo"
  ],
  "maxStations": 20
}
```

**Cost example:** All ~24,000 Italian stations x $0.00115 = **$27.60**; one province (~300) = **$0.35**.

**Real run `38T0oAC99VFAmfBjR` on 20 Nov 2026 (build 1.0.8, IT Bergamo, 10 stations):**

![Input settings](https://api.apify.com/v2/key-value-stores/8dx7mDMr71NbvtKdp/records/fuel-prices-italy-std-01-input.png?signature=1RkbxbNoxgUb8VFgiz5rB)
![Results table](https://api.apify.com/v2/key-value-stores/8dx7mDMr71NbvtKdp/records/fuel-prices-italy-std-02-results-table.png?signature=odnTkfuskEvIYquiUJwp)
![One result item](https://api.apify.com/v2/key-value-stores/8dx7mDMr71NbvtKdp/records/fuel-prices-italy-std-03-result-item.png?signature=1BHk1U89kviRUa3Bw3F4i)
![Run cost breakdown](https://api.apify.com/v2/key-value-stores/8dx7mDMr71NbvtKdp/records/fuel-prices-italy-std-04-run-cost.png?signature=1110DUV82jzALqqBXcnTZ)

### ⚙️ Input

- **Areas**: `IT MI` (province code) or `IT Bergamo` (comune name). Several per run.
- Optional: only some fuels, cheapest-first sorting for one fuel, max stations.

#### Example input

```json
{
  "areas": [
    "IT Bergamo"
  ],
  "maxStations": 20
}
```

### 💵 Pricing and cost estimate

Set `monitorName` (for example `milano-daily`) and schedule the actor daily. Each station then gets `changeStatus` (`new`, `changed` or `unchanged`), `previousPrices` and `priceChanges` (the difference per fuel in EUR per litre). With `onlyChangedStations: true` you receive, and pay for, only stations whose prices moved. Stations that did not change are skipped and free.

#### Pricing (pay per event)

- **$0.00115 per station delivered.** No start fee. Invalid or empty areas are free. Your max cost per run is respected exactly.

#### Cost estimate

| Fuel station with prices delivereds | Cost |
|---|---|
| 100 | $0.11 |
| 1,000 | $1.15 |
| 10,000 | $11.50 |

You pay only for these events: no subscription. Set **Maximum cost per run** in the run options and the actor stops before it is reached.

### 🔌 Integrations and API

Run it from **n8n, Make, Zapier, Clay** or any tool that can call an HTTP endpoint, connect a **webhook** to get notified when a run finishes, or let AI agents call it through the **Apify MCP server** (`mcp.apify.com`).

Run it and get the results in one call:

```bash
curl -X POST "https://api.apify.com/v2/acts/digivibetech~fuel-prices-italy/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"areas": ["IT Bergamo"], "maxStations": 20}'
```

Python (`pip install apify-client`):

```python
from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("digivibetech/fuel-prices-italy").call(run_input={"areas": ["IT Bergamo"], "maxStations": 20})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

### ⚠️ Limits

- Italy only, from the official MIMIT open data. Other countries are not covered.
- Prices are as reported by the stations to MIMIT and can be a day old.
- The Ministry's CSV file server often does not answer the Apify cloud. The actor then reads the same stations from the Ministry's live price service, the Osservatorio Prezzi Carburanti (carburanti.mise.gov.it), and the `source` field says which one was used. Those items have current prices but no motorway flag (`highwayStation` is null). Stations with no current price are not listed by that service.

### 🛡️ Data source, privacy and legality

Uses the Italian Ministry (MIMIT) official open data, updated daily.

#### Responsible use and attribution

Official open data (IODL 2.0); every item names its source and date. Attribute MIMIT when you republish. The operator ('Gestore') column is never read because it can name a private person.

Spain: the Spanish Ministry API refuses requests from the Apify cloud, and we never use proxies to get around that, so Spanish areas are rejected (free).

### ❓ FAQ

#### How much does Italy Fuel Prices API cost?

$0.00115 per fuel station with prices delivered. See the cost estimate table above. There is no monthly fee.

#### Can I try it for free?

Yes. Press Start with the prefilled input: it runs a small real job (up to 20 × fuel station with prices delivered, about $0.023 in events). Apify's free plan includes monthly platform credit, which covers a first test.

#### Is it legal to use Italy Fuel Prices API?

Uses the Italian Ministry (MIMIT) official open data, updated daily. Use the results lawfully (terms of the source, GDPR where it applies). This is not legal advice.

#### Can I use it through the API or an MCP server?

Yes. Every run is available through the Apify API and the official client libraries, and AI agents can call the actor through the Apify MCP server. See Integrations and API above.

#### Something does not work. Where do I get help?

Open an issue on the Issues tab or use [digivibetech.com/support](https://digivibetech.com/support/). Include the run ID so we can reproduce it.

### 📝 Changelog

#### 20 Nov 2026 — reliable data access (build 1.0.8)

- The MIMIT CSV download retries with backoff and longer timeouts. When the file server does not answer the Apify cloud, runs use the Ministry's live price service (carburanti.mise.gov.it) instead, so runs deliver data again.

#### 20 Nov 2026 — listing refresh

- README, listing text and input form restructured to the DigiVibeTech Apify quality standard v1. No feature or price change.

#### 1.0 — builds 1.0.1 to 1.0.2

- First build 2026-10-14, latest build 2026-10-22 (2 successful builds).

### 🧩 More DigiVibeTech actors

- [Website SEO & AI Search Audit (GEO/AEO)](https://apify.com/digivibetech/ai-search-citation-readiness)
- [Broken Link & Image Checker - Sitemap or Crawl](https://apify.com/digivibetech/broken-link-image-checker)
- [Bulk Image Converter & Compressor - WebP, AVIF, JPEG, PNG](https://apify.com/digivibetech/bulk-image-converter-compressor)
- [Bulk QR & Barcode Generator - PNG, SVG, Label PDFs](https://apify.com/digivibetech/bulk-qr-barcode-generator)

*Maintained by DigiVibeTech. Questions or bugs: use the Issues tab or [digivibetech.com/support](https://digivibetech.com/support/); we reply within 2–5 business days.*

# Changelog

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

# Actor input Schema

## `areas` (type: `array`):

One per line: 'IT MI' (Italian province code) or 'IT Bergamo' (comune name).

## `areasText` (type: `string`):

Alternative to the list: areas separated by commas or new lines, e.g. 'IT MI, IT Roma'.

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

Leave empty for all fuels. diesel = Gasolio; sp95 = Benzina; lpg = GPL; cng = Metano (per kg); dieselPremium = Gasolio Premium. Brand fuels are in otherFuels.

## `sortCheapestBy` (type: `string`):

Within each area, cheapest station first for this fuel.

## `onlyWithPrices` (type: `boolean`):

Skip stations with no current price for the selected fuels (they are not charged).

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

Stop after this many stations (each costs $0.00115).

## `monitorName` (type: `string`):

Set a name to compare each station's prices with the previous run of the same monitor: adds changeStatus (new/changed/unchanged), previousPrices and priceChanges (EUR per litre). Empty = off.

## `onlyChangedStations` (type: `boolean`):

With a monitor name: skip stations whose prices did not change since the last run. Skipped stations are not delivered and not charged.

## Actor input object example

```json
{
  "areas": [
    "IT Bergamo"
  ],
  "onlyWithPrices": true,
  "maxStations": 20,
  "onlyChangedStations": false
}
```

# Actor output Schema

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

All result items (overview view)

## `errors` (type: `string`):

Inputs that could not be processed, with the reason

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

Counts of processed, billed and failed 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 = {
    "areas": [
        "IT Bergamo"
    ],
    "maxStations": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("digivibetech/fuel-prices-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 = {
    "areas": ["IT Bergamo"],
    "maxStations": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("digivibetech/fuel-prices-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 '{
  "areas": [
    "IT Bergamo"
  ],
  "maxStations": 20
}' |
apify call digivibetech/fuel-prices-italy --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,digivibetech/fuel-prices-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/yFzfZP1LPabYHWA49/builds/9PFQGInnZRMlW2bHk/openapi.json
