Wednesday 12 April 2017

Get Blogs from blogger using Blogger Api

Many times our requirements are to be fetched blogger's blog via Rest API. Thankful to google for providing  us an API for this.
So, what we have to do for this, we have to follow simple following steps.


  1. I hope you have an account on blogger and have some posts there. If not then first you have to create an account.Click here to signup.
  2. Now, signup for google api console.
  3. Create a project and select blogger API and get the api_key.
  4. Now you can get posts from your blogger account.
  5. There are many APIs like
    To get all posts
    GET https://www.googleapis.com/blogger/v3/blogs/BLOGGER_ID/posts?key=YOUR-API-KEY

    To get specific post
  6. GET https://www.googleapis.com/blogger/v3/blogs/BLOGGER_ID/posts/POST_ID?key=YOUR-API-KEY
  7. Similarly, you can apply many filters to access your blogs according to your requirements like recent 5 blogs, blogs with comments etc.For eg.
    GET https://www.googleapis.com/blogger/v3/blogs/BLOGGER_ID/posts/POST_ID?
  8. key=YOUR-API-KEY&maxResults=2&order=date
  9. For more detail visit https://developers.google.com/blogger/docs/3.0/using

No comments:

Post a Comment

Thanks!