# Getting Data with fetch

fetch sends a request to a web API and gives back a promise of the response; await it, then await response.json() to turn the JSON answer into a JavaScript value your page can use.

![Cheat sheet: Getting Data with fetch](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/10/75aed304d08949e3b66b0b686900c7fb.webp)

- Category: JavaScript
- Level: Apprentice
- Tags: async Function, await, Fetch API, JavaScript, Response Object, rest-api, Template Literal, web-development
- Updated: November 1, 2026

Source: https://www.ask-codey.com/cheat-sheets/javascript-fetch-getting-data-cheat-sheet
