# greeneris-data French Fuel Prices

> greeneris-data French Fuel Prices is a paid API for AI agents from data.greeneris.io, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Returns real-time French fuel station prices sorted cheapest-first by fuel type, optionally filtered by city or département

## Facts

- Endpoint: GET https://data.greeneris.io/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/greeneris-data-french-fuel-prices-b030d877
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uVFUGjaUysB8hyqeFKrFU

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 greeneris-data-french-fuel-prices-b030d877
```

Example prompt: Find me the 5 cheapest gazole stations in département 75, and show me their addresses and current prices per litre.

## When to prefer this

Use this endpoint when you need real-time, official French government fuel prices sorted by cost for a specific city or département. Ideal for travel cost planning, fleet management, or any use case requiring current per-litre pump prices at French service stations. Prefer over generic web search when you need structured, up-to-date price data from the official French government open-data feed.

## Known failure modes

- HTTP 402 returned if payment not yet made — response includes machine-readable quote for x402 protocol payment
- Invalid fuel enum value (not one of: gazole, sp95, sp98, e10, e85, gplc) results in validation error
- Unknown city or département code returns empty station list or error
- limit out of range (not 1-40) may be rejected or clamped
- No stations in stock for requested fuel type in area returns empty results array

## 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 JSON object containing the queried city or département, station count, data source attribution, and an array of matching stations. Each station includes its numeric ID, latitude/longitude, city, département, address, postal code, 24h automat flag, and a prices object keyed by fuel type (e.g. gazole, sp98) with price in EUR/L and last-updated timestamp. Results are sorted cheapest-first by the requested fuel type.

## 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"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "city": null,
  "dept": "75",
  "count": 1,
  "source": "Prix des carburants, flux instantane (data.economie.gouv.fr / roulez-eco, Licence Ouverte 2.0)",
  "stations": [
   {
    "id": 92300004,
    "lat": 48.893,
    "lon": 2.302,
    "city": "Paris",
    "dept": "75",
    "prices": {
     "sp98": {
      "updated_at": "2026-07-13T09:49:54+00:00",
      "price_eur_l": 1.989
     },
     "gazole": {
      "updated_at": "2026-07-13T09:49:54+00:00",
      "price_eur_l": 1.94
     }
    },
    "address": "2/10 BLD FORT DE VAUX",
    "postal_code": "75017",
    "open_24h_automat": true
   }
  ],
  "sorted_by": "gazole_prix asc",
  "total_count": 45
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/greeneris-data-french-fuel-prices-b030d877/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from data.greeneris.io](https://www.zero.xyz/host/data.greeneris.io/llms.txt)
