Skip to main content
Menu

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

Անցակետի ժամային վիճակագրության API Online

Ժամային պատմական հերթի վիճակագրություն ըստ անցակետի և ամսաթվի՝ 24 ժամային արժեք, օրական միջին/նվազ/առավ, պիկ և ամենահանգիստ ժամեր, օրեցօր համեմատություն։

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

ՊարամետրՆկարագրություն
ppidՍտուգման կետի ID, օրինակ id_13 (տես /api/v1/data/checkpoints)
dateYYYY-MM-DD (լռելյայն՝ երեկ)
compare1 = ներառել նախորդ օրը + դելտա
langԼեզվի կոդ (լռելյայն uk)

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

ԴաշտՆկարագրություն
data.ppidCheckpoint the statistics belong to, with checkpoint.name and checkpoint.source_url.
data.dateThe day covered, in the checkpoint's timezone (data.timezone); unit says what the numbers count.
data.hourly[]24 elements: hour, value, data_points (observations behind that hour). value is null for an hour with no data.
data.labelsHour labels for the 24 buckets; values is the bare value series, aligned with them.
data.dailyWhole-day rollup: avg, min, max, total, hours_with_data.
data.peakBusiest hour of the day, and quietest the calmest — both null when the day has too little data.
data.data_availablefalse = we hold nothing for that date; every number above is then empty rather than zero.
data.comparePresent only with compare=1: the same shape for the previous day plus delta_avg.
curl "https://nakordoni.eu/api/v1/data/stats?ppid=id_15&date=2026-06-01&compare=1" \
  -H "Authorization: Bearer NKD-DEV-XXXX-XXXX-XXXX"
🔑 Մուտք գործեք որպես ծրագրավորող՝ այս endpoint-ը ուղիղ Sandbox-ում փորձելու համար — օրական 50 անվճար թեստային կանչ։ Մուտք