Tankerkoenig
APIFree Realtime API for German Gas & Diesel Prices
Overview
The Tankerkoenig API delivers realtime access to German gas (E5, E10) and diesel prices, plus station details (addresses, opening hours). Core endpoints include searching stations by geographic coordinates, fetching current prices for specific station IDs, and filtering by fuel type. Responses are JSON-formatted. Ideal for building fuel price comparison apps, integrating pricing into navigation tools, or logistics platforms optimizing refueling costs. Data is licensed under Creative Commons for transparent, legal use.
Example Integration (JavaScript)
fetch('https://creativecommons.tankerkoenig.de/swagger/')
.then(res => res.json())
.then(data => console.log(data))
.catch(err => console.error(err)); Key Features
- RESTful API
- JSON Responses
- Realtime Price Data
- Geographic Station Search
- Fuel Type Filtering
- Creative Commons Licensed
Frequently Asked Questions
? Is Tankerkoenig API free to use?
Yes, the API is free under Creative Commons licensing, though rate limits apply to prevent abuse.
? Does it require an API Key?
Yes, you need to register for a free API key from the Tankerkoenig website to access endpoints.
? What is the response format?
All responses are in JSON format, making it easy to parse for most applications.
Top Alternatives
People Also Ask about Tankerkoenig
Tool Info
Pros
- ⊕ Free Access with API Key
- ⊕ Accurate Realtime German Fuel Prices
- ⊕ Comprehensive Station Details
Cons
- ⊖ Rate Limited
- ⊖ Germany-Only Coverage
- ⊖ Requires API Key Registration