El envío de noticias y la flota NakBus ahora están en el panel de socio
Utilice el mismo inicio de sesión (correo electrónico y contraseña) que su cuenta de desarrollador para acceder al panel de Nakordoni Partners y gestionar allí las noticias y su flota de autobuses (NakDriver / NakManager) con roles de equipo. Sus claves de API, endpoints y aplicaciones no cambian, y las páginas de aquí siguen funcionando. Abrir Nakordoni Partners

← Todos los endpoints

API de gasolineras cercanas Online

Las gasolineras más cercanas a un punto o ciudad, con los precios actuales por tipo de combustible, ordenadas por distancia. La cobertura a nivel de estación abarca 39 países europeos y está MEDIDA, no fijada de antemano: cada respuesta vacía devuelve la lista actual de países con el número de estaciones por país en su objeto coverage, limitado al grado solicitado, así que consulte eso en lugar de una lista fija en esta descripción — los mismos datos que las páginas de combustible de nakordoni.eu; use el modo de país de la fuel API para promedios nacionales en otros casos. Los precios se devuelven en la moneda propia de cada estación (PLN para las estaciones polacas, EUR en el resto) — consulte el campo currency de cada estación, nunca compare los números en bruto. Cuando ninguna estación coincide, la respuesta incluye un objeto coverage en lugar de una lista vacía silenciosa: station_countries y station_counts medidos a partir del índice en vivo (limitados a `grade` cuando indicó un fuel_type), sparse_coverage para los países con 25 estaciones con precio o menos, measured_at, y un fuel_type_note que distingue los dos motivos por los que una respuesta puede quedar vacía: un nombre de grado que no pudimos identificar, frente a un grado que reconocemos pero no cotizamos en ese país.

GET https://nakordoni.eu/api/v2/data/fuel-stations — clase de cuota: fuel

ParámetroDescripción
latLatitud
lonLongitud
cityNombre de la ciudad — alternativa a lat/lon, se convierte en coordenadas
countryCódigo de país ISO-2, desambigua la ciudad
radius_kmRadio de búsqueda en km (por defecto 25, máximo 25; alias: radius)
fuel_typeFiltro opcional: diesel | e5 | e10 | superplus | super100 | premdiesel | truckdiesel | hvo | lpg | cng | adblue | e85 | lng (la disponibilidad varía según la estación y la región; las estaciones polacas notifican Pb95 como e5, Pb98 como superplus y ON como diesel). También se aceptan las denominaciones locales de surtidor — ON, Olej napędowy, Pb95, Nafta, Dizel, Gázolaj, Motorină, Benzină 95, ДП, А-95, Motorin, Gasóleo, Sans plomb 95, Bleifrei … — se resuelven contra `country` (o, en los productos por coordenadas, contra el país en el que cae el punto), porque la misma denominación no significa el mismo carburante en todas partes: «95» es E10 en un surtidor danés, finlandés, francés, británico, belga u holandés y E5 en uno polaco o alemán. La respuesta devuelve `fuel_type` (canónico), `fuel_type_requested` (tal como lo escribió) y `fuel_type_local`. Una denominación que no podemos ubicar nunca se sustituye por un carburante predeterminado: la respuesta vuelve vacía y así lo indica. Tabla completa de denominaciones por país: /api/v2/data/fuel-grades.
limitMáximo de estaciones (por defecto 5, máximo 20)
truck_friendlyOptional filter: 1 = only stations flagged as usable by trucks (truck_friendly true). Any other value is ignored.
langIdioma de las etiquetas (por defecto en)

Campos de la respuesta — dentro del objeto data del sobre de respuesta. [] indica una lista, así que data.items[].name es el campo name de cada elemento. Un campo es null, no aparece o es una lista vacía cuando no tenemos valor: nunca un marcador de posición.

CampoDescripción
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).

Antigüedad del precio

Los precios de estaciones tienen dos límites de antigüedad, ambos contados desde la última vez que confirmamos el precio (age_hours). Tras 7 días un precio se sigue devolviendo, con stale = true. Tras 90 días no se devuelve en absoluto (desde el 2026-10-24). Un combustible que solo tiene un precio así falta entonces en prices, una estación sin ningún precio restante no aparece en la lista (o tiene un objeto prices vacío donde se muestran estaciones sin precio) y la respuesta puede estar vacía — empty_reason indica entonces el motivo. fuel-local puede entonces responder desde el nivel de región o de país. El historial de precios se conserva; las medias nacionales y por ciudad no se ven afectadas.

Respuestas vacías

Cuando ninguna estación coincide, la respuesta sigue siendo HTTP 200 con una lista stations vacía, e indica el motivo. Se añaden cuatro campos a data, solo en una respuesta vacía: empty_reason (causa legible por máquina), nearest_station_km (distancia a la estación más cercana que ofrece su tipo de combustible, buscada hasta nearest_search_km = 50 km; null si no hay ninguna), country (ISO-2 del punto) y suggestion (una frase breve en su lang). Nunca ampliamos el radio por usted.

empty_reasonDescripción
no_station_in_radiusNinguna estación con precio actual dentro de radius_km. nearest_station_km indica a qué distancia está la más cercana (null si no hay ninguna a menos de 50 km).
no_price_for_fuel_typeHay estaciones dentro del radio, pero ninguna ofrece el fuel_type solicitado. nearest_station_km es la estación más cercana que sí lo ofrece.
fuel_type_not_priced_in_countryReconocemos el tipo de combustible, pero ningún feed de estaciones lo tarifica en este país (por ejemplo, HVO en Alemania). Un radio mayor no ayudará: solicite otro tipo de combustible.
unknown_fuel_typeNo se pudo asociar el fuel_type con ningún tipo de combustible conocido. suggestion enumera los valores válidos; los nombres locales de los surtidores por país están en /api/v2/data/fuel-grades.
no_fresh_price_in_radiusLas estaciones dentro del radio solo tienen precios demasiado antiguos para servirse. Pruebe con un radio algo mayor o vuelva a llamar más tarde.

suggestion es un consejo para personas, no un contrato: su redacción puede cambiar. Base la lógica de su código en empty_reason y nearest_station_km; muestre suggestion a sus usuarios o regístrela en logs. Un radio aconsejado se redondea hacia arriba a un paso de 5 km y nunca supera el máximo de 25 km.

Barridos en cuadrícula: Si muestrea un área o una ruta en una cuadrícula, use radius_km de 10–15. Con 5 km, la mayoría de los puntos rurales de la cuadrícula caen entre estaciones y devuelven una respuesta vacía (no_station_in_radius) incluso cuando hay una estación a pocos kilómetros.

Ejemplo: respuesta vacía ?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"
🔑 Inicia sesión como desarrollador para probar este endpoint en vivo en el sandbox — 10 llamadas de prueba gratis por producto al día. Iniciar sesión

Actualizado