Post
/analytics/locations_hits
Used to get the number of location hits over a given time period.
Body parameters
object
apptoken
string Required
Your App token
from
string Required
Start date for the analytics query (YYYY-MM-DD)
to
string Required
End date for the analytics query (YYYY-MM-DD)
Responses
200
200
Grouped
{
"code": "200",
"data": {
"1293": {
"amount": "75000",
"amount_unique": "36000"
},
"1345": {
"amount": "475000",
"amount_unique": "237983"
},
"1347": {
"amount": "44",
"amount_unique": "1"
}
},
"success": "True"
}Totals
{
"code": "200",
"data": {
"totals": {
"amount": "33000"
}
},
"success": "True"
}OneOf
Grouped
object (Grouped)
code
integer
Default0
Example200
data
object
periods
object
message
string
Example
success
boolean
Defaulttrue
ExampleTrue
Totals
object (Totals)
code
integer
Default0
Example200
data
object
totals
object
amount
string
Example1015
message
string
Example
success
boolean
Defaulttrue
ExampleTrue
400
400
Result
{
"success": "False",
"code": "400",
"message": "General error information",
"errors": [
{
"text": [
"Detailed information about the specific error"
]
}
]
}object
success
boolean
Defaulttrue
ExampleFalse
code
integer
Default0
Example400
message
string
ExampleGeneral error information
errors
Array of object
object
text
Array of string
string