Fuel Report API (send prices) Online
Send the fuel prices you or your users see at a station, so the next driver gets a fresher price. POST a JSON body with the station id from fuel-stations, the prices per grade and when they were seen. Every price is checked: the grade name is matched like the fuel_type parameter (Diesel, ON, Nafta, 95 ...), the currency must be the currency of the station's country or EUR, the price must be plausible for that grade and country, and the observation may be at most 6 hours old. A price that differs by more than 15 % from the price we hold waits (pending) until a second, independent account reports the same price within 6 hours. A checked price joins our station data; it never replaces a newer price we already hold. Limits per API key: 30 reports per hour, 200 per 24 hours, and one report per station and grade per 30 minutes. Use dry=true while you build your integration: the same checks run and you get the same answer, but the price is not used.
POST https://nakordoni.eu/api/v2/data/fuel-report
— Kontingentklasse: report
| Parameter | Beschreibung |
|---|---|
station_id | (JSON body, required) Our station id: data.stations[].id from fuel-stations (or fuel-cheapest). |
prices | (JSON body, required) List of {grade, price, currency}, at most 17. grade: a canonical grade (diesel, e5, e10, lpg, biocng ...) or a local pump name (see fuel-grades). price: price per litre (per kg for CNG, LNG, Bio-CNG and Bio-LNG). currency: ISO code (PLN, EUR, CZK ...), the station's local currency or EUR. |
observed_at | (JSON body, optional) When the price was seen, ISO 8601 with offset, at most 6 hours ago, not in the future. Default: now. |
dry | (JSON body or query, optional) true / 1 = test call: all checks run and the answer is the same, but the price is not used. Counts against the limits. |
Antwortfelder — innerhalb des data-Objekts im Antwortumschlag. [] steht für eine Liste, data.items[].name ist also das Feld name jedes Elements. Ein Feld ist null, fehlt oder ist eine leere Liste, wenn wir keinen Wert dafür haben — nie ein Platzhalter.
| Feld | Beschreibung |
|---|---|
data.accepted[] | Grades whose price was accepted. |
data.pending[] | Grades whose price differs by more than 15 % from ours: kept until a second account confirms it within 6 hours. |
data.rejected[] | {grade, reason}. reason: unknown_grade, duplicate_grade, bad_price, currency_mismatch, implausible_price, price_too_high, price_too_low, rate_limited (this key sent this grade for this station less than 30 minutes ago). |
data.station_id | The station the report was stored for (a merged duplicate answers with the station it was merged into). |
data.observed_at | The observation time used, UTC. |
data.dry | true for a test call (nothing used). |
errors | 400 bad_json, bad_station_id, bad_prices, too_many_prices, bad_observed_at, observed_at_too_old; 404 station_not_found; 429 rate_limited (hourly or daily cap, or every grade of the report within 30 minutes) with retry_after seconds and a Retry-After header. |
curl -X POST "https://nakordoni.eu/api/v2/data/fuel-report" \
-H "Authorization: Bearer NKD-DEV-XXXX-XXXX-XXXX" \
-H "Content-Type: application/json" \
-d '{
"station_id": 72571,
"observed_at": "2026-10-31T14:05:00+01:00",
"dry": true,
"prices": [
{
"grade": "diesel",
"price": 7.99,
"currency": "PLN"
},
{
"grade": "95",
"price": 6.49,
"currency": "PLN"
}
]
}'
Aktualisiert