Traffic
https://api.butlr.io/api/v3/reporting

"filter": { "value": { "gte": 0 } }
Query the total hourly entrances and exits at a room or floor entrance.
Last updated
https://api.butlr.io/api/v3/reporting

"filter": { "value": { "gte": 0 } }Last updated
// POST https://api.butlr.io/api/v3/reporting
{
"window": {
"every": "1h",
"function": "sum",
"timezone": "America/New_York" // replace with your timezone
},
"filter": {
"start": "2024-01-01T04:00:00Z",
"stop": "2024-01-02T04:00:00Z",
"measurements": ["traffic"],
"rooms": {
"eq": ["room_2qfewCOsBcP2ylz62KeUDgdr0Is"]
}
},
"group_by": {
"order": ["time", "field"]
}
}{
"data": {
"2024-01-01T04:00:00": {
"in": {
"sum": 63, // total entrances over the hour
"min": 3,
"max": 10,
"count": 9,
"mean": 7,
"median": 7,
"stddev": 1.8856180831641267,
"first": 3,
"last": 6
},
"out": {
"sum": 51, // total exits over the hour
"min": 3,
"max": 10,
"count": 9,
"mean": 7,
"median": 7,
"stddev": 1.8856180831641267,
"first": 3,
"last": 6
}
},
"2024-01-01T05:00:00": {
"in": {
"sum": 12, // total entrances over the hour
"min": 3,
"max": 10,
"count": 9,
"mean": 7,
"median": 7,
"stddev": 1.8856180831641267,
"first": 3,
"last": 6
},
"out": {
"sum": 17, // total exits over the hour
"min": 3,
"max": 10,
"count": 9,
"mean": 7,
"median": 7,
"stddev": 1.8856180831641267,
"first": 3,
"last": 6
}
},
// ... more data
}
}