PageViews: get

  • Retrieving pageview stats for a Blog requires authorization.

  • The GET request to https://www.googleapis.com/blogger/v3/blogs/blogId/pageviews is used to get page view data.

  • The blogId parameter is required, and the optional range parameter can specify the timeframe for the page view data.

  • This request requires authorization using the https://www.googleapis.com/auth/blogger scope.

  • A successful response returns a PageViews resource.

Requires authorization

Retrieve pageview stats for a Blog. Try it now .

Request

HTTP request

GET https://www.googleapis.com/blogger/v3/blogs/ blogId 
/pageviews

Parameters

Parameter name
Value
Description
Required parameters
blogId
string
The ID of the blog to get.
Optional parameters
range
string


Acceptable values are:
  • " 30DAYS ": Page view counts from the last thirty days.
  • " 7DAYS ": Page view counts from the last seven days.
  • " all ": Total page view counts from all time.

Authorization

This request requires authorization with at least one of the following scopes ( read more about authentication and authorization ).

Scope
https://www.googleapis.com/auth/blogger

Request body

Do not supply a request body with this method.

Response

If successful, this method returns a PageViews resource in the response body.

Try it!

Use the APIs Explorer below to call this method on live data and see the response.

Create a Mobile Website
View Site in Mobile | Classic
Share by: