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 trialPaul Messmer
15,023 PointsAPI clarification
Is this a RESTful api or a fetch api? Also where do you use an API key if that is all the API gives you? Do you need back end or server side code for this?
1 Answer
Steven Parker
231,275 PointsHi, I got alerted by your tag.
This video doesn't use "fetch", instead it uses the older but still valid "XMLHttpRequest" mechanism. After taking the "fetch" course, you might want to try revising this code to use it as an exercise. If you do, post your results here!
And the API contacted (Open Notify) simply returns data in a JSON package, it doesn't fully implement REST (Representational State Transfer) protocols.
The project code here runs entirely in the browser.
Paul Messmer
15,023 PointsPaul Messmer
15,023 PointsSteven Parker you have helped me before a few times if you are online would you mind helping me out again :)