Η υποβολή ειδήσεων και ο στόλος NakBus βρίσκονται πλέον στον πίνακα συνεργατών
Χρησιμοποιήστε τα ίδια στοιχεία σύνδεσης (email και κωδικό πρόσβασης) με τον λογαριασμό προγραμματιστή σας για να συνδεθείτε στον πίνακα Nakordoni Partners και να διαχειρίζεστε εκεί ειδήσεις και τον στόλο λεωφορείων σας (NakDriver / NakManager) με ρόλους ομάδας. Τα κλειδιά API, τα endpoints και οι εφαρμογές σας παραμένουν αμετάβλητα και οι σελίδες εδώ συνεχίζουν να λειτουργούν. Άνοιγμα Nakordoni Partners

← Όλα τα endpoints

API κοντινών πρατηρίων καυσίμων Online

Τα πλησιέστερα πρατήρια καυσίμων σε ένα σημείο ή μια πόλη, με τρέχουσες τιμές ανά τύπο καυσίμου, ταξινομημένα κατά απόσταση. Η κάλυψη σε επίπεδο πρατηρίου εκτείνεται σε 39 ευρωπαϊκές χώρες και ΜΕΤΡΑΤΑΙ, δεν είναι σταθερή: κάθε κενή απάντηση επιστρέφει την τρέχουσα λίστα χωρών με τον αριθμό πρατηρίων ανά χώρα στο αντικείμενο coverage, περιορισμένη στην ποιότητα που ζητήσατε — γι' αυτό διαβάστε εκείνο, όχι μια λίστα σε αυτήν την περιγραφή — τα ίδια δεδομένα με τις σελίδες καυσίμων του nakordoni.eu· χρησιμοποιήστε τη λειτουργία country του fuel API για εθνικούς μέσους όρους αλλού. Οι τιμές επιστρέφονται στο δικό της νόμισμα κάθε πρατηρίου (PLN για πολωνικά πρατήρια, EUR αλλού) — διαβάστε το πεδίο currency κάθε πρατηρίου, μη συγκρίνετε ποτέ τους ακατέργαστους αριθμούς. Όταν κανένα πρατήριο δεν ταιριάζει, η απάντηση περιλαμβάνει ένα αντικείμενο coverage αντί για μια σιωπηλή κενή λίστα: station_countries και station_counts, μετρημένα από τον ζωντανό δείκτη (περιορισμένα στο `grade` όταν έχετε ονομάσει ένα fuel_type), sparse_coverage για τις χώρες με 25 ή λιγότερα τιμολογημένα πρατήρια, measured_at, και ένα fuel_type_note που διαχωρίζει τους δύο λόγους για τους οποίους μια απάντηση μπορεί να είναι κενή — ένα όνομα ποιότητας που δεν μπορέσαμε να εντοπίσουμε, έναντι μιας ποιότητας που αναγνωρίζουμε αλλά δεν τιμολογούμε σε εκείνη τη χώρα.

GET https://nakordoni.eu/api/v2/data/fuel-stations — κλάση ποσόστωσης: fuel

