# French Fuel Prices Finder (`vigilant_jasmine/french-fuel-prices-finder`) Actor

Live French fuel prices with 5 modes (postal/city/department/region/GPS radius), fuel-type + price + service filters, sorting and distance. Parallel, dedup, proxy. Free.

- **URL**: https://apify.com/vigilant\_jasmine/french-fuel-prices-finder.md
- **Developed by:** [DEV DEV](https://apify.com/vigilant_jasmine) (community)
- **Categories:** Business, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-usage

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## French Fuel Prices Finder — Pro

**Free Apify actor.** Live fuel prices at French stations with **five search
modes, fuel-type filtering, price/service filters, sorting and geo radius**. Prix
des carburants en France en temps reel.

Source: official feed "Prix des carburants - flux instantane" on
`data.economie.gouv.fr` (Ministere de l'Economie). No API key. Open Licence 2.0.

### Search modes

- **postalCode** / **city** / **department** / **region** — by area.
- **nearPoint** — stations within `radiusMeters` of a GPS point, with computed
  `distance_m`.

### Filters & sorting

`fuelType` (gazole, SP95, SP98, E10, E85, GPLc) keeps only stations selling it;
`maxPrice` caps the chosen fuel's price; `requiredService` matches a service
substring (e.g. "24/24"); `sortBy` = cheapest/most expensive (needs a fuel
type) or nearest (nearPoint). `maxStations` caps volume per query.

### Runtime (developer-grade)

Bounded **parallelism** (`maxConcurrency`), global **`maxItems`** cap,
**de-duplication** by station id, resilient HTTP client (timeout, backoff+jitter,
429/5xx), optional **Apify proxy**, structured logs, and a **run summary** in the
key-value store (`OUTPUT`).

### Output (trimmed)

```json
{
  "query": "near 48.8534,2.3488", "status": "found",
  "station_id": 75001003, "adresse": "8 Rue Bailleul", "ville": "Paris",
  "gazole": 2.59, "sp95": 2.39, "sp98": 2.46,
  "latitude": 48.861, "longitude": 2.341, "distance_m": 420
}
````

A `null` price means that fuel is not sold / not reported. Every query yields an
item with `status`: `found`, `not_found`, `error`.

### Use cases

- "Cheapest gazole within 5 km" tools and dashboards.
- Compare fuel prices across a city, department or region.
- Track diesel/petrol price trends by area over time.
- Feed logistics and fleet cost models.

### Limitations & fair use

- Prices are station-reported and refreshed frequently but may lag reality.
- Use `maxConcurrency` responsibly on this shared public API.

### More actors by this developer

See the full range of French open-data actors: https://apify.com/vigilant\_jasmine

# Actor input Schema

## `searchMode` (type: `string`):

How to select stations.

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

5-digit postal codes (postalCode mode).

## `cities` (type: `array`):

City names (city mode, full-text match).

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

Department names, e.g. Gironde (department mode).

## `regions` (type: `array`):

Region names, e.g. Nouvelle-Aquitaine (region mode).

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

Centre latitude.

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

Centre longitude.

## `radiusMeters` (type: `integer`):

Search radius in metres (100-100000).

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

Only stations selling this fuel (also drives price sort/threshold).

## `maxPrice` (type: `string`):

Only stations where the chosen fuel is <= this price (eur/L). Requires a fuel type.

## `requiredService` (type: `string`):

Only stations whose services contain this text, e.g. '24/24'.

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

Sort results (price options require a fuel type; distance requires nearPoint).

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

Max stations returned per query (1-300).

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

Hard cap on total dataset items across all queries. 0 = unlimited.

## `maxConcurrency` (type: `integer`):

How many queries to process in parallel (1-20).

## `proxyConfiguration` (type: `object`):

Optional Apify proxy for outbound requests. Off by default; these are public government APIs.

## `debug` (type: `boolean`):

Enable verbose debug logs (retries, URLs).

## Actor input object example

```json
{
  "searchMode": "postalCode",
  "postalCodes": [
    "75001",
    "33000",
    "69001"
  ],
  "cities": [
    "Bordeaux"
  ],
  "departments": [
    "Gironde"
  ],
  "regions": [
    "Nouvelle-Aquitaine"
  ],
  "latitude": "48.8534",
  "longitude": "2.3488",
  "radiusMeters": 5000,
  "fuelType": "any",
  "sortBy": "none",
  "maxStations": 50,
  "maxItems": 0,
  "maxConcurrency": 5,
  "proxyConfiguration": {
    "useApifyProxy": false
  },
  "debug": false
}
```

# 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 = {
    "postalCodes": [
        "75001",
        "33000",
        "69001"
    ],
    "cities": [
        "Bordeaux"
    ],
    "departments": [
        "Gironde"
    ],
    "regions": [
        "Nouvelle-Aquitaine"
    ],
    "latitude": "48.8534",
    "longitude": "2.3488"
};

// Run the Actor and wait for it to finish
const run = await client.actor("vigilant_jasmine/french-fuel-prices-finder").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 = {
    "postalCodes": [
        "75001",
        "33000",
        "69001",
    ],
    "cities": ["Bordeaux"],
    "departments": ["Gironde"],
    "regions": ["Nouvelle-Aquitaine"],
    "latitude": "48.8534",
    "longitude": "2.3488",
}

# Run the Actor and wait for it to finish
run = client.actor("vigilant_jasmine/french-fuel-prices-finder").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "postalCodes": [
    "75001",
    "33000",
    "69001"
  ],
  "cities": [
    "Bordeaux"
  ],
  "departments": [
    "Gironde"
  ],
  "regions": [
    "Nouvelle-Aquitaine"
  ],
  "latitude": "48.8534",
  "longitude": "2.3488"
}' |
apify call vigilant_jasmine/french-fuel-prices-finder --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=vigilant_jasmine/french-fuel-prices-finder",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "French Fuel Prices Finder",
        "description": "Live French fuel prices with 5 modes (postal/city/department/region/GPS radius), fuel-type + price + service filters, sorting and distance. Parallel, dedup, proxy. Free.",
        "version": "0.0",
        "x-build-id": "XE7mJx5GVjugisvy7"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/vigilant_jasmine~french-fuel-prices-finder/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-vigilant_jasmine-french-fuel-prices-finder",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/vigilant_jasmine~french-fuel-prices-finder/runs": {
            "post": {
                "operationId": "runs-sync-vigilant_jasmine-french-fuel-prices-finder",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/vigilant_jasmine~french-fuel-prices-finder/run-sync": {
            "post": {
                "operationId": "run-sync-vigilant_jasmine-french-fuel-prices-finder",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "searchMode": {
                        "title": "Search mode",
                        "enum": [
                            "postalCode",
                            "city",
                            "department",
                            "region",
                            "nearPoint"
                        ],
                        "type": "string",
                        "description": "How to select stations.",
                        "default": "postalCode"
                    },
                    "postalCodes": {
                        "title": "Postal codes",
                        "type": "array",
                        "description": "5-digit postal codes (postalCode mode).",
                        "items": {
                            "type": "string"
                        }
                    },
                    "cities": {
                        "title": "Cities",
                        "type": "array",
                        "description": "City names (city mode, full-text match).",
                        "items": {
                            "type": "string"
                        }
                    },
                    "departments": {
                        "title": "Departments",
                        "type": "array",
                        "description": "Department names, e.g. Gironde (department mode).",
                        "items": {
                            "type": "string"
                        }
                    },
                    "regions": {
                        "title": "Regions",
                        "type": "array",
                        "description": "Region names, e.g. Nouvelle-Aquitaine (region mode).",
                        "items": {
                            "type": "string"
                        }
                    },
                    "latitude": {
                        "title": "Latitude (nearPoint)",
                        "type": "string",
                        "description": "Centre latitude."
                    },
                    "longitude": {
                        "title": "Longitude (nearPoint)",
                        "type": "string",
                        "description": "Centre longitude."
                    },
                    "radiusMeters": {
                        "title": "Radius in metres (nearPoint)",
                        "minimum": 100,
                        "maximum": 100000,
                        "type": "integer",
                        "description": "Search radius in metres (100-100000).",
                        "default": 5000
                    },
                    "fuelType": {
                        "title": "Fuel type filter",
                        "enum": [
                            "any",
                            "gazole",
                            "sp95",
                            "sp98",
                            "e10",
                            "e85",
                            "gplc"
                        ],
                        "type": "string",
                        "description": "Only stations selling this fuel (also drives price sort/threshold).",
                        "default": "any"
                    },
                    "maxPrice": {
                        "title": "Max price for chosen fuel",
                        "type": "string",
                        "description": "Only stations where the chosen fuel is <= this price (eur/L). Requires a fuel type."
                    },
                    "requiredService": {
                        "title": "Required service (substring)",
                        "type": "string",
                        "description": "Only stations whose services contain this text, e.g. '24/24'."
                    },
                    "sortBy": {
                        "title": "Sort by",
                        "enum": [
                            "none",
                            "price_asc",
                            "price_desc",
                            "distance"
                        ],
                        "type": "string",
                        "description": "Sort results (price options require a fuel type; distance requires nearPoint).",
                        "default": "none"
                    },
                    "maxStations": {
                        "title": "Max stations per query",
                        "minimum": 1,
                        "maximum": 300,
                        "type": "integer",
                        "description": "Max stations returned per query (1-300).",
                        "default": 50
                    },
                    "maxItems": {
                        "title": "Max items (global cap)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Hard cap on total dataset items across all queries. 0 = unlimited.",
                        "default": 0
                    },
                    "maxConcurrency": {
                        "title": "Max concurrency",
                        "minimum": 1,
                        "maximum": 20,
                        "type": "integer",
                        "description": "How many queries to process in parallel (1-20).",
                        "default": 5
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Optional Apify proxy for outbound requests. Off by default; these are public government APIs.",
                        "default": {
                            "useApifyProxy": false
                        }
                    },
                    "debug": {
                        "title": "Debug logging",
                        "type": "boolean",
                        "description": "Enable verbose debug logs (retries, URLs).",
                        "default": false
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
