cURL
curl --request GET \ --url https://api-next.ofauth.com/v2/access/analytics/visitor-countries/top \ --header 'apiKey: <api-key>' \ --header 'x-connection-id: <api-key>'
{ "isAvailable": true, "hasStats": true, "topCountries": { "hasMore": true, "totals": { "total": 123, "guests": "<string>", "users": "<string>", "subscribers": 123 }, "rows": [ { "rank": 123, "countryName": "<string>", "countryCode": "<string>", "viewsCount": { "total": 123, "guests": 123, "users": 123, "subscribers": 123 } } ] } }
Get top visitor countries
Permission Required: analytics:read
analytics:read
Your OFAuth API key for authenticating requests.
Requires a connection via the x-connection-id header.
Start of date range (ISO 8601)
End of date range (ISO 8601)
Visitor metric to rank by
guests
total
users
Successful response
Show child attributes
Was this page helpful?