v1
latestOpenAPI 3.0.12026-07-2433136135.1 KBVisits by Hours Report
Retrieves visits for a given entity(venue/complex) broken by the hours of the day and its business opening hours.<br/> <br/>The response includes:<br/> <ul> <li>2 arrays: <ol> <li>Hour of the day bins: [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23], where each represents an hour in the day. (e.g. 11 = 11 am - 12 pm)</li> <li>Estimated foot traffic array: Indicates the total visits for the POI during the selected date range for each of the hour bins (correlated to the location in the Hour of the day array)</li> </ol> </li> <li> Array of the business opening hours for each day of the week. </li> </ul> <br/> ⏱ <strong>Average measured processing time: 0.79 seconds </strong><br/> For more information on request retries best practices and processing measurements you may visit <a href="https://docs.placer.ai/reference/measurements"> this</a> page<br/><br/> 📍 This service supports the <<glossary:Nearby Activity report>>. Once setting a value to the nearbyRadius parameter, the report will be generated based on the nearby activity logic.
Request body
Example request
{
"startDate": "2020-12-01",
"endDate": "2021-05-31",
"apiId": "venue:7d55054520e387813d764b03",
"filters": {
"audienceType": [
"visitors"
],
"dwellTime": {
"operator": "<",
"value": 150
},
"hoursRange": {
"fromHour": "03:00 am",
"toHour": "11:59 pm"
},
"daysOfWeek": [
6,
7
],
"distance": {
"from": "home",
"values": {
"lt": 250,
"gt": 10
}
}
}
}Response
200 response
Example response
{
"requestId": "cfe57f50-fb64-11eb-8760-acde48001122:cfe56fce-fb64-11eb-8760-acde48001122",
"data": {
"bins": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23
],
"estimatedFoottraffic": [
691,
337,
337,
337,
337,
158,
308,
4081,
16268,
31543,
54469,
78110,
98220,
108307,
112484,
130168,
135215,
127224,
115792,
97031,
75903,
45117,
11245,
996
],
"openingHours": [
{
"day": "Sunday",
"fromHour": "8:00 AM",
"toHour": "5:00 PM"
}
]
},
"filters": {
"audienceType": [
"visitors"
],
"dwellTime": {
"operator": "<",
"value": 150
},
"hoursRange": {
"fromHour": "03:00 am",
"toHour": "11:59 pm"
},
"daysOfWeek": [
6,
7
],
"distance": {
"from": "home",
"values": {
"lt": 250,
"gt": 10
}
}
},
"visitDurationSegmentation": "10MinOrLonger"
}