Brainlag
  1. Web
  2. Data and the network
28/38 lessons

fetch and APIs

45 min6 exercisesPremium

Load data from an API with fetch, read status codes and response.ok, ask for filtered results with a query string, and send data with a POST request.

The skill
Load and send data with fetch and handle what the server answers.
You make
A game search, a missing game message, a wishlist that posts to a server and a head to head of two games.

Premium lesson

£7.99 a month or £59 a year. Cancel any time.

Builds on 27 Async code, promises and await. Free to try: Web Foundations and the playground.

Step 1 of 9
exercise_1.js

You've reached the good stuff.

6 exercises in this lesson, checked as you type. Premium opens every lesson after Foundations, in all four courses.

JavaScript