Jump to Categories

Fetch API

An interface for making network requests and fetching resources similar to XMLHttpRequest. It makes use of promises.

Example API Call.

fetch('https://api.something.com')
  .then(response => response.json())
  .then(data => {
    console.log(data)
  }).catch(function(err) {
    console.log(err)
  });

References