Momentum logo
Team 17 Classroom

Getting Data Using APIs with JS and Fetch

Posted on Feb 6th, 2023

Today’s topics

  • The next task is to start working with fetch and AJAX.
    • Using JSON for data
    • Basics of HTTP requests
    • Make GET requests with Insomnia client
    • Make GET requests using the Fetch API and display response data on a page

🎯 Project: MyTunes

You will build a clone of iTunes using the iTunes API. It will be due Thursday morning.

🦉 Notes

🔖 Resources

HTTP2

APIs

AJAX, Fetch, & JSON

⭐ EXTRA/TMI

Fetch requests use JavaScript promises to handle responses. Promises are a much bigger topic than we will get into right now, but if you want to know more about what a promise is and how to use it beyond the context of AJAX requests, you can start with the MDN documentation about it.

Back to home