Wallace Banter
Wallace Banter

Reputation: 165

Blogger API missing content data

I'm currently having a major issue with the Blogger API v3.

I call for a list of blog posts like this:

https://www.googleapis.com/blogger/v3/blogs/{blogid}/posts

The post content data, which should be part of the resultset is missing for some reason. All other data is there.

Is there anything on my side that could be causing this, or is this a bug on the Blogger API?

Upvotes: 3

Views: 402

Answers (2)

adam.wulf
adam.wulf

Reputation: 2169

From https://groups.google.com/forum/#!topic/bloggerdev/Qxs2APElly0:

The fetchBodies parameter now defaults to false for some reason. Explicitly setting it to true fixes the issue.

Here's hoping they reverse the behaviour soon.

I've confirmed that using this URL instead does return content body as it did before:

https://www.googleapis.com/blogger/v3/blogs/{blogid}/posts?fetchBodies=true

Google has also confirmed that a proper fix is coming soon: https://groups.google.com/d/msg/bloggerdev/hHrlcdoU0w8/znGKqSjLkRMJ

Upvotes: 2

John Mellor
John Mellor

Reputation: 2523

Having the same issue, you can still get the content by requesting the post specifically, when you request a blog via:

(i'm using the google webmaster blog as an example)

https://www.googleapis.com/blogger/v3/blogs/32069983/posts?key={your key}

Each post will list a "selflink" like so:

https://www.googleapis.com/blogger/v3/blogs/32069983/posts/5707272928466575355?key={your key}

This still shows the content, so you simply need to send an additional request to that url.

Hopefully this is only a temporary work around, as I agree it's really annoying have to make all the extra requests.

Upvotes: 0

Related Questions