---
title: "Discussion on \"A cheat sheet for JavaScript's fetch API\" | Hashnode"
description: "Discussion on \"A cheat sheet for JavaScript's fetch API\". Originally Posted on realpythonproject.com\nConnect with me on LinkedIn, Twitter\n\nCheck out the cheatsheet for Axios\nThe fetch API in JavaScript is used to make requests. It can also be used to consume APIs. Let's take a look at some of the most commo..."
url: "https://hashnode.com/posts/a-cheat-sheet-for-javascripts-fetch-api/60d8d801de92ef110afdfc9f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [A cheat sheet for JavaScript's fetch API](https://realpythonproject.hashnode.dev/a-cheat-sheet-for-javascripts-fetch-api?utm_source=hashnode&utm_medium=feed)

Originally Posted on realpythonproject.com Connect with me on LinkedIn, Twitter Check out the cheatsheet for Axios The fetch API in JavaScript is used to make requests. It can also be used to consume APIs. Let's take a look at some of the most commo...

Jun 27, 2021 · 3 min read · realpythonproject.hashnode.dev  
Updated Jun 30, 2021  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#apis](https://hashnode.com/tag/apis)
-   [#fetch](https://hashnode.com/tag/fetch)
-   [#codenewbies](https://hashnode.com/tag/codenewbies)

## Written by

[Rahul Banerjee](https://hashnode.com/@rahul2699)

@rahul2699 · Toronto, Canada

  
[View profile](https://hashnode.com/@rahul2699)

## Responses 2

Markdown supported · ⌘↵ to post

[Ákos Kőműves](https://hashnode.com/@akoskm)

[Jun 28, 2021](https://hashnode.com/posts/a-cheat-sheet-for-javascripts-fetch-api/60d8d801de92ef110afdfc9f/comment/60d97be368364a2e7b2cdb13)

How node-fetch compares to axios?

[Rahul Banerjee](https://hashnode.com/@rahul2699)

[Jun 28, 2021](https://hashnode.com/posts/a-cheat-sheet-for-javascripts-fetch-api/60d8d801de92ef110afdfc9f/comment/60d97be368364a2e7b2cdb13#reply-60d9baab68364a2e7b2ce57c)

I have not used axios much so can’t comment on that.

[Francisco Felipe de Lima](https://hashnode.com/@Felipedelima123)

[Jun 28, 2021](https://hashnode.com/posts/a-cheat-sheet-for-javascripts-fetch-api/60d8d801de92ef110afdfc9f/comment/60d97be368364a2e7b2cdb13#reply-60da38b7703d372ea06c8e10)

I prefer Axios over fetch, it is pretty light, performatic and already do the conversion to JSON automatically. You can also create a single instance e reuse and has something called interceptors that is amazing. For me is much better.

[Chris Bongers](https://hashnode.com/@dailydevtips)

[Jun 28, 2021](https://hashnode.com/posts/a-cheat-sheet-for-javascripts-fetch-api/60d8d801de92ef110afdfc9f/comment/60d95a9fde92ef110afe0410)

Nice one!

I have to keep looking up features of the Fetch API, so thank you for documenting it 🤘
