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 Asynchronous Programming with JavaScript Asynchronous JavaScript with Callbacks Async Programming and Callback Functions

API 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?

Steven Parker you have helped me before a few times if you are online would you mind helping me out again :)

1 Answer

Steven Parker
Steven Parker
231,248 Points

:bookmark: Hi, 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.