Blog pageviews

GET https://api.publishme.se/1/blogs/<blogid>/stats/pageviews

Description
Get visitor statistics for a blog

URL PARAMETERS
blog_id ID of blog desired, in hex format. required

GET PARAMETERS
access_token String, the user authentication token. required
timeperiod Number, the number of days the result contain, counted backwards from today. Supported values are 10,30 and 90 optional

RETURNS
{success: Boolean, stats: Array[Pageview]}

EXAMPLE OUTPUT
{
  "stats": [
    {
      "date": "2018-12-18T01:00:00+01:00",
      "pageviews": 1,
      "unique": 1
    },
    {
      "date": "2018-12-19T01:00:00+01:00",
      "pageviews": 2,
      "unique": 2
    },
    {
      "date": "2018-12-20T01:00:00+01:00",
      "pageviews": 0,
      "unique": 0
    },
    {
      "date": "2018-12-21T01:00:00+01:00",
      "pageviews": 0,
      "unique": 0
    },
    {
      "date": "2018-12-22T01:00:00+01:00",
      "pageviews": 2,
      "unique": 2
    },
    {
      "date": "2018-12-23T01:00:00+01:00",
      "pageviews": 3,
      "unique": 1
    },
    {
      "date": "2018-12-24T01:00:00+01:00",
      "pageviews": 0,
      "unique": 0
    },
    {
      "date": "2018-12-25T01:00:00+01:00",
      "pageviews": 0,
      "unique": 0
    },
    {
      "date": "2018-12-26T01:00:00+01:00",
      "pageviews": 0,
      "unique": 0
    },
    {
      "date": "2018-12-27T01:00:00+01:00",
      "pageviews": 0,
      "unique": 0
    },
    {
      "date": "2018-12-28T01:00:00+01:00",
      "pageviews": 2,
      "unique": 2
    },
    {
      "date": "2018-12-29T01:00:00+01:00",
      "pageviews": 0,
      "unique": 0
    },
    {
      "date": "2018-12-30T01:00:00+01:00",
      "pageviews": 1,
      "unique": 1
    },
    {
      "date": "2018-12-31T01:00:00+01:00",
      "pageviews": 0,
      "unique": 0
    },
    {
      "date": "2019-01-01T01:00:00+01:00",
      "pageviews": 0,
      "unique": 0
    },
    {
      "date": "2019-01-02T01:00:00+01:00",
      "pageviews": 0,
      "unique": 0
    },
    {
      "date": "2019-01-03T01:00:00+01:00",
      "pageviews": 1,
      "unique": 1
    },
    {
      "date": "2019-01-04T01:00:00+01:00",
      "pageviews": 0,
      "unique": 0
    },
    {
      "date": "2019-01-05T01:00:00+01:00",
      "pageviews": 8,
      "unique": 1
    },
    {
      "date": "2019-01-06T01:00:00+01:00",
      "pageviews": 1,
      "unique": 1
    },
    {
      "date": "2019-01-07T01:00:00+01:00",
      "pageviews": 1,
      "unique": 1
    },
    {
      "date": "2019-01-08T01:00:00+01:00",
      "pageviews": 3,
      "unique": 3
    },
    {
      "date": "2019-01-09T01:00:00+01:00",
      "pageviews": 2,
      "unique": 1
    },
    {
      "date": "2019-01-10T01:00:00+01:00",
      "pageviews": 0,
      "unique": 0
    },
    {
      "date": "2019-01-11T01:00:00+01:00",
      "pageviews": 0,
      "unique": 0
    },
    {
      "date": "2019-01-12T01:00:00+01:00",
      "pageviews": 0,
      "unique": 0
    },
    {
      "date": "2019-01-13T01:00:00+01:00",
      "pageviews": 1,
      "unique": 1
    },
    {
      "date": "2019-01-14T01:00:00+01:00",
      "pageviews": 0,
      "unique": 0
    },
    {
      "date": "2019-01-15T01:00:00+01:00",
      "pageviews": 5,
      "unique": 2
    },
    {
      "date": "2019-01-16T01:00:00+01:00",
      "pageviews": 0,
      "unique": 0
    }
  ],
  "success": true
}