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