समाचार सबमिशन और NakBus फ्लीट अब पार्टनर डैशबोर्ड में हैं
अपने डेवलपर खाते को उसी ईमेल वाले Nakordoni Partners खाते से कनेक्ट करें और वहाँ समाचार और अपने बस बेड़े (NakDriver / NakManager) को टीम भूमिकाओं के साथ प्रबंधित करें। आपकी API कुंजियाँ, एंडपॉइंट और ऐप्स अपरिवर्तित रहते हैं, और यहाँ के पेज काम करना जारी रखते हैं। Nakordoni Partners खोलें

← सभी एंडपॉइंट

नज़दीकी फ्यूल स्टेशन API Online

किसी बिंदु या शहर के सबसे नज़दीकी पेट्रोल स्टेशन, प्रत्येक ईंधन प्रकार के मौजूदा दामों सहित, दूरी के अनुसार क्रमबद्ध। station-level कवरेज यूरोप के 39 देशों तक फैला है और यह MEASURED है, तय नहीं: हर खाली उत्तर coverage ऑब्जेक्ट में देशों की मौजूदा सूची, प्रत्येक देश के station की संख्या सहित, अनुरोधित ग्रेड तक सीमित करके लौटाता है — इसलिए इस विवरण में लिखी सूची के बजाय वही पढ़ें — यह nakordoni.eu के fuel पेजों जैसा ही डेटा है; अन्यत्र राष्ट्रीय औसत के लिए fuel API के country मोड का उपयोग करें। दाम प्रत्येक station की अपनी currency में लौटाए जाते हैं (पोलिश स्टेशनों के लिए PLN, बाकी जगह EUR) — प्रत्येक station का currency फ़ील्ड पढ़ें, कच्ची संख्याओं की कभी तुलना न करें। जब कोई station मेल नहीं खाता, तो उत्तर में चुपचाप खाली सूची के बजाय एक coverage ऑब्जेक्ट शामिल होता है: लाइव इंडेक्स से मापे गए station_countries और station_counts (fuel_type बताए जाने पर `grade` तक सीमित), 25 या उससे कम priced station वाले देशों के लिए sparse_coverage, 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"
🔑 इस एंडपॉइंट को सैंडबॉक्स में लाइव आज़माने के लिए डेवलपर के रूप में लॉग इन करें — प्रतिदिन 50 निःशुल्क टेस्ट कॉल। लॉग इन

अपडेट किया गया