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