Community articleUsing the publishing APIs
Added by IBM contributorIBM on June 19, 2014
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Blogs provides a set of feeds and service documents that implement the Atom Publishing Protocol. You can use these publishing APIs in your applications to interact with the Blogs application programmatically.



Blogs provides a set of feeds and service documents that implement the Atom Publishing Protocol. You can use these publishing APIs in your applications to interact with the Blogs application programmatically.

The publishing APIs require authentication. When interacting with blogs that you own or author, you can retrieve even more detailed information about the blog. If you want your application to solely read existing information from a blog, see Using the Blogs subscription feeds instead.

The Blogs publishing APIs do not document URL strings for most of the resources; instead your program should follow the links from the service document to a particular feed, and then use the links in the Atom entries contained in the feed to update or delete or comment on an individual entry.

You can perform the following tasks using the publishing APIs:
Navigating Blogs publishing API resources
Describes how to navigate from one Blogs resource to another using the resources made available through the API.

Retrieving the Blogs service document
Before your applications can create or update information in a blog, you must retrieve the service document. You can use the links that it provides to locate the resources that you want to update.

Working with blog posts
Using the Atom Publishing Protocol, also known as AtomPub, you can create or update posts in a blog.

Commenting on blog posts
Using the Atom Publishing Protocol, also known as AtomPub, you can comment on blog posts that you authored.

Working with recommendations
Using the Atom Publishing Protocol, also known as AtomPub, you can recommend blog posts.

Working with media resources
Using the Atom Publishing Protocol, also known as AtomPub, you can upload and replace files in your blog.

Working with blogs
Using the Atom Publishing Protocol, also known as AtomPub, you can add or delete a blog by adding or removing its definition entry. You can also update or replace the blog by updating or replacing its definition entry.

Working with tags
Using the Atom Publishing Protocol, also known as AtomPub, you can retrieve the tags that have been assigned to one or more blog entries.