# Fetch

The browser's fetch function sends HTTP requests from JavaScript and returns a promise of the response. Chain .then to read the JSON, check response.ok before trusting it, and pass an options object to POST, PUT or DELETE.

![Cheat sheet: Fetch](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/e9bb464add584bc684a5510103fb15a1.webp)

- Category: JavaScript
- Level: Apprentice
- Tags: .catch(), .then(), Fetch API, JavaScript, JSON.stringify(), Promise, Response Object, rest-api
- Updated: November 3, 2026

Source: https://www.ask-codey.com/cheat-sheets/calling-apis-from-javascript-fetch-cheat-sheet
