Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


Json Display posts from Blogger

Hi there, im trying get data from my blog and display in a html page of id news but im not sure if im doing correctelly, could someone take a look:


  var bloggerAPI = "http://name-of-blog.blogspot.pt/feeds/posts/default?alt=json-in-script&callback=?";

  var bloggerOptions = {
    title: ""  ,
    format: "json"

  $.getJSON(bloggerAPI, bloggerOptions, displayPosts);


1 Answer

Aaron Graham
Aaron Graham
18,033 Points

I tried this out in the console, and it looks like your AJAX is working. Whether or not anything meaningful displays in your #news element will depend on your displayPosts() function.