Слање вести и флота NakBus сада су на партнерској табли
Повежите свој developer налог са Nakordoni Partners налогом са истом имејл адресом и тамо управљајте вестима и својом флотом аутобуса (NakDriver / NakManager), са тимским улогама. Ваши API кључеви, endpoint-и и апликације остају непромењени, а странице овде и даље раде. Отвори Nakordoni Partners

← Све крајње тачке

API оближњих бензинских пумпи Online

Најближе бензинске станице до одређене тачке или града са тренутним ценама по врсти горива, сортиране по удаљености. Покривеност на нивоу станице обухвата 39 европских земаља и МЕРИ СЕ, а није фиксна: сваки празан одговор враћа тренутну листу земаља са бројем станица по земљи у свом coverage објекту, ограниченим на grade који сте тражили — зато читајте то, а не листу у овом опису — исти подаци као на страницама за гориво на 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 — класа квоте: cheap

ПараметарОпис
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)
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.
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. 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[].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.
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"
🔑 Пријавите се као програмер да бисте ову крајњу тачку испробали уживо у Sandbox-у — 50 бесплатних тест позива дневно. Пријава

Ažurirano