Learn Fetch API In 6 Minutes
Vložit
- čas přidán 14. 10. 2019
- Accessing data from an API is one of the most common things you will do in web development, and the way to access APIs is with fetch. Fetch is function built into JavaScript that allows you to query any URL/API to get back data. The most important part is that fetch is asynchronous so it will run in the background and let you know when it finishes using promises. In this video I will show you exactly how to use fetch, and all of the common mistakes people make using fetch so you can get up and running in just six minutes.
📚 Materials/References:
Fetch Article: blog.webdevsimplified.com/202...
Learn Promises In 10 Minutes Video: • JavaScript Promises In...
Async Await Tutorial: • JavaScript Async Await
🧠 Concepts Covered:
- What the fetch API is
- How to use the fetch API
- How to handle API response errors
- How to use JSON data with fetch
🌎 Find Me Here:
My Courses: courses.webdevsimplified.com
Patreon: / webdevsimplified
Twitter: / devsimplified
Discord: / discord
GitHub: github.com/WebDevSimplified
CodePen: codepen.io/WebDevSimplified
#Fetch #WDS #JavaScript
Be like Fetch, always succeed even when you fail
Two comment bots
oof
The Trump of JavaScript. lol
That's deep man
@@outside7 no
@@terry9873 yes
Best 6 mins of CZcams that I watched today
Thank you so much!
Programming with Peter 6:35
true
Agreed :)
Indeed it is
At last someone who explains the reason behind every action. Most of the instructors just want us to copy paste and do not explain why we need to do sth, and what is the meaning of the action. Great Job 👍
Spot on!
I said this same thing 1/4 way through a previous vid.
exactly so !
If you have 6 mins to spend, spend it on this video!
Man! This is really web dev simplified! I enjoyed this video so much and it clarifies everything!
Simple, clear and straight to the point. Excellent video.
100% the best JS videos I've found on CZcams. You got me hooked with the Promise video, and now here we are! Thank you!!
Its so amazing that I have been struggling with promises and the fetch api all week, reading docs and trying to grasp it, then this video shows up and clears all my problems away. Forever grateful to you Kyle! You gained my support today!
Took 6 minutes and now I can use Fetch for all of my JavaScript projects. Thank you!
Exactly
Great video, much better than reading the documentation. One thing that would also be interesting is if you showed how to use async and await with fetch. Keep up the good work :)
the mighty solution for every problem you are actually one of the best people who explain the problem or teach others in fantastic way which make the listener not only know the answer but to understand the details thank you I wish the best to you
Your videos are invaluable, the direct effect you are having is bringing novice developers up the notches to an intermediate / advanced level. I have been using the fetch() method for a while now, but the in depth analasyis lets me connect the dots, enables me to become a better developer. Keep on going!
That is awesome! The goal with my channel is to help people understand new technology and tools better than they already do and I am so glad I am able to do that for you.
I just wanted to say thank you so much for helping me understand these concepts in such a simple manner!
recently got into this channel and watching your recent videos compared to something older its amazing how far you've come. thank you for everything sensei
Glad I found you. Never stop making these. Thanks :)
Really appreciate your videos man, so thankful for you giving them away for free. I'm already enrolled in another course, but if I'm not satisfied with what I'm going to learn about react I'll check out your course on that - I like the way you describe things so it's easy to understand of how it all comes together.
Exactly what I was thinking
This channel is really helpful for people like me who had studied some web stuff before but didn't keep in touch with it. I really don't want to go over hours of lectures studying what I already know but have forgotten. Great resource.
Dude, youre a life saver. Best Channel for Webdevelopment on CZcams.
Man, I lost hours today following a tutorial that has a mistake (or lack of explaining) but this was awsome to understand and follow along.
I made a post in my personal blog linking back to you.
Great content!!
Sometimes it takes someone to use slightly different words in order for the explanation to land. I think you have a gift. Well done on this video, and step by step explaining the double promise in fetch. Also, simply by saying "you can use asynce/await OR then" you put so much clarity into my mind. Keep going.
I have been following your videos for a long time now, your voice is very soothing to hear man!
I love your videos! They are short, very well explained and really helpful!!!
Jesus, You're a genius! Thank you so much for the video!! Finally understood it all
Absolute legend, banged my head on the keyboard for hours, until I found out I had to set the headers as application/json. Thank you.
The links to other videos were SUPER helpful. Thanks, man!
Everything I search for as I learn Javascript,, this guy has the best videos. Thanks for all of the help man!!!
the best and most informative 6 minutes ever spent on CZcams
the most simple, easy to understand explanation of fetch I've seen! Nice job 👏
Thanks!
Bravo!
My first ever video of your channel. Well explained in actually 6 mins. No bullshit.
PS: This is the first time I came across fetch. I have been using axios but NOW I think fetch is also nice!
Short and sweet, nice!
You have the gift of making things understandable! Thank you for your help!
Clear, concise, and accurate - another great video - thanks!
Kyle, you're also one of the few youtubers who actually includes the materials referenced in the video in the description! I know it's an easy thing to forget, but I appreciate the attention to detail :)
since I have college and programming is something I do on the side, I never really have enough time to learn about this stuff. But this 6-minute video was just what I needed, short and straight to the point while also managing to explain what everything does. Thanks so much!
Thx Kyle! As always, wonderful content!
Kyle you are such a great teacher
bless you!!
Great video and thank you for going through the potential bugs rather than just showing working code. Learnt a lot.
Your style of teaching is fantastic. I hope somebody gave you some kind of award, you deserve it.
The perfect explanation. long live mate. you are probably the best and the most thorough professional who has the ability to explain in accurate details.
simple and to the point!
Thanks, man!
bro im watching many of your videos and im loving you more every time. Thank you so much.
Best video that made me understand every thing about fetch because every time after watching a lot of projects when I write something it doesn't work as because I mess up the fetch statement....
Thank Kyle! You were very helpful as always! You're very pedagogue
Kyle makes everything so easy to learn
i have never seen a motivated helper like you. may god bless you. You made me understand what I was confused about it. the best video i've ever seen.
Bro your videos are absolutely awsome! I hope your channel keeps growing up! Keep it up.
OMG I quickly wanted to revise JS Fetch very quickly and this helped a lot. Awesome Video thanks!
One of the best tutorial of Fetching datta from API , i hhave searchout many here on google and youtube ,Really you are the best one
best java script channel in youtube. thank you very much. i actually wathed multiple videos on this before. you were the only one who expalined it very well.
Excellent videos. Love the conceptual depth and fluid presentation style.
This was super helpful, thank you!
Clear and concise. It would be great if you can explain how to send form data using the FormData object too and any alternate ways of sending form data to an endpoint
Dudeeeeeee straight to the point, love it!
Oh my, I really love this simplication 😍😍I've been trying to understand this from more than 3 videos but I was just watching and not even understanding it. Loved how you really break this down from the start. Thanks sooo much Dev 😄😄
Simple and clear explanation. Thank you.
Clear and straight forward. Thanks
Your explanation is absolutely amazing, thank you!
Such a great video man! Hair is looking super dope too!
Great tutorial and very clear!... Turns out it's not what I needed in this instance (so good job I watched it) but definitely useful for future road blocks. I've subscribed.
That was a very skillful demonstration; you are a wonderful teacher. Thank you.
Straight on point tutorial! Great Job!
Simple and efficient. The best explanation about fetch i've ever seen...
Great work actually explaining the reason for the syntax and process in using APIs, this video saved me hours.
Great tutorial. It helped me to understand how actually fetch works. Thank you
The best video on Fetch I have ever watched.
Looks right into my soul, "I'm gonna steal that" TT
I love that you are sensitive to developers time
thanks man, I was so confused why api error would return a success case, now I get it
Very concise and right on point! Nice video.
Simple and direct. Thank you, bro.
Thank you, I was struggling at header and body, this video is like my life savior
This content should get you more views. Thank you brother. Great reviewing content too.
How did u maintain that delivery speed with so much clarity.Simply amazing.
Insane stuff dude! Thank you so mucn Kyle
Another great video. Thank you!
Extremely informative. Thanks!
In 6 minutes you covered basically everything you need to know about fetch! I love how explained the corner cases for every line (like why we use JSON.stringify or how .catch() only catches fetch-related errors) potentially saving us from many unexplained bugs and sleepless nights! Thank you so much, Kyle! You're the GOAT!
This is by far the best tuto I've ever seen
Eveything is detailed under just 6 minutes,
Keep it up G👌👌👌👌
Awesome!!! Thanks for this clear explanation! :)
This guy's channel is awesome. Taking a $14,000 course right now and I still come to his videos for clarification.
Super useful. Helped me on my path to learning how to query a database through a server.
Hi Kyle, My name is Omar. I have been following you for 1.5 years.I knew lots of things from you. Thank you so much for your all Videos 😍😍
srs this is the best channel if i need to just learn a quick specific thing
This was very helpful, thank you very much!
super helpful and easy to follow again, thanks.
Literally the best code tutorials on the internet from this guy. SO GOOD!
Anyone tellme, we are checking if the response is ok in then but we are removing the res.Json. at 4:24 the data is undefined even when we are getting the successful fetch. How to get the data in json format
Great tutorial! Thanks so much!
Thank you so much you have helped me solve a problem ive been stuck on for like an hour
I love love love your content. Thank you for what you do ❤
Thank you, This was extremelly helpful :)
This is awesome 👍 content summarized in 6 min 👏🔥🔥
thanks Kyle. your explanations are the best
Thank you so much bro!!! I asked this guy to help me with the .then() method and he made a whole video!!! thank you so much. now i understand what goes on behind the scenes.
Thank you, sir, for not trying to blind me with science. It is convoluted enough as it is, but you made it make sense.
concise and clear ... thank you
I enjoyed this video indeed. Great job at simplifying it
simplified for me, thanks Kyle
Many thanks for explaining this topic so well. It has just solved my 2 week struggle with Fetch👍
So simple and clear, exactly what I needed. Thank you!!
Not exactly what I was looking for, but this is a great Video indeed.