Dërgimi i lajmeve dhe flota NakBus tani janë në panelin e partnerit
Përdorni të njëjtat të dhëna hyrjeje (email-in dhe fjalëkalimin) si për llogarinë tuaj të zhvilluesit për t'u identifikuar në panelin Nakordoni Partners dhe për të menaxhuar aty lajmet dhe flotën tuaj të autobusëve (NakDriver / NakManager), me role ekipi. Çelësat tuaj API, pikat fundore dhe aplikacionet mbeten të pandryshuara, dhe faqet këtu vazhdojnë të funksionojnë. Hap Nakordoni Partners

← Të gjithë endpoint-et

API i stacioneve të karburantit në afërsi Online

Stacionet e karburantit më të afërta me një pikë ose qytet, me çmimet aktuale për çdo lloj karburanti, të renditura sipas distancës. Mbulimi në nivel stacioni përfshin 39 vende evropiane dhe ËSHTË I MATUR, jo fiks: çdo përgjigje bosh kthen listën aktuale të vendeve me numrin e stacioneve për çdo vend në objektin e tij coverage, i kufizuar te cilësia që keni kërkuar — prandaj lexojeni atë, jo një listë në këtë përshkrim — të njëjtat të dhëna si faqet e karburantit të nakordoni.eu; përdorni mënyrën country të fuel API për mesataret kombëtare diku tjetër. Çmimet kthehen në monedhën e vet secilit stacion (PLN për stacionet polake, EUR diku tjetër) — lexoni fushën currency për çdo stacion, mos i krahasoni kurrë numrat e papërpunuar. Kur asnjë stacion nuk përputhet, përgjigja përfshin një objekt coverage në vend të një liste boshe të heshtur: station_countries dhe station_counts, të matura nga indeksi live (të kufizuara te `grade` kur keni emërtuar një fuel_type), sparse_coverage për vendet me 25 ose më pak stacione me çmim, measured_at, dhe një fuel_type_note që ndan dy arsyet pse një përgjigje mund të jetë bosh — një emër cilësie që nuk kemi mundur ta identifikojmë, kundrejt një cilësie që e njohim por nuk e çmojmë në atë vend.

GET https://nakordoni.eu/api/v2/data/fuel-stations — klasa e kuotës: fuel

ParametriPërshkrimi
latGjerësia gjeografike
lonGjatësia gjeografike
cityEmri i qytetit — alternativë ndaj lat/lon, kthehet në koordinata
countryKodi ISO-2 i shtetit, saktëson qytetin
radius_kmRrezja e kërkimit në km (parazgjedhje 25, maks. 25; alias: radius)
fuel_typeFiltër opsional: diesel | e5 | e10 | superplus | super100 | premdiesel | truckdiesel | hvo | lpg | cng | adblue | e85 | lng (disponueshmëria ndryshon sipas stacionit/rajonit; stacionet polake raportojnë Pb95 si e5, Pb98 si superplus dhe ON si diesel). Pranohen edhe emërtimet vendore te pompa — ON, Olej napędowy, Pb95, Nafta, Dizel, Gázolaj, Motorină, Benzină 95, ДП, А-95, Motorin, Gasóleo, Sans plomb 95, Bleifrei … — ato zgjidhen në raport me `country` (ose, për produktet me koordinata, me vendin ku bie pika), sepse i njëjti emërtim nuk do të thotë kudo i njëjti lloj: „95“ është E10 te një pompë daneze, finlandeze, franceze, britanike, belge ose holandeze dhe E5 te një pompë polake ose gjermane. Përgjigja kthen `fuel_type` (kanonik), `fuel_type_requested` (siç e shkruat) dhe `fuel_type_local`. Një emërtim që nuk mund ta identifikojmë nuk zëvendësohet kurrë me një lloj të parazgjedhur — përgjigja kthehet bosh dhe e thotë këtë. Tabela e plotë e emërtimeve sipas vendeve: /api/v2/data/fuel-grades.
limitMaksimumi i pikave të karburantit (parazgjedhje 5, maks. 20)
truck_friendlyOptional filter: 1 = only stations flagged as usable by trucks (truck_friendly true). Any other value is ignored.
langGjuha e etiketave (parazgjedhje en)

