Слање вести и флота NakBus сада су на партнерској табли
Повежите свој developer налог са Nakordoni Partners налогом са истом имејл адресом и тамо управљајте вестима и својом флотом аутобуса (NakDriver / NakManager), са тимским улогама. Ваши API кључеви, endpoint-и и апликације остају непромењени, а странице овде и даље раде. Отвори Nakordoni Partners

← Све крајње тачке

API коришћења налога

Колико вам је тренутно остало од ограничења за кључ којим позивате: план, ограничење по секунди и за сваку класу дневне квоте (cheap, heavy, route) ограничење, потрошено, преостало и време ресетовања (поноћ UTC); такође ваше земље онако како их види овај кључ и где да надоградите план. Не рачуна се, 30 позива у минути по кључу.

GET https://nakordoni.eu/api/v2/account/usage — не рачуна се — никада не троши квоту

Поља одговора — унутар објекта data у коверти одговора. [] означава листу, па је data.items[].name поље name сваког елемента. Поље је null, недостаје или је празна листа када немамо вредност — никада не убацујемо замену.

ПољеОпис
data.planYour plan: slug and display name.
data.qpsPer-second request cap that applies to this key now.
data.quotas.cheap.limitDaily allowance of the standard class; heavy and route have the same four fields.
data.quotas.cheap.usedUnits spent today with this key.
data.quotas.cheap.remainingUnits left today — equals X-Devapi-Remaining.
data.quotas.cheap.reset_atWhen the counter resets, ISO-8601 UTC (midnight UTC). The X-Devapi-Reset header gives the same moment as a Unix timestamp.
data.markets.approvedCountries this key may use. Countries switched on through an integration work only with that integration's key.
data.markets.allowedHow many countries the plan allows; null = unlimited.
data.markets.availableIntegration keys only: the integration's countries you do not have yet (null for other keys).
data.markets.key_boundtrue when some approved countries belong to one key only, so another key can see a different list.
data.upgrade_urlBilling page in your account language — upgrade the plan or add extra countries.
data.passIntegration keys only: Trip Pass state {active, expires_at, days_left}; null for other keys.
data.pass_urlIntegration keys only: link to the Trip Pass on the Billing page (account language); null for other keys.
curl "https://nakordoni.eu/api/v2/account/usage" \
  -H "Authorization: Bearer NKD-DEV-XXXX-XXXX-XXXX"
🔑 Пријавите се као програмер да бисте ову крајњу тачку испробали уживо у Sandbox-у — 50 бесплатних тест позива дневно. Пријава

Ažurirano