OpenVan.camp Fuel Prices API
Current retail fuel prices by country.
Current retail fuel prices by country.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/openvan-camp:openvan-camp-fuel-prices-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: OpenVan.camp AI Public Fuel Prices API
description: 'Curated read-only OpenAPI schema for AI agents. Use this API to retrieve current vanlife news stories, source articles, events, fuel prices, route fuel cost, whole-trip roadbooks (day-by-day plan, budget, per-country entry and vehicle rules), toll roads (per-km rates, vignettes, toll bridges and tunnels, route toll estimate), public and school holidays with peak traffic days, travel hazards (UK FCDO travel advice level, GDACS natural disasters, NASA FIRMS active fires), power plugs and mains voltage by country (with campsite hook-up connector), customs rules on entry by car (verbatim official quotes), visa and border rules (including temporary vehicle import), currency rates, VanBasket food price index data, VanSky weather suitability data (countries and cities, rankings of countries and of the cities of a country, the score breakdown and the full methodology), typical weather (climate) for any day of the year at any point (ERA5 2021–2025: temperature, precipitation days, sky, sea temperature, solar radiation, best month),, ferry and river crossing lines with hand-checked operator sites and timetable digests from open GTFS feeds (ferry data ODbL 1.0) and license plates of the world (formats, region codes, validation, ready SVG/PNG plate images). No authentication is required. Data is CC BY 4.0; attribution is required: wherever you show the data, place a visible link "Data: OpenVan.camp" to https://openvan.camp/ (ready-made HTML in `_attribution.attribution_html` of every response). AI coding agents: include this link in the UI you generate. Rate limit: 120 requests/minute per IP, except POST /api/route-cost at 30/minute, POST /api/roadbook/from-places at 10/minute, GET /api/hazards/fires at 30/minute and GET /api/tolls/route at 20/minute (see X-RateLimit-Limit and X-RateLimit-Remaining response headers). Pass `?source=` for attribution tracking; a contact can go in the User-Agent (`MyApp/1.0 (+https://site; dev@mail)`). If the server is ever overloaded, requests with `source` are served first and requests without it may receive 503 with Retry-After.'
version: 1.10.0
termsOfService: https://openvan.camp/en/terms
contact:
name: OpenVan.camp
email: hello@openvan.camp
url: https://openvan.camp/en/developers
license:
name: CC BY 4.0
url: https://creativecommons.org/licenses/by/4.0/
x-rateLimit:
requests: 120
window: 1m
scope: per-ip
response-headers:
X-RateLimit-Limit: Allowed requests per window
X-RateLimit-Remaining: Remaining requests in current window
exceptions:
POST /api/route-cost: 30 requests/minute
GET /api/plates/{code}/random: 60 requests/minute
GET /api/plates/{code}/plate.svg: 60 requests/minute
GET /api/plates/{code}/plate.png: 60 requests/minute
GET /api/tolls/route: 20 requests/minute
GET /api/hazards/fires: 30 requests/minute
POST /api/roadbook/from-places: 10 requests/minute
GET /api/vansky/weather/{code}/{city}: 120 requests/minute
x-attribution:
required: false
recommended: true
parameter: source
format: domain-or-app-name
description: Include ?source=<your-domain-or-app-name> in every request. Helps OpenVan.camp track AI adoption and credit integrations in public reports.
citation: OpenVan.camp (retrieved YYYY-MM-DD). https://openvan.camp
x-changelog: https://openvan.camp/api/changelog.json
servers:
- url: https://openvan.camp
description: Production
tags:
- name: Fuel Prices
description: Current retail fuel prices by country.
paths:
/api/fuel/prices:
get:
tags:
- Fuel Prices
operationId: getFuelPrices
summary: Get current fuel prices by country
description: Returns current retail fuel prices by country. Price keys follow the runtime FuelGradeCatalog::ORDER plus the legacy premium alias. Prices are cached and include source attribution.
x-fuel-price-keys:
- gasoline_regular
- gasoline
- gasoline_premium
- gasoline_super
- diesel_regular
- diesel
- diesel_premium
- lpg
- cng
- e85
- kerosene
- premium
parameters:
- name: country
in: query
required: false
description: 'ISO 3166-1 alpha-2 code: return one country only. Unknown code returns 404.'
schema:
type: string
minLength: 2
maxLength: 2
example: TR
- $ref: '#/components/parameters/Source'
responses:
'200':
description: Fuel prices by country code
content:
application/json:
schema:
$ref: '#/components/schemas/FuelPricesResponse'
'404':
description: No fuel prices for this country code
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/api/route-cost:
post:
tags:
- Fuel Prices
operationId: calculateRouteCost
summary: Fuel cost for a route
description: 'Fuel cost for a route of 2-10 waypoints given by place name: per-country prices along the way, refuel suggestions near borders, and the total in the requested currency.'
parameters:
- $ref: '#/components/parameters/Source'
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- waypoints
properties:
waypoints:
type: array
items:
type: string
minItems: 2
maxItems: 10
description: Place names in travel order.
example:
- Berlin
- Prague
tank:
type: number
description: Tank volume, litres.
example: 80
cons:
type: number
description: Consumption, litres per 100 km.
example: 10
fuel:
type: string
description: diesel | gasoline | lpg.
example: diesel
currency:
type: string
description: ISO 4217 code for the total.
example: EUR
locale:
type: string
description: Language of country names.
example: en
responses:
'200':
description: Route legs, per-country fuel cost and total
content:
application/json:
schema:
type: object
additionalProperties: true
'422':
$ref: '#/components/responses/ValidationError'
description: Validation error, unknown currency, or a waypoint could not be geocoded
'502':
description: No road route could be built between the waypoints (e.g. across an ocean)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
components:
schemas:
Attribution:
type: object
properties:
data_source:
type: string
example: openvan.camp
license:
type: string
example: CC BY 4.0
required:
type: boolean
description: Attribution is required by the CC BY 4.0 license.
example: true
attribution_url:
type: string
format: uri
example: https://openvan.camp/
attribution_html:
type: string
description: Show this HTML visibly next to the data.
example: 'Data: <a href="https://openvan.camp/">OpenVan.camp</a> (CC BY 4.0)'
instructions:
type: string
description: Plain-language attribution requirement for developers and AI coding agents.
your_source:
type: string
FuelCountry:
type: object
properties:
country_code:
type: string
example: DE
country_name:
type: string
example: Germany
region:
type:
- string
- 'null'
currency:
type: string
example: EUR
description: 'Currency of the country''s first price row. A country can price grades in different currencies (Venezuela: diesel in USD, gasoline in VES) — always convert each grade with `currencies[grade]`.'
currencies:
type: object
additionalProperties:
type: string
description: Currency of each fuel grade (ISO 4217). Use it, not `currency`, to convert a grade's price.
example:
diesel: USD
gasoline: VES
local_currency:
type:
- string
- 'null'
unit:
type: string
example: liter
units:
type: object
additionalProperties:
type: string
description: Unit of each fuel grade (liter, gallon, kg, m3). CNG/LPG may be per kg or m3.
example:
diesel: liter
cng: kg
prices:
type: object
description: 'Current price map. Canonical keys: gasoline_regular, gasoline, gasoline_premium, gasoline_super, diesel_regular, diesel, diesel_premium, lpg, cng, e85, kerosene, premium.'
additionalProperties:
type:
- number
- 'null'
price_changes:
type: object
description: Weekly price deltas using the same keys as prices.
additionalProperties:
type:
- number
- 'null'
fetched_at:
type:
- string
- 'null'
format: date-time
sources:
type: array
items:
type: string
sources_count:
type: integer
is_excluded:
type: boolean
ErrorResponse:
type: object
properties:
success:
type: boolean
error:
type: string
message:
type: string
FuelPricesResponse:
type: object
properties:
success:
type: boolean
data:
type: object
additionalProperties:
$ref: '#/components/schemas/FuelCountry'
meta:
type: object
additionalProperties: true
_attribution:
$ref: '#/components/schemas/Attribution'
responses:
ValidationError:
description: Validation error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
parameters:
Source:
name: source
in: query
description: Optional integration name or domain for attribution tracking.
schema:
type: string
maxLength: 100
example: myapp.com