Fushat e përgjigjes — brenda objektit data të zarfit të përgjigjes. [] shënon një listë, pra data.items[].name është fusha name e çdo elementi. Një fushë është null, mungon ose është listë bosh kur nuk kemi vlerë — kurrë një vendmbajtëse.

FushaPërshkrimi
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).

Mosha e çmimit

Çmimet e stacioneve kanë dy kufij moshe, të dy të llogaritur nga momenti kur e konfirmuam çmimin për herë të fundit (age_hours). Pas 7 ditësh një çmim kthehet ende, me stale = true. Pas 90 ditësh nuk kthehet fare (që nga 2026-10-24). Një lloj karburanti që ka vetëm një çmim të tillë mungon atëherë në prices, një stacion pa asnjë çmim të mbetur nuk listohet (ose ka një objekt prices bosh aty ku shfaqen stacione pa çmim) dhe përgjigjja mund të jetë bosh — atëherë empty_reason tregon arsyen. fuel-local mund të përgjigjet atëherë nga niveli i rajonit ose i vendit. Historiku i çmimeve ruhet; mesataret kombëtare dhe të qyteteve nuk preken.

Përgjigje bosh

Kur asnjë stacion nuk përputhet, përgjigja prapë është HTTP 200 me listë stations bosh — dhe tregon arsyen. Në data shtohen katër fusha, vetëm në përgjigje bosh: empty_reason (shkaku i lexueshëm nga makina), nearest_station_km (distanca deri te stacioni më i afërt që ka llojin tuaj të karburantit, kërkuar deri në nearest_search_km = 50 km; null nëse nuk ka), country (ISO-2 i pikës) dhe suggestion (një fjali e shkurtër në lang tuaj). Nuk e zgjerojmë kurrë rrezen në vendin tuaj.

empty_reasonPërshkrimi
no_station_in_radiusAsnjë stacion me çmim aktual brenda radius_km. nearest_station_km tregon sa larg është stacioni më i afërt (null kur nuk ka asnjë brenda 50 km).
no_price_for_fuel_typeKa stacione brenda rrezes, por asnjë nuk jep çmim për fuel_type që kërkuat. nearest_station_km është stacioni më i afërt që e ka.
fuel_type_not_priced_in_countryKarburantin e njohim, por asnjë burim stacionesh nuk e çmon në këtë vend (për shembull HVO në Gjermani). Një rreze më e madhe nuk ndihmon — kërkoni një lloj tjetër karburanti.
unknown_fuel_typefuel_type nuk u përputhit me asnjë lloj karburanti që njohim. suggestion liston vlerat e vlefshme; emrat vendorë të pompave sipas vendit ndodhen te /api/v2/data/fuel-grades.
no_fresh_price_in_radiusStacionet brenda rrezes kanë vetëm çmime shumë të vjetra për t'u shërbyer. Provoni një rreze pak më të madhe ose thirrni përsëri më vonë.

suggestion është këshillë për njerëzit, jo kontratë: formulimi i saj mund të ndryshojë. Degëzoni kodin tuaj sipas empty_reason dhe nearest_station_km; shfaqni suggestion te përdoruesit tuaj ose regjistrojeni në log. Një rreze e këshilluar rrumbullakohet lart në hapa 5 km dhe nuk e kalon kurrë maksimumin prej 25 km.

Skanime në rrjetë: Nëse mostroni një zonë ose një itinerar në rrjetë, përdorni radius_km 10–15. Me 5 km shumica e pikave rurale të rrjetës bien mes stacioneve dhe kthehen bosh (no_station_in_radius), edhe kur një stacion është vetëm disa kilometra më larg.

Shembull: përgjigje bosh ?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"
🔑 Hyni si zhvillues për ta provuar këtë endpoint drejtpërdrejt në sandbox — 10 thirrje testimi falas për produkt në ditë. Hyni

Përditësuar