v1
latestOpenAPI 3.0.12026-07-2433136135.1 KBRanking Metrics for a Single Property
This service returns the specific entity <glossary:Ranking> within a selected scope :<br/> <ul> <li>Chain scope - compares the entity <glossary:Ranking> vs all other chain’s entities</li> <li>Group category scope - compares the entity <glossary:Ranking> vs all venues under the selected group category (Apparel, Leisure, …).</li> <li>Category scope - compares the entity <glossary:Ranking> vs all venues under the selected category (Regional Mall, Industrial, …).</li> </ul> </br> The endpoint supports the option to have a custom date range (as well as pre-defined time buckets) and <glossary:Ranking> within a local area ( 5,10,15 miles). <br/> ⏱ <strong>Average measured processing time: 8.57 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/> NOTE: <<glossary:Flagged entities>> will not be taken into consideration in the resulting report.
Request body
Example request
{
"apiId": "venue:7d55054520e387813d764b03",
"startDate": "2020-12-01",
"endDate": "2020-12-31",
"distanceMiles": 15,
"period": "lastWeek",
"scope": "category",
"metric": "visits"
}Response
200 response
Example response
{
"apiId": "venue:7d55054520e387813d764b03",
"metricType": "visits",
"info": {
"name": "Walmart",
"entityId": "7d55054520e387813d764b03",
"entityType": "venue",
"rankedBy": "chain",
"categoryInfo": {
"category": "Fast Food & QSR",
"group": "Dining",
"subCategory": "Pizze Place"
}
},
"ranking": {
"nationwide": {
"rank": 4,
"percentile": 85,
"rankedOutOf": 1850,
"regionCode": "US"
},
"state": {
"rank": 4,
"percentile": 85,
"rankedOutOf": 1850,
"regionCode": "CA"
},
"dma": {
"rank": 4,
"percentile": 85,
"rankedOutOf": 1850,
"regionCode": "510"
},
"cbsa": {
"rank": 4,
"percentile": 85,
"rankedOutOf": 1850,
"regionCode": "34980"
},
"local": {
"rank": 4,
"percentile": 85,
"rankedOutOf": 1850,
"radiusMiles": 15
}
},
"visitDurationSegmentation": "10MinOrLonger"
}