API של שמות סוגי הדלק Online
טבלת השמות שעליה נשענים כל מוצרי הדלק שלנו: קודי הדלק הקנוניים שלנו והשם שכל סוג דלק נושא במשאבה ב-41 מדינות באירופה — ON בפולין, Nafta בצ׳כיה, Gázolaj בהונגריה, Motorină ברומניה, ДП באוקראינה, Motorin בטורקיה. כל שם מהטבלה מתקבל בפרמטר fuel_type של שאר מוצרי הדלק, והוא מפוענח קודם כול לפי המדינה: „95” הוא E10 במשאבה דנית ו-E5 במשאבה פולנית.
GET https://nakordoni.eu/api/v2/data/fuel-grades
— מחלקת מכסה: cheap
| פרמטר | תיאור |
|---|---|
country | Optional ISO-2 filter — return just that country's local names instead of all 41 (PL, DE, UA, TR, MD, …). 404 when the country is not in the table. |
fuel_type | Optional probe: resolve one name in the context of `country` and report the canonical grade under `resolved` (e.g. country=PL&fuel_type=ON → diesel; country=DK&fuel_type=95 → e10; country=PL&fuel_type=95 → e5). null means we could not place it. |
שדות התשובה — בתוך אובייקט data שבמעטפת התשובה. [] מסמן רשימה, ולכן data.items[].name הוא שדה name של כל פריט. שדה יהיה null, ייעדר או יחזור כרשימה ריקה כשאין לנו ערך עבורו — לעולם לא ערך ממלא מקום.
| שדה | תיאור |
|---|---|
data.grades[].code | Canonical grade code — the value fuel_type takes in every fuel product. |
data.grades[].label | Plain-English description of the grade. |
data.grades[].family | diesel | petrol | gas | other. |
data.grades[].station_level | true when station feeds report this grade anywhere; false means it only ever appears in national averages. |
data.countries | Keyed by ISO-2 country, then by grade code, valued with that country's names for it. The first name in each list is the one to show a driver. |
data.count | How many countries the answer covers (41 unfiltered, 1 with ?country=). |
data.resolved | Only with ?fuel_type=: requested, country, grade (null when we cannot place the name), label and local_name. |
data.note | How resolution works, in one paragraph — safe to show to your users. |
curl "https://nakordoni.eu/api/v2/data/fuel-grades?country=PL&fuel_type=ON" \ -H "Authorization: Bearer NKD-DEV-XXXX-XXXX-XXXX"
🔑 התחברו כמפתחים כדי לנסות את נקודת הקצה הזו בשידור חי ב־Sandbox — 50 קריאות בדיקה חינם ביום. התחברות