search
GET /stations/ids
Aktuelle Kraftstoffpreise an Tankstellen nach IDs
Request
- Base URLhttps://creativecommons.tankerkoenig.de/api/v4
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
apikeystring required
Gültiger API-key / Valid API key.
idsstring required
Liste von Land, Tankstellen-IDs (komma-separiert) / List of country / station ids (comma separated).
latnumber
Latitude. If latitude and longitude are given, dist to this coordinates is shown in the output
lngnumber
Longitude. If latitude and longitude are given, dist to this coordinates is shown in the output
Response
Liste von Tankstellen.
Example response
{
"apiVersion": "4.0.6",
"timestamp": "2020-01-04T22:14:06+01:00",
"stations": [
{
"country": "de",
"id": "83d5ac80-4f23-4106-b054-7c7704bfcb95",
"name": "Aral Tankstelle",
"brand": "ARAL",
"street": "Cannstatter Straße 3",
"postalCode": "70190",
"place": "Stuttgart",
"coords": {
"lat": 48.78922,
"lng": 9.192324
},
"isOpen": true,
"closesAt": "2020-01-05T06:00:00+01:00",
"opensAt": "2020-01-05T06:00:00+01:00",
"openingTimes": [
{
"times": [
{
"open": "06:00",
"close": "20:00"
}
]
}
],
"dist": 2.5,
"fuels": [
{
"category": "gasoline",
"name": "Super E5",
"price": 1.399,
"lastChange": {
"timestamp": "2020-01-04T22:05:06+01",
"amount": -0.07
}
}
]
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.