Does anybody know how to do api calls?

complete newbie, want to know the basics

Maybe this could help:

Eduardo Lopez

You’ll want to have a look at Fetch and/or Ajax calls in JavaScript for getting data from an API.

Use can use the fetch command like so:

      // Fetch data from
        // Then get the JSON response 
        .then(response => {
          return response.json();
        // Finally, convert JSON to a string
        .then(myJson => {

A good practice API is this:

You can learn more about fetch from:

1 Like