AI-generated Key Takeaways
-
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 optionalrange
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:
|
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.