Skip to main content
GET
/
v2
/
access
/
analytics
/
visitor-countries
/
top
Top visitor countries
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
        }
      }
    ]
  }
}

Authorizations

apiKey
string
header
required

Your OFAuth API key for authenticating requests.

x-connection-id
string
header
required

Requires a connection via the x-connection-id header.

Query Parameters

startDate

Start of date range (ISO 8601)

endDate

End of date range (ISO 8601)

by
enum<string>

Visitor metric to rank by

Available options:
guests,
total,
users

Response

Successful response

isAvailable
boolean
required
hasStats
boolean
required
topCountries
object
required