Skip to main content
Menu

← Բոլոր endpoint-ները

Անցակետերի տեղեկատուի API Online

Բոլոր մոնիտորինգի ենթարկվող սահմանային անցակետերի տեղեկատու՝ նույնացուցիչներ, անվանումներ, երկրներ, կոորդինատներ և կարգավիճակ։ Օգտագործեք այն մյուս API-ների համար ppid արժեքները հայտնաբերելու համար։

GET https://nakordoni.eu/api/v1/data/checkpoints — քվոտայի դաս: cheap

ՊարամետրՆկարագրություն
countryԶտել ըստ երկրի թվային կոդի (1=UA, 2=PL, 3=SK, 4=HU, 5=RO, 6=MD, 7=BY, 8=LT, 9=LV, …)
langԱնցակետերի անվանումների լեզուն (լռելյայն en)

Պատասխանի դաշտերը — պատասխանի ծրարի data օբյեկտի ներսում։ []-ը ցույց է տալիս ցուցակ, ուստի data.items[].name-ը յուրաքանչյուր տարրի name դաշտն է։ Դաշտը լինում է null, բացակայում է կամ դատարկ ցուցակ է, երբ արժեք չունենք․ լցոնող արժեք երբեք չենք դնում։

ԴաշտՆկարագրություն
data.checkpoints[].ppidCheckpoint ID — the value every other product's ppid parameter takes.
data.checkpoints[].nameCheckpoint name in the requested language.
data.checkpoints[].originNumeric country code of the side the crossing is operated from.
data.checkpoints[].destinationNumeric country code of the country across the border.
data.checkpoints[].crossing_typeVehicle type this row is monitored for: 4=car, 5=taxfree car, 6=bus, 7=pedestrian, 8=truck<7.5t, 9=truck.
data.checkpoints[].timezoneIANA timezone of the crossing — every timestamp for it is in this zone.
data.checkpoints[].status1=open, 3=closed, 0=inactive.
data.checkpoints[].has_day_statsfalse means the Best Time to Cross product has no matrix for this checkpoint and would answer 404 — skip it rather than poll it.
data.countNumber of checkpoints returned.
curl "https://nakordoni.eu/api/v1/data/checkpoints" \
  -H "Authorization: Bearer NKD-DEV-XXXX-XXXX-XXXX"
🔑 Մուտք գործեք որպես ծրագրավորող՝ այս endpoint-ը ուղիղ Sandbox-ում փորձելու համար — օրական 50 անվճար թեստային կանչ։ Մուտք