GET /foot-traffic/devices/{serial_number}
Get Foot Traffic at device level
This endpoint returns data for a specific device.
You can query the results by the datetime_start
(inclusive) and datetime_end
(exclusive) parameters can be used to query for data recorded within the specified datetime range. Note that these parameters are grouped by local timezone.
Data is returned for each interval
time at each device. The interval
can be one of: 15m, hour, day, week, month, year.
Get Foot Traffic at device level
Authorizations
Path parameters
serial_numberstringRequiredExample:
The serial_number
AA000000
Query parameters
datetime_startstringOptionalExample:
The start date
2021-10-10T00:00:00Z
datetime_endstringOptionalExample:
The end date
2021-10-10T00:00:00Z
limitnumberOptional
The query limit
location_idsstring[]Optional
The location ids to be filtered
intervalstring · enumRequiredPossible values:
The foot-traffic interval
Responses
200
Successful operation
application/json
400
Invalid parameters
404
Device not found
get
GET /dtm-api/v1/foot-traffic/devices/{serial_number} HTTP/1.1
Host: api.getdor.com
Authorization: Basic username:password
Accept: */*
{
"data": [
{
"datetime_start": "2023-01-01T00:00:00",
"datetime_end": "2023-01-01T00:00:00",
"interval": "day",
"foot_traffic": {
"in_count": 10,
"out_count": 10,
"count": 10,
"validity": "valid",
"completeness": "complete"
}
}
],
"meta": {
"limit": 50,
"next": "https://test.test/endpoint?next=2lkj23jf2fljf29"
}
}
Last updated