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

Please I really need help

Can someone please try to use this API, I'm trying to get some info from there but I can't, and I don't see anything in my console. Can you try it and let me know if you succeeded?

This is an API for a movie database. Thanks and please help me.

https://yts.to/api/v2/movie_details.jsonp?movie_id=4021

4 Answers

Hi Jose,

Could you please provide a link or a name of the API you're trying to use?

And this is the link to the documentation of the API

https://yts.to/api

Also, would be great to see your code in order to understand, where the problem can be.

$.getJSON("https://yts.to/api/v2/movie_details.jsonp?movie_id=4021", function(response){
  console.log(response);
});

Well in my javascript file there is only this right now, because I was trying to access the API, in this piece of code I'm just trying to log the response from the API, just to see if I can access the API. But it's not working