ΠαράμετροςΠεριγραφή
latΓεωγραφικό πλάτος
lonΓεωγραφικό μήκος
cityΌνομα πόλης — εναλλακτική του lat/lon, μετατρέπεται σε συντεταγμένες
countryΚωδικός χώρας ISO-2, αποσαφηνίζει την πόλη
radius_kmΑκτίνα αναζήτησης σε χλμ (προεπιλογή 25, μέγιστο 25· alias: radius)
fuel_typeΠροαιρετικό φίλτρο: diesel | e5 | e10 | superplus | super100 | premdiesel | truckdiesel | hvo | lpg | cng | adblue | e85 | lng (η διαθεσιμότητα διαφέρει ανά πρατήριο/περιοχή· τα πολωνικά πρατήρια αναφέρουν το Pb95 ως e5, το Pb98 ως superplus και το ON ως diesel). Γίνονται δεκτές και οι τοπικές ονομασίες αντλίας — ON, Olej napędowy, Pb95, Nafta, Dizel, Gázolaj, Motorină, Benzină 95, ДП, А-95, Motorin, Gasóleo, Sans plomb 95, Bleifrei … — και αντιστοιχίζονται με βάση το `country` (ή, για τα προϊόντα συντεταγμένων, τη χώρα στην οποία εμπίπτει το σημείο), επειδή η ίδια διατύπωση δεν σημαίνει παντού τον ίδιο τύπο: το «95» είναι E10 σε δανική, φινλανδική, γαλλική, βρετανική, βελγική ή ολλανδική αντλία και E5 σε πολωνική ή γερμανική. Η απόκριση επιστρέφει τα `fuel_type` (κανονικό), `fuel_type_requested` (όπως το πληκτρολογήσατε) και `fuel_type_local`. Μια ονομασία που δεν μπορούμε να εντοπίσουμε δεν αντικαθίσταται ποτέ από προεπιλεγμένο τύπο· η απόκριση επιστρέφει κενή και το δηλώνει. Πλήρης πίνακας ονομασιών ανά χώρα: /api/v2/data/fuel-grades.
limitΜέγιστος αριθμός πρατηρίων (προεπιλογή 5, μέγιστο 20)
truck_friendlyOptional filter: 1 = only stations flagged as usable by trucks (truck_friendly true). Any other value is ignored.
langΓλώσσα των ετικετών (προεπιλογή en)

Πεδία της απάντησης — μέσα στο αντικείμενο data του φακέλου απάντησης. Το [] δηλώνει λίστα, άρα το data.items[].name είναι το πεδίο name κάθε στοιχείου. Ένα πεδίο είναι null, απουσιάζει ή είναι κενή λίστα όταν δεν έχουμε τιμή — ποτέ κάτι εικονικό.

