Retrieve Office 365 Delve Blogs Programmatically using REST API

In this article, you will learn how to get the blogs from Office 365 delve sites on the custom components programmatically using REST API with various filter options.

Query Options :

By default, when user tries to create a blog post from delve user page, the page will be redirected to user's personal site page. All the posts created on delve blog page will be stored in the user’s personal site. i.e., under “/portals/personal/userfirstname/” site.Some of the queriable fields are content types, file types and file extensions. Only these field values are unique for blogs created on the Office 365 blog site which will not be similar to other items. Some of the unique properties and values are,

  • Content type - The blogs stored on the portal uses story page content type.

  • Secondary File Extensions - The file extension is aspx page but secondary file extension used is PointPub which is unique.

  • File Type - The file type of the blog is PointPub.

We will see how we can query to get the desired results using Search REST API.

Using content type: First we will find out the content type of story page manually from Office 365 site.

  • From personal site collection, navigate to see all lists folder and then select pages folder. (Or just append “/portals/personal/userfirstname/ppg” to the url and open to see the pages library directly)

  • Go to library settings of Pages library