Skip to content

Flow Data Collection 🚶 ​

Introduction ​

Below is a quick and straightforward overview for collecting flow data. For more information, access the API Documentation.

Base URL:

https://api.painelalter.com/api/

All requests start with this base URL, and the route is appended at the end.

Example:

https://api.painelalter.com/api/v2/count
https://api.painelalter.com/api/v2/countAdjusted

Authentication ​

To use the API, you must include an authorization header using Basic authentication. This means providing your username and password in all requests.

Example

Using Postman, select Authorization → Basic Auth and enter your credentials.

Endpoints ​

/count ​

This endpoint returns foot traffic data ordered by devices, considering the selected date range. It shows exactly the data captured by the devices, without adjustments.

/countAdjusted ​

This endpoint returns adjusted foot traffic data, including corrections based on availability. We recommend using this data for reports and analysis.

Query Parameters ​

ParameterDescription
dateBeginStart date. Format YYYY-MM-DD (Inclusive)
dateEndEnd date. Format YYYY-MM-DD (Inclusive)
eventTypeID of the event type to be retrieved (1 = entry flow)
groupByData grouping parameter

Event Type IDs Table ​

EventTypeDescription
1Entry Flow
2Exit Flow
3Checkout Stop
4External Flow Left
5External Flow Right
6Employee Entry
7Employee Exit
8Vehicle Entry
9Vehicle Exit
10In-store Flow
11Group Entry

groupBy Values Table ​

groupByDescription
dayGroup by day
monthGroup by month
hourGroup by hour
weekdayGroup by day of the week
day-hourGroup by day and hour