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! While you're at it, check out some resources Treehouse students have shared here.

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

JavaScript AJAX Basics (retiring) AJAX and APIs Displaying the Photos

Ivan Kozhunkov
PLUS
Ivan Kozhunkov
Courses Plus Student 8,480 Points

JSON data's format isn't available

The link to the Flickr API with JSON query string opens flickr's data in xml format, but isn't json.

JSON format isn't available from flickr?

Link to the API in my code looks so:

var flickerAPI = "http://api.flickr.com/services/feeds/photos_public.gne?jsoncallback=?";

And if i'm going in chrome to this link i see data in the xml!

Peter Georgiev
Peter Georgiev
1,699 Points

To see JSON data you have to check this url - with query string - 'format=json' https://api.flickr.com/services/feeds/photos_public.gne?format=json