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": "2019-02-25T01:00:00+01:00",
      "pageviews": 1,
      "unique": 1
    },
    {
      "date": "2019-02-26T01:00:00+01:00",
      "pageviews": 0,
      "unique": 0
    },
    {
      "date": "2019-02-27T01:00:00+01:00",
      "pageviews": 2,
      "unique": 2
    },
    {
      "date": "2019-02-28T01:00:00+01:00",
      "pageviews": 1,
      "unique": 1
    },
    {
      "date": "2019-03-01T01:00:00+01:00",
      "pageviews": 1,
      "unique": 1
    },
    {
      "date": "2019-03-02T01:00:00+01:00",
      "pageviews": 0,
      "unique": 0
    },
    {
      "date": "2019-03-03T01:00:00+01:00",
      "pageviews": 0,
      "unique": 0
    },
    {
      "date": "2019-03-04T01:00:00+01:00",
      "pageviews": 0,
      "unique": 0
    },
    {
      "date": "2019-03-05T01:00:00+01:00",
      "pageviews": 0,
      "unique": 0
    },
    {
      "date": "2019-03-06T01:00:00+01:00",
      "pageviews": 0,
      "unique": 0
    },
    {
      "date": "2019-03-07T01:00:00+01:00",
      "pageviews": 4,
      "unique": 1
    },
    {
      "date": "2019-03-08T01:00:00+01:00",
      "pageviews": 0,
      "unique": 0
    },
    {
      "date": "2019-03-09T01:00:00+01:00",
      "pageviews": 1,
      "unique": 1
    },
    {
      "date": "2019-03-10T01:00:00+01:00",
      "pageviews": 1,
      "unique": 1
    },
    {
      "date": "2019-03-11T01:00:00+01:00",
      "pageviews": 1,
      "unique": 1
    },
    {
      "date": "2019-03-12T01:00:00+01:00",
      "pageviews": 0,
      "unique": 0
    },
    {
      "date": "2019-03-13T01:00:00+01:00",
      "pageviews": 0,
      "unique": 0
    },
    {
      "date": "2019-03-14T01:00:00+01:00",
      "pageviews": 1,
      "unique": 1
    },
    {
      "date": "2019-03-15T01:00:00+01:00",
      "pageviews": 1,
      "unique": 1
    },
    {
      "date": "2019-03-16T01:00:00+01:00",
      "pageviews": 1,
      "unique": 1
    },
    {
      "date": "2019-03-17T01:00:00+01:00",
      "pageviews": 3,
      "unique": 2
    },
    {
      "date": "2019-03-18T01:00:00+01:00",
      "pageviews": 2,
      "unique": 2
    },
    {
      "date": "2019-03-19T01:00:00+01:00",
      "pageviews": 0,
      "unique": 0
    },
    {
      "date": "2019-03-20T01:00:00+01:00",
      "pageviews": 1,
      "unique": 1
    },
    {
      "date": "2019-03-21T01:00:00+01:00",
      "pageviews": 2,
      "unique": 2
    },
    {
      "date": "2019-03-22T01:00:00+01:00",
      "pageviews": 0,
      "unique": 0
    },
    {
      "date": "2019-03-23T01:00:00+01:00",
      "pageviews": 5,
      "unique": 2
    },
    {
      "date": "2019-03-24T01:00:00+01:00",
      "pageviews": 4,
      "unique": 2
    },
    {
      "date": "2019-03-25T01:00:00+01:00",
      "pageviews": 1,
      "unique": 1
    },
    {
      "date": "2019-03-26T01:00:00+01:00",
      "pageviews": 0,
      "unique": 0
    }
  ],
  "success": true
}