Traffic

By December 6, 2017Traffic

Gets traffic for a site.

Parameters

date optional Date in format YYYY-MM-DD

URL

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

Request

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

Response

{
  "date": "2011-10-13",
  "views": 10,
  "people": 5,
  "traffic": [
    {
      "date": "2011-10-01",
      "views": 4136,
      "people": 1674
    },
    {
      "date": "2011-10-02",
      "views": 5689,
      "people": 2236
    },
    // ... etc
  ],
  "urls": {
    "older": "https://secure.gaug.es/gauges/4ea97a8be5947ccda1000001/traffic?date=2011-09-01",
    "newer": null
  }
}

Leave a Reply