Blogs

Learn about blogs and the various endpoints to list and search for them.

A blog represents the base entity of the Blogger API. It's a website where the content is shared with a target audience. A blog contains pages and posts containing the information to be shared.

Blog properties

The table below shows the list of properties that comprise the blog class.

Parameter

Type

Description

kind

string

The type of object.

Value: blogger#blog

Note: This value is fixed.

id

string

The ID of the blog.

name

string

The name/title of the blog.

Note: This value can include HTML.

description

string

The description of the blog.

Note: This value can include HTML.

published

datetime

The blog's date of publishing.

Format: yyyy-mm-dd

updated

datetime

The date of the blog's last update.

Format: yyyy-mm-dd

url

string

The published link of the blog.

selfLink

string

The Blogger API URL of the blog.

posts

object

The object that contains blog posts.

posts.totalItems

integer

The number of blog posts.

posts.selfLink

string

The Blogger API URL of the blog posts collection.

pages

object

The object that contains blog pages.

pages.totalItems

integer

The number of blog pages.

pages.selfLink

string

The Blogger API URL of the blog pages collection.

locale

object

The object containing the locale information of the blog.

locale.language

string

The language of the blog.

locale.country

string

The country corresponding to the language.

locale.variant

string

The language variant of the blog.

customMetaData

string

The metadata of the blog.

posts.items[]

list

The list of blog posts.

Methods

Let's look at some methods we can invoke for the blog class.

Get blogs by user ID

We can retrieve a list of all the blogs of a specific user by making a GET request to the following endpoint:

Press + to interact
https://blogger.googleapis.com/v3/users/{userId}/blogs

This endpoint ...