Skip to main content
Menu

← Të gjithë endpoint-et

API i emrave të karburanteve Online

Tabela e emrave mbi të cilën mbështeten të gjitha produktet tona të karburantit: kodet tona kanonike dhe emri që mban çdo karburant në pompë në 41 vende evropiane — ON në Poloni, Nafta në Çeki, Gázolaj në Hungari, Motorină në Rumani, ДП në Ukrainë, Motorin në Turqi. Çdo emër i tabelës pranohet nga parametri fuel_type i produkteve të tjera të karburantit dhe interpretohet së pari sipas vendit: „95“ është E10 në një pompë daneze dhe E5 në një polake.

GET https://nakordoni.eu/api/v2/data/fuel-grades — klasa e kuotës: cheap

ParametriPërshkrimi
countryOptional 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_typeOptional 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.

Fushat e përgjigjes — brenda objektit data të zarfit të përgjigjes. [] shënon një listë, pra data.items[].name është fusha name e çdo elementi. Një fushë është null, mungon ose është listë bosh kur nuk kemi vlerë — kurrë një vendmbajtëse.

FushaPërshkrimi
data.grades[].codeCanonical grade code — the value fuel_type takes in every fuel product.
data.grades[].labelPlain-English description of the grade.
data.grades[].familydiesel | petrol | gas | other.
data.grades[].station_leveltrue when station feeds report this grade anywhere; false means it only ever appears in national averages.
data.countriesKeyed 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.countHow many countries the answer covers (41 unfiltered, 1 with ?country=).
data.resolvedOnly with ?fuel_type=: requested, country, grade (null when we cannot place the name), label and local_name.
data.noteHow 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"
🔑 Hyni si zhvillues për ta provuar këtë endpoint drejtpërdrejt në Sandbox — 50 thirrje testimi falas në ditë. Hyni