Жаңалық жіберу және NakBus паркі енді әріптес тақтасында
Nakordoni Partners панеліне кіру үшін әзірлеуші аккаунтыңыздағыдай логинді (электрондық пошта және құпиясөз) пайдаланыңыз, сонда жаңалықтар мен автобус автопаркін (NakDriver / NakManager) топтық рөлдермен басқарыңыз. API кілттеріңіз, эндпоинттеріңіз бен қолданбаларыңыз өзгеріссіз қалады, ал осындағы беттер жұмысын жалғастырады. Nakordoni Partners ашу

← Барлық соңғы нүктелер

Жақын жанармай құю станциялары API Online

Нүктеге немесе қалаға ең жақын жанармай құю станциялары, әр отын түрі бойынша ағымдағы бағаларымен, қашықтығына қарай сұрыпталған. Станция деңгейіндегі қамту Еуропаның 39 еліне таралады және ол ӨЛШЕНЕДІ, тіркелмеген: кез келген бос жауап coverage объектісінде елдердің ағымдағы тізімін, әр ел бойынша станциялар санымен қоса қайтарады, сұралған марка шеңберінде — сондықтан осы сипаттамада жазылған тізімнің орнына сол деректі оқыңыз — бұл nakordoni.eu отын беттеріндегі деректермен бірдей; басқа жерлерде ұлттық орташа мәндер үшін fuel API-дің country режимін пайдаланыңыз. Бағалар әр станцияның өз валютасында қайтарылады (Польша станциялары үшін PLN, қалғандары үшін EUR) — әр станцияның currency өрісін оқыңыз, шикі сандарды ешқашан салыстырмаңыз. Ешбір станция сәйкес келмесе, жауапта үнсіз бос тізімнің орнына coverage объектісі болады: тікелей индекстен өлшенген station_countries және station_counts (fuel_type көрсетілген болса, `grade` шеңберінде), бағаланған станциялар саны 25-тен аспайтын елдер үшін sparse_coverage, measured_at, және жауаптың бос болуының екі себебін ажырататын fuel_type_note — біз анықтай алмаған марка атауы мен біз танитын, бірақ сол елде бағасын хабарламайтын марка арасындағы айырмашылық.

GET https://nakordoni.eu/api/v2/data/fuel-stations — квота класы: fuel

ПараметрСипаттама
latЕндік
lonБойлық
cityҚала атауы — lat/lon баламасы, координаттарға түрлендіріледі
countryISO-2 ел коды, қаланы нақтылайды
radius_kmІздеу радиусы, км (әдепкі 25, ең көбі 25; баламасы: 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 аймақ немесе ел деңгейінен жауап бере алады. Баға тарихы сақталады; ұлттық және қалалық орташа бағаларға бұл әсер етпейді.

Бос жауаптар

Ешбір бекет сәйкес келмесе, жауап бәрібір бос stations тізімімен HTTP 200 болады және себебін көрсетеді. data ішіне төрт өріс қосылады, тек бос жауапта: empty_reason (машина оқи алатын себеп), nearest_station_km (сіздің жанармай түріңізді көрсететін ең жақын бекетке дейінгі қашықтық, nearest_search_km = 50 км-ге дейін ізделеді; болмаса null), country (нүктенің ISO-2 коды) және suggestion (lang тіліңіздегі бір қысқа сөйлем). Радиусты сіздің орныңызға ешқашан үлкейтпейміз.

empty_reasonСипаттама
no_station_in_radiusradius_km ішінде ағымдағы бағасы бар жанармай бекеті жоқ. nearest_station_km ең жақын бекеттің қаншалықты алыс екенін көрсетеді (50 км ішінде ешқайсысы болмаса null).
no_price_for_fuel_typeРадиус ішінде бекеттер бар, бірақ олардың ешқайсысы сіз сұраған fuel_type бағасын көрсетпейді. nearest_station_km — оны көрсететін ең жақын бекет.
fuel_type_not_priced_in_countryЖанармай түрін танимыз, бірақ бұл елде бірде-бір бекет арнасы оның бағасын бермейді (мысалы, Германиядағы HVO). Үлкенірек радиус көмектеспейді — басқа жанармай түрін сұраңыз.
unknown_fuel_typefuel_type біз білетін ешбір жанармай түріне сәйкес келмеді. suggestion дұрыс мәндерді тізімдейді; әр елдегі жергілікті колонка атаулары /api/v2/data/fuel-grades ішінде.
no_fresh_price_in_radiusРадиус ішіндегі бекеттерде тек беруге болмайтындай ескі бағалар бар. Радиусты сәл арттырып көріңіз немесе кейінірек қайта шақырыңыз.

suggestion — адамдарға арналған кеңес, келісімшарт емес: оның мәтіні өзгеруі мүмкін. Кодыңыздың тармақталуын empty_reason және nearest_station_km бойынша құрыңыз; suggestion мәнін пайдаланушыларыңызға көрсетіңіз немесе журналға жазыңыз. Ұсынылған радиус 5 км қадамына дейін жоғары қарай дөңгелектенеді және 25 км максимумнан ешқашан аспайды.

Тор бойынша сканерлеу: Аумақты немесе маршрутты тор бойынша іріктесеңіз, radius_km үшін 10–15 пайдаланыңыз. 5 км болғанда ауылдық тор нүктелерінің көбі бекеттердің арасына түседі және бекет бірнеше шақырым жерде болса да бос жауап қайтарады (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 тегін сынақ шақыру. Кіру

Жаңартылды