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

NameRequiredDescription
tokenYesValid access token
dayYesDay of the month
monthYesMonth (1-12)
yearNoYear, default: current year
tzNoChosen 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=6

Example response

[
{
sensor: "5000a0cc2bfdd33c",
day: "12",
month: "6",
year: "2021",
objectsCount: 34,
peopleCount: 29,
micromobilityCount: 5,
vehiclesCount: 0
},
{
sensor: "600a0c2a69e6049c",
...
},
]

Response fields

NameTypeDescription
sensorstringSensor ID
daystringDay of the month
monthstringMonth
yearstringYear
objectsCountnumberNumber of total detected objects
peopleCountnumberNumber of people objects
micromobilityCountnumberNumber of micromobility objects
vehiclesCountnumberNumber of vehicles objects