ΠεδίοΠεριγραφή
data.anchor.latThe point actually searched (after city geocoding), with lng, ppid and radius_km.
data.anchor.fuel_typeThe canonical grade the list was filtered to; fuel_type_requested is what you sent, fuel_type_local the local pump name and fuel_type_country the country the name was read in.
data.stations[].nameStation, with brand and address. Each physical station appears ONCE: its grades are nested under prices, not spread over repeated rows. `brand` is the chain when we know it and null when we do not — never a placeholder token, so treat null as "independent or unknown" and fall back to `name`. Address detail varies by national feed: some report a full street address, others only the town; where we hold only the town and a matched operator site record carries the street address, that street address is given.
data.stations[].station_refStable key for the station (name + position). Key your records on it whenever id is null — id is set only for rows that come from our station directory.
data.stations[].pricesObject keyed by grade (diesel, e5, e10, lpg …): price, currency and currency_symbol, local_name (the pump name used in that country), label, updated_at, confirmed_at, age_hours and stale. Each station carries its own currency, so never compare the raw numbers across countries. Prices are always given in the currency of the station's country (PLN in Poland, CZK in Czechia, NOK in Norway, EUR in euro countries) — a border station that posts its price in a neighbour's currency is converted with the daily ECB rate. A station with no quote at all carries an empty object here. TWO CLOCKS, and they answer different questions — do not derive one from the other: `updated_at` is when this price last MOVED, so a forecourt that has held the same price for ten days keeps a ten-day-old stamp and that is correct, not stale data; `confirmed_at` is when we last CONFIRMED the quote against its feed, and it is the clock `age_hours` and `stale` are measured on (age_hours = now − confirmed_at). Read `confirmed_at`/`stale` for freshness and `updated_at` for price history. Both are floored to the hour, so `now − confirmed_at` can sit up to an hour above `age_hours`, which is measured before the floor; `confirmed_at` is never earlier than `updated_at`, because a price change is itself a confirmation.
data.stations[].gradesThe grade keys present in prices, alongside freshest_age_hours and a station-level stale flag (true only when NO quote of that station is current).
data.stations[].truck_friendlytrue when the station is flagged as usable by trucks, false when it is flagged as not usable, null when we hold no truck information for it (a matched operator site record that marks the site as truck-suitable, with truck parking or truck diesel fills a null with true). Filter with truck_friendly=1; combine with fuel_type=lng for truck LNG stations.
data.stations[].detailsObject, only on stations we could match to an operator site record (omitted otherwise, never empty): amenities (array of tokens for facilities held as PRESENT, never one listed as absent; same vocabulary as truck-parkings, e.g. toilets, shower, shop, food, restaurant, wifi, car_wash, washing, parking, truck_access, adblue, lpg, ev_charging, atm, accessible, open_24h), opening_hours ("24/7" when the site is open round the clock; absent otherwise) and services (English labels, e.g. "Truck parking"). The station-level `amenities` object (is_24h, has_shop, has_car_wash ...) is unchanged and stays where it was.
data.stations[].distance_kmDistance from the anchor, with lat and lng of the station itself.
data.countStations returned; data.total_found is how many matched inside the radius before limit was applied.
data.noticesPresent whenever we adjusted a parameter you sent: each entry names the param, the requested and the applied value, and the reason.
data.coverageOnly when nothing matched. grade (the fuel_type your wording resolved to, or null), station_countries and station_counts measured from the live station index and scoped to that grade, sparse_coverage for countries with 25 priced stations or fewer, measured_at, a note explaining all of it, and fuel_type_note when the grade name could not be placed OR when we recognise the grade but price it nowhere in this country.
data.empty_reasonOnly when nothing matched — machine-readable why: no_station_in_radius (try a wider radius_km; see nearest_station_km) | no_price_for_fuel_type (stations in the radius, none quoting this grade) | fuel_type_not_priced_in_country (no feed prices this grade in `country`) | unknown_fuel_type | no_fresh_price_in_radius. The radius is never widened for you.
data.suggestionOnly when nothing matched — one short sentence in your `lang` that turns empty_reason into advice, e.g. "No station within 5 km — the nearest is 6.4 km away; try radius_km=10." (the advised radius is rounded up to a 5 km step and never above the 25 km maximum), "We have no hvo prices in DE; try diesel, truckdiesel.", or the list of valid fuel_type values. Advice for people, not a contract: branch on empty_reason / nearest_station_km, show suggestion to users.
data.nearest_station_kmOnly when nothing matched — distance to the nearest station quoting the requested grade (any grade when none was named), searched up to data.nearest_search_km (50); null = none that close.
data.countryOnly when nothing matched — ISO-2 country of the point (your ?country= wins).

Ηλικία τιμής

Οι τιμές πρατηρίων έχουν δύο όρια ηλικίας, και τα δύο μετρώνται από την τελευταία φορά που επιβεβαιώσαμε την τιμή (age_hours). Μετά από 7 ημέρες μια τιμή επιστρέφεται ακόμη, με stale = true. Μετά από 90 ημέρες δεν επιστρέφεται καθόλου (από 2026-10-24). Ένα καύσιμο που έχει μόνο τέτοια τιμή λείπει τότε από το prices, ένα πρατήριο χωρίς καμία τιμή δεν εμφανίζεται στη λίστα (ή έχει κενό αντικείμενο prices όπου εμφανίζονται πρατήρια χωρίς τιμή) και η απάντηση μπορεί να είναι κενή — τότε το empty_reason λέει τον λόγο. Το fuel-local μπορεί τότε να απαντήσει από το επίπεδο περιοχής ή χώρας. Το ιστορικό τιμών διατηρείται· οι εθνικοί μέσοι όροι και οι μέσοι όροι πόλεων δεν επηρεάζονται.

Κενές απαντήσεις

Όταν δεν ταιριάζει κανένα πρατήριο, η απάντηση παραμένει HTTP 200 με κενή λίστα stations — και εξηγεί τον λόγο. Στο data προστίθενται τέσσερα πεδία, μόνο σε κενή απάντηση: empty_reason (αιτία αναγνώσιμη από μηχανή), nearest_station_km (απόσταση από το κοντινότερο πρατήριο που τιμολογεί τον τύπο καυσίμου σας, με αναζήτηση έως nearest_search_km = 50 km· null αν δεν υπάρχει), country (ISO-2 του σημείου) και suggestion (μία σύντομη πρόταση στη γλώσσα lang σας). Δεν διευρύνουμε ποτέ την ακτίνα για λογαριασμό σας.

