Search⌘ K
AI Features

Pageviews, List, and Search Pages

Explore methods to retrieve pageview statistics, list all blog pages, and access individual page information through the Blogger API. This lesson helps you handle key page management operations and understand the parameters involved in querying blog page data effectively.

In this lesson, we'll learn how to retrieve the number of pageviews for a particular blog page over a certain period of time. We'll also learn how to retrieve a single blog page and a list of all blog pages.

Pageview properties

The table below shows the list of pageview properties and their descriptions.

Parameter

Type

Description

kind

string

The type of object.

Value: blogger#page_views

Note: This value is fixed.

blogId

long

The ID of the blog.

counts[]

list

The list of time ranges and count pairs for each page.

counts[].timeRange

string

The duration over which the count was estimated.

counts[].count

long

The number of pageviews.

Methods

Get pageviews

We can retrieve the pageview stats for a specific blog by making a GET request to the following endpoint:

Clojure
https://blogger.googleapis.com/v3/blogs/{blogId}/pageviews

This endpoint requires the blogId of the blog that we would ...