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
Jose Linares
5,062 PointsPlease 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.
4 Answers
Yulia Markina
12,616 PointsHi Jose,
Could you please provide a link or a name of the API you're trying to use?
Jose Linares
5,062 PointsOh sorry forgot about that. https://yts.to/api/v2/movie_details.jsonp?movie_id=4021
Jose Linares
5,062 PointsAnd this is the link to the documentation of the API
Yulia Markina
12,616 PointsAlso, would be great to see your code in order to understand, where the problem can be.
Jose Linares
5,062 Points$.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