empty_reasonΠεριγραφή
no_station_in_radiusΔεν υπάρχει πρατήριο με τρέχουσα τιμή εντός του radius_km. Το nearest_station_km δείχνει πόσο μακριά είναι το κοντινότερο (null όταν δεν υπάρχει κανένα εντός 50 km).
no_price_for_fuel_typeΥπάρχουν πρατήρια εντός της ακτίνας, αλλά κανένα δεν δίνει τιμή για το fuel_type που ζητήσατε. Το nearest_station_km είναι το κοντινότερο πρατήριο που τη δίνει.
fuel_type_not_priced_in_countryΑναγνωρίζουμε τον τύπο καυσίμου, αλλά καμία τροφοδοσία πρατηρίων δεν τον τιμολογεί σε αυτή τη χώρα (για παράδειγμα HVO στη Γερμανία). Μεγαλύτερη ακτίνα δεν θα βοηθήσει — ζητήστε άλλο τύπο καυσίμου.
unknown_fuel_typeΤο fuel_type δεν αντιστοιχίστηκε σε κανέναν γνωστό τύπο καυσίμου. Το suggestion απαριθμεί τις έγκυρες τιμές· οι τοπικές ονομασίες αντλιών ανά χώρα βρίσκονται στο /api/v2/data/fuel-grades.
no_fresh_price_in_radiusΤα πρατήρια εντός της ακτίνας έχουν μόνο τιμές υπερβολικά παλιές για να επιστραφούν. Δοκιμάστε ελαφρώς μεγαλύτερη ακτίνα ή καλέστε ξανά αργότερα.

Το suggestion είναι συμβουλή για ανθρώπους, όχι συμβόλαιο: η διατύπωσή του μπορεί να αλλάξει. Διακλαδώστε τον κώδικά σας με βάση τα empty_reason και nearest_station_km· εμφανίστε το suggestion στους χρήστες σας ή καταγράψτε το. Η προτεινόμενη ακτίνα στρογγυλοποιείται προς τα πάνω σε βήμα 5 km και δεν ξεπερνά ποτέ το μέγιστο των 25 km.

Σαρώσεις πλέγματος: Αν δειγματοληπτείτε μια περιοχή ή μια διαδρομή σε πλέγμα, χρησιμοποιήστε radius_km 10–15. Στα 5 km τα περισσότερα αγροτικά σημεία του πλέγματος πέφτουν ανάμεσα σε πρατήρια και επιστρέφουν κενά (no_station_in_radius), ακόμη κι όταν υπάρχει πρατήριο λίγα χιλιόμετρα πιο πέρα.

Παράδειγμα: κενή απάντηση ?lat=47.73&lon=18.225&radius_km=5&fuel_type=diesel

{
  "ok": true,
  "data": {
    "count": 0,
    "stations": [],
    "empty_reason": "no_station_in_radius",
    "suggestion": "No station within 5 km — the nearest is 6.4 km away; try radius_km=10.",
    "nearest_station_km": 6.4,
    "nearest_search_km": 50,
    "country": "HU",
    "coverage": { "grade": "diesel", "station_countries": ["AT", "BE", "…"], "…": "…" }
  }
}
curl "https://nakordoni.eu/api/v2/data/fuel-stations?city=Munich&country=DE&radius_km=20&fuel_type=diesel" \
  -H "Authorization: Bearer NKD-DEV-XXXX-XXXX-XXXX"
🔑 Συνδεθείτε ως προγραμματιστής για να δοκιμάσετε αυτό το endpoint ζωντανά στο sandbox — 10 δωρεάν δοκιμαστικές κλήσεις ανά προϊόν την ημέρα. Σύνδεση

Ενημερώθηκε