Tankerkoenig API
Overview
Tankerkoenig provides real-time gas and diesel fuel prices from German petrol stations, updated every few minutes. An API key is required and can be obtained for free by registering with a German postal address. It is a great resource for building fuel price comparison tools or route cost calculators in Germany.
Beginner Tip
You must register with a German address to receive an API key. Once you have it, the /list.php endpoint lets you search stations by GPS coordinates and radius to get current prices.
Available Data
Example Response
{
"route": "Line 1",
"origin": "Station A",
"destination": "Station B",
"departure": "08:30",
"arrival": "09:15",
"status": "On Time",
"delays_min": 0
} Field Reference
stations List of petrol stations within the specified radius, sorted by the requested sort field id Unique identifier for the petrol station, used to query detailed or historical price data e5 Current price per liter for Super E5 petrol in euros (false if not available) e10 Current price per liter for Super E10 petrol in euros (false if not available) diesel Current price per liter for diesel in euros (false if not available) dist Distance in kilometers from the queried coordinates to this station Implementation Example
const url = "https://creativecommons.tankerkoenig.de/swagger/";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
headers: {
"X-API-Key": "YOUR_API_KEY"
}
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Matrix Score Breakdown
Partially tested on Apr 5, 2026
Technical Specifications
Related Tags
Similar APIs
View All →AIS Hub
AIS Hub aggregates real-time Automatic Identification System data from a global network of shore-based receivers to track marine vessels.
AZ511
AZ511 is the official Arizona Department of Transportation traffic data API providing real-time road conditions, incidents, and camera information for Arizona highways.
Bay Area Rapid Transit
⭐ Beginner's PickThe BART API provides real-time train arrival predictions, station information, and service advisories for the Bay Area Rapid Transit system in the San Francisco Bay Area.
BlaBlaCar
BlaBlaCar provides programmatic access to search car sharing trips via REST API.
Boston MBTA Transit
⭐ Beginner's PickThe Boston MBTA Transit API gives you real-time data for the Massachusetts Bay Transportation Authority, including train, bus, and ferry arrivals.