Locations

By December 7, 2017Locations

Gets locations for a site.

Parameters

date optional Date in format YYYY-MM-DD

URL

GET https://secure.gaug.es/gauges/:id/locations

Request

curl -H "X-Gauges-Token: <token>" https://secure.gaug.es/gauges/:id/locations

Response

{
  "date": "2011-10-13",
  "locations": [
    {
      "regions": [
        {
          "title": "California",
          "views": 3923,
          "key": "CA"
        },
        {
          "title": "New York",
          "views": 2204,
          "key": "NY"
        },
        // ... etc
      ],
      "title": "United States",
      "views": 21651,
      "key": "US"
    },
    {
      "regions": [],
      "title": "United Kingdom",
      "views": 6232,
      "key": "GB"
    },
    // ... etc
  ],
  "urls": {
    "older": "https://secure.gaug.es/gauges/4ea97a8be5947ccda1000001/locations?date=2011-09-01",
    "newer": null
  }
}

Leave a Reply