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 бесплатних тест позива дневно. Пријава