Learn Fetch API In 6 Minutes
HTML-код
- Опубликовано: 14 окт 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 RUclips 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 !
Man! This is really web dev simplified! I enjoyed this video so much and it clarifies everything!
100% the best JS videos I've found on RUclips. 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!
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 :)
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
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
Simple, clear and straight to the point. Excellent video.
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
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.
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.
Glad I found you. Never stop making these. 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!
I just wanted to say thank you so much for helping me understand these concepts in such a simple manner!
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!!!
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.
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 😄😄
Dude, youre a life saver. Best Channel for Webdevelopment on RUclips.
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 perfect explanation. long live mate. you are probably the best and the most thorough professional who has the ability to explain in accurate details.
Took 6 minutes and now I can use Fetch for all of my JavaScript projects. Thank you!
Exactly
Bro your videos are absolutely awsome! I hope your channel keeps growing up! Keep it up.
Jesus, You're a genius! Thank you so much for the video!! Finally understood it all
bro im watching many of your videos and im loving you more every time. Thank you so much.
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 :)
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.
Great video and thank you for going through the potential bugs rather than just showing working code. Learnt a lot.
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.
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....
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
Such a great video man! Hair is looking super dope too!
OMG I quickly wanted to revise JS Fetch very quickly and this helped a lot. Awesome Video thanks!
You have the gift of making things understandable! Thank you for your help!
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!
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.
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.
Excellent videos. Love the conceptual depth and fluid presentation style.
This content should get you more views. Thank you brother. Great reviewing content too.
This is by far the best tuto I've ever seen
Eveything is detailed under just 6 minutes,
Keep it up G👌👌👌👌
Great work actually explaining the reason for the syntax and process in using APIs, this video saved me hours.
Your style of teaching is fantastic. I hope somebody gave you some kind of award, you deserve it.
Short and sweet, nice!
Thx Kyle! As always, wonderful content!
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.
the best and most informative 6 minutes ever spent on RUclips
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!
I am in a bootcamp and your videos are a crucial part of my understanding the lectures .. You are a truly amazing teacher. May I ask you what equipment you are using for your production (Camera and Microphone?) Thank you for all your work. I will be signing up for your courses as soon as I get to breath and slow down with the bootcamp.
Awesome dude, I learnt the very basics of JS last weekend and now im trying to learn more of the fundamentals to start using it properly.
Simple and efficient. The best explanation about fetch i've ever seen...
the most simple, easy to understand explanation of fetch I've seen! Nice job 👏
Thanks!
Kyle you are such a great teacher
bless you!!
Insane stuff dude! Thank you so mucn Kyle
Great tutorial. It helped me to understand how actually fetch works. Thank you
simple and to the point!
Thanks, man!
Straight on point tutorial! Great Job!
Thank Kyle! You were very helpful as always! You're very pedagogue
How did u maintain that delivery speed with so much clarity.Simply amazing.
That was a very skillful demonstration; you are a wonderful teacher. Thank you.
Thank you, sir, for not trying to blind me with science. It is convoluted enough as it is, but you made it make sense.
Very concise and right on point! Nice video.
Super useful. Helped me on my path to learning how to query a database through a server.
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
Thank you, I was struggling at header and body, this video is like my life savior
This is awesome 👍 content summarized in 6 min 👏🔥🔥
This was super helpful, thank you!
Your explanation is absolutely amazing, thank you!
Many thanks for explaining this topic so well. It has just solved my 2 week struggle with Fetch👍
I enjoyed this video indeed. Great job at simplifying it
thanks man, I was so confused why api error would return a success case, now I get it
Kyle makes everything so easy to learn
This was very helpful, thank you very much!
srs this is the best channel if i need to just learn a quick specific thing
I love love love your content. Thank you for what you do ❤
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!
Not exactly what I was looking for, but this is a great Video indeed.
Extremely informative. Thanks!
Great video, loved it, please keep doing great work
Simple and direct. Thank you, bro.
Looks right into my soul, "I'm gonna steal that" TT
Great content, straight to the point, big ups
Thank you so much you have helped me solve a problem ive been stuck on for like an hour
Awesome!!! Thanks for this clear explanation! :)
your videos always let me learn new. even though i thought i know this point.
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 😍😍
The best video on Fetch I have ever watched.
Subscribed. The tips presented are well and useful. What's the model of your webcast microphone? The audio is really good and your voice is easy to the ears.
Nice fully explain and smooth, love your series Learn X in Y minutes
Thank you. Great tutorial! Any beginner Fetch API Tutorials for displaying random images?
Simple and clear explanation. Thank you.
Clear and straight forward. Thanks
Another great video. Thank you!
Jeez, thank you for breaking this down!!!
I love that you are sensitive to developers time