<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/data-fetching-fetch-api-approach-vs-swr-approach-th6uxkeip" -->

---
title: Data Fetching: FETCH API Approach vs SWR Approach
description: Fetching is a method of receiving and sending data provided to us by JavaScript. The Fetch API method has an asynchronous nature. It is not a method that can...
canonical: https://daily.dev/posts/data-fetching-fetch-api-approach-vs-swr-approach-th6uxkeip
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Data Fetching: FETCH API Approach vs SWR Approach | daily.dev
og:description: Fetching is a method of receiving and sending data provided to us by JavaScript. The Fetch API method has an asynchronous nature. It is not a method that can...
og:url: https://daily.dev/posts/data-fetching-fetch-api-approach-vs-swr-approach-th6uxkeip
og:image: https://api.daily.dev/og/posts/TH6uxkEip.png
og:image:alt: Data Fetching: FETCH API Approach vs SWR Approach
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Data Fetching: FETCH API Approach vs SWR Approach

**[Medium](https://daily.dev/sources/medium_js)** · 7 min read · 73 upvotes · 4 comments

## Summary

Fetching is a method of receiving and sending data provided to us by JavaScript. The Fetch API method has an asynchronous nature. It is not a method that can be used alone as a substitute for FETCH API. In the Single Page Application method, there is usually no need to load a web page from scratch.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://medium.com/cstech/data-fetching-fetch-api-approach-vs-swr-approach-c2272dff85b8?source=rss------javascript-5>

## Community discussion

Top comments from developers on daily.dev.

**@thesourcepedia** · 2 upvotes

> this is something I know when working in PWA, its good technique for caching.

**@tugrulyildirim** · 2 upvotes

> I didn't know SWR library, thx for sharing the article. Have a great day !

**@ooguzyuksel** · 1 upvotes

> Thanks a lot for your comments guys! You made me proud :)

**@josephciullo** · 1 upvotes

> Good article!

---

Tags: [#react](https://daily.dev/tags/react), [#github](https://daily.dev/tags/github), [#database](https://daily.dev/tags/database)

[View this post on daily.dev](https://daily.dev/posts/data-fetching-fetch-api-approach-vs-swr-approach-th6uxkeip)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Data Fetching: FETCH API Approach vs SWR Approach","url":"https://daily.dev/posts/data-fetching-fetch-api-approach-vs-swr-approach-th6uxkeip","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/data-fetching-fetch-api-approach-vs-swr-approach-th6uxkeip"},"datePublished":"2022-12-29T09:09:38.263Z","dateModified":"2022-12-29T09:09:38.259Z","description":"Fetching is a method of receiving and sending data provided to us by JavaScript. The Fetch API method has an asynchronous nature. It is not a method that can...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/5f4c789ea63f09ce8f656f216bf1d202","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/5f4c789ea63f09ce8f656f216bf1d202","isAccessibleForFree":true,"articleSection":"Medium","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Medium","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/medium","url":"https://daily.dev/sources/medium_js"},"commentCount":4,"discussionUrl":"https://daily.dev/posts/data-fetching-fetch-api-approach-vs-swr-approach-th6uxkeip","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":73},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":4}],"keywords":"react,github,database","timeRequired":"PT7M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Medium","item":"https://daily.dev/sources/medium_js"},{"@type":"ListItem","position":3,"name":"Data Fetching: FETCH API Approach vs SWR Approach"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/data-fetching-fetch-api-approach-vs-swr-approach-th6uxkeip","comment":[{"@type":"Comment","text":"this is something I know when working in PWA, its good technique for caching.","datePublished":"2022-12-30T08:34:47.050Z","url":"https://daily.dev/posts/TH6uxkEip#c-k_eJ4PXmA","author":{"@type":"Person","name":"Piyush Goyani","url":"https://daily.dev/thesourcepedia","image":"https://avatars2.githubusercontent.com/u/18528418?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2}},{"@type":"Comment","text":"I didn’t know SWR library, thx for sharing the article. Have a great day !","datePublished":"2022-12-30T06:23:11.946Z","url":"https://daily.dev/posts/TH6uxkEip#c-ny5oyhXJq","author":{"@type":"Person","name":"tugrulyildirim.com","url":"https://daily.dev/tugrulyildirim","image":"https://avatars1.githubusercontent.com/u/58388980?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2}},{"@type":"Comment","text":"Thanks a lot for your comments guys! You made me proud :)","datePublished":"2023-01-01T21:22:45.504Z","url":"https://daily.dev/posts/TH6uxkEip#c-mwPR5mGUj","author":{"@type":"Person","name":"Oguzhan Yuksel","url":"https://daily.dev/ooguzyuksel","image":"https://avatars.githubusercontent.com/u/56235622?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"Good article!","datePublished":"2023-01-02T10:45:01.676Z","url":"https://daily.dev/posts/TH6uxkEip#c-9rP5V4tJf","author":{"@type":"Person","name":"Giuseppe Ciullo","url":"https://daily.dev/josephciullo","image":"https://media.daily.dev/image/upload/s--ZWJVS9qX--/f_auto/v1729860558/avatars/avatar_NqpuiWuzfqEhP88PKSSrA"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}}]}
```

