# French Gas Station Fuel Prices API

> French Gas Station Fuel Prices API is a paid API for AI agents from x402-datashop-production.up.railway.app, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Returns near-real-time pump prices (EUR/L) for French gas stations filtered by département, city, and/or fuel type, sorted cheapest-first

## Facts

- Endpoint: GET https://x402-datashop-production.up.railway.app/v1/fr/fuel
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/french-gas-station-fuel-prices-api-4ab8f887
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3BhYLbmmzW1XQOiyaJDY5

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability french-gas-station-fuel-prices-api-4ab8f887
```

Example prompt: What are the 10 cheapest gazole stations in Lyon right now? Show me the address, price per litre, and whether they're open 24/7.

## When to prefer this

Use this endpoint when you need current, official French pump prices by location — specifically when filtering by département or city and/or sorting by cheapest fuel type. Prefer over generic price-comparison sites when you need structured lat/lon data and per-fuel granularity sourced directly from the French government feed.

## Known failure modes

- Invalid département code returns empty results or 400 error
- Unknown city name returns no stations
- Fuel type not available in queried area returns empty list
- Limit out of range (outside 1-40) may return error
- Upstream roulez-eco feed outage causes stale or unavailable data (cached up to 10 min)

## How this service works

Near-real-time pump prices (EUR/L) for French gas stations from the official roulez-eco feed (data.economie.gouv.fr, updated continuously). Query: ?dept=75 (departement code) and/or ?city=Lyon, optional &fuel=gazole|sp95|sp98|e10|e85|gplc to sort cheapest-first and drop stations without that fuel, &limit=10 (1-40). Returns per station: address, lat/lon, per-fuel price with update timestamp, 24/7 automat flag. Cached 10 min.

## Output

A list of up to 40 French gas stations (default 10) with per-station data: street address, latitude/longitude, per-fuel prices in EUR/L with last-updated timestamp, and a flag indicating 24/7 automated availability. Results are sorted cheapest-first when a fuel type is specified.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "city": {
       "type": "string",
       "description": "City name, e.g. Lyon"
      },
      "dept": {
       "type": "string",
       "description": "French departement code, e.g. 75, 2A, 971"
      },
      "fuel": {
       "enum": [
        "gazole",
        "sp95",
        "sp98",
        "e10",
        "e85",
        "gplc"
       ],
       "type": "string",
       "description": "Sort cheapest-first by this fuel and require it in stock"
      },
      "limit": {
       "type": "integer",
       "description": "Max stations, 1-40 (default 10)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/french-gas-station-fuel-prices-api-4ab8f887/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-datashop-production.up.railway.app](https://www.zero.xyz/host/x402-datashop-production.up.railway.app/llms.txt)
