GET Stats / Geography

Returns Countries, Time Zone and Locales

Endpoint URL:
https://api.carnivalmobile.com/v6/stats/devices/geography

Examples

curl -X GET -u :$API_KEY -H 'Accept: application/json' https://api.carnivalmobile.com/v6/stats/devices/geography

Result Format

200 OK

{
  "country": [
    {
      "term": "New Zealand",
      "count": 17,
      "percent": 85
    },
    {
      "term": "United States",
      "count": 3,
      "percent": 15
    }
  ],
  "locale": [
    {
      "term": "en_US",
      "count": 13,
      "percent": 65
    },
    {
      "term": "en_NZ",
      "count": 7,
      "percent": 35
    }
  ],
  "time_zone": [
    {
      "term": "Pacific/Auckland",
      "count": 17,
      "percent": 85
    },
    {
      "term": "America/New_York",
      "count": 3,
      "percent": 15
    }
  ]
}

401 Unauthorized

{
  "error":"unauthorized"
}

403 Forbidden

{
  "error":"your api client does not have the correct roles"
}

Contact us

Top