Day
Get the total amount of detected objects from your sensor(s) for an entire day.
Endpoint URL
GET
/v2/statistics/day
💡
Each day start from 00:00 - 23:59
Query parameters
| Name | Required | Description |
|---|---|---|
token | Yes | Valid access token |
day | Yes | Day of the month |
month | Yes | Month (1-12) |
year | No | Year, default: current year |
tz | No | Chosen time zone (List of tz database time zones), default: IL |
Example request
$ curl https://api.roadsense.tech/v2/statistics/day&token={your_access_token}&day=12&month=6Example response
[ { sensor: "5000a0cc2bfdd33c", day: "12", month: "6", year: "2021", objectsCount: 34, peopleCount: 29, micromobilityCount: 5, vehiclesCount: 0 }, { sensor: "600a0c2a69e6049c", ... },]Response fields
| Name | Type | Description |
|---|---|---|
sensor | string | Sensor ID |
day | string | Day of the month |
month | string | Month |
year | string | Year |
objectsCount | number | Number of total detected objects |
peopleCount | number | Number of people objects |
micromobilityCount | number | Number of micromobility objects |
vehiclesCount | number | Number of vehicles objects |