Тёмный

Learn Fetch API In 6 Minutes 

Web Dev Simplified
Подписаться 1,6 млн
Просмотров 1,2 млн
50% 1

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

Опубликовано:

 

14 окт 2019

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 661   
@sergiearruda443
@sergiearruda443 3 года назад
Be like Fetch, always succeed even when you fail
@Rentaro_dev
@Rentaro_dev 3 года назад
Two comment bots oof
@outside7
@outside7 2 года назад
The Trump of JavaScript. lol
@FrankUnderwoood
@FrankUnderwoood 2 года назад
That's deep man
@terry9873
@terry9873 2 года назад
@@outside7 no
@anonimous4798
@anonimous4798 2 года назад
@@terry9873 yes
@ProgrammingwithPeter
@ProgrammingwithPeter 4 года назад
Best 6 mins of RU-vid that I watched today
@WebDevSimplified
@WebDevSimplified 4 года назад
Thank you so much!
@whitecircle626
@whitecircle626 4 года назад
Programming with Peter 6:35
@rameshsrivastavachandra
@rameshsrivastavachandra 4 года назад
true
@FuknNoName
@FuknNoName 3 года назад
Agreed :)
@FurTuna13
@FurTuna13 3 месяца назад
Indeed it is
@plaguegames3556
@plaguegames3556 3 года назад
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 👍
@BrunoMCDowell
@BrunoMCDowell 2 года назад
Spot on!
@djkly1
@djkly1 2 года назад
I said this same thing 1/4 way through a previous vid.
@mohammadhisbullah9332
@mohammadhisbullah9332 8 месяцев назад
exactly so !
4 года назад
Man! This is really web dev simplified! I enjoyed this video so much and it clarifies everything!
@alexzimmerman3447
@alexzimmerman3447 Год назад
100% the best JS videos I've found on RU-vid. You got me hooked with the Promise video, and now here we are! Thank you!!
@bmac-cz6rk
@bmac-cz6rk 4 года назад
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!
@marlish6235
@marlish6235 2 года назад
Simple, clear and straight to the point. Excellent video.
@rishabbhattachaya6676
@rishabbhattachaya6676 7 месяцев назад
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
@haseebpavaratty6249
@haseebpavaratty6249 4 года назад
Glad I found you. Never stop making these. Thanks :)
@noveltechmedia
@noveltechmedia 4 года назад
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 :)
@abdelazizelshrkawy5193
@abdelazizelshrkawy5193 Год назад
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
@kvncnls
@kvncnls 3 года назад
Took 6 minutes and now I can use Fetch for all of my JavaScript projects. Thank you!
@randalfjohn9848
@randalfjohn9848 2 года назад
Exactly
@Ipdxcreative
@Ipdxcreative 3 года назад
I just wanted to say thank you so much for helping me understand these concepts in such a simple manner!
@alexlindgren1
@alexlindgren1 3 года назад
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.
@kurtheimerman8267
@kurtheimerman8267 2 года назад
Exactly what I was thinking
@scyfox.
@scyfox. 2 года назад
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!!
@SuperQuwertz
@SuperQuwertz 3 года назад
Dude, youre a life saver. Best Channel for Webdevelopment on RU-vid.
@ghanashrim2839
@ghanashrim2839 3 года назад
I have been following your videos for a long time now, your voice is very soothing to hear man!
@sajaljaiswal1659
@sajaljaiswal1659 2 года назад
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.
@taylorgraham2906
@taylorgraham2906 4 года назад
The links to other videos were SUPER helpful. Thanks, man!
@petertester915
@petertester915 4 года назад
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!
@WebDevSimplified
@WebDevSimplified 4 года назад
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.
@cacho71982
@cacho71982 4 года назад
I love your videos! They are short, very well explained and really helpful!!!
@manasnagelia
@manasnagelia 2 года назад
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.
@mikeshilovski1512
@mikeshilovski1512 4 года назад
Jesus, You're a genius! Thank you so much for the video!! Finally understood it all
@thomasviles8158
@thomasviles8158 3 года назад
Everything I search for as I learn Javascript,, this guy has the best videos. Thanks for all of the help man!!!
@StefanVanderVyver
@StefanVanderVyver Год назад
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.
@mactavish7287
@mactavish7287 4 года назад
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!
@yasirtahirkheli74
@yasirtahirkheli74 Год назад
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.
@debopamgupta
@debopamgupta 4 года назад
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....
@lidestudios5094
@lidestudios5094 Год назад
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!
@uulecrocodile8437
@uulecrocodile8437 Год назад
the best and most informative 6 minutes ever spent on RU-vid
@Andy-fs4bb
@Andy-fs4bb Год назад
Clear, concise, and accurate - another great video - thanks!
@SJY11
@SJY11 8 месяцев назад
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 :)
@ricardoaguiar616
@ricardoaguiar616 2 года назад
You have the gift of making things understandable! Thank you for your help!
@martini9388
@martini9388 6 месяцев назад
Thx Kyle! As always, wonderful content!
@arashaadd
@arashaadd 4 года назад
bro im watching many of your videos and im loving you more every time. Thank you so much.
@cllhicqani9678
@cllhicqani9678 Год назад
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.
@SnappyScience
@SnappyScience Год назад
Great video and thank you for going through the potential bugs rather than just showing working code. Learnt a lot.
@SuboptimalEng
@SuboptimalEng 4 года назад
Short and sweet, nice!
@davidspot191
@davidspot191 3 месяца назад
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 😄😄
@jumboliah13
@jumboliah13 6 месяцев назад
Your style of teaching is fantastic. I hope somebody gave you some kind of award, you deserve it.
@EvertvanIngen
@EvertvanIngen 3 года назад
Looks right into my soul, "I'm gonna steal that" TT
@user-yo2xf3jc3f
@user-yo2xf3jc3f 7 месяцев назад
Straight on point tutorial! Great Job!
@ranamuzamal9655
@ranamuzamal9655 3 года назад
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
@cristi8997
@cristi8997 11 месяцев назад
thanks man, I was so confused why api error would return a success case, now I get it
@paulmcok
@paulmcok 3 года назад
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.
@CarlosHasAIdea
@CarlosHasAIdea 4 года назад
This content should get you more views. Thank you brother. Great reviewing content too.
@ayMillmusic
@ayMillmusic 7 месяцев назад
Such a great video man! Hair is looking super dope too!
@pysof
@pysof 3 года назад
Bro your videos are absolutely awsome! I hope your channel keeps growing up! Keep it up.
@yeshwanthtoluva4278
@yeshwanthtoluva4278 Год назад
simple and to the point! Thanks, man!
@negoy100
@negoy100 3 года назад
Excellent videos. Love the conceptual depth and fluid presentation style.
@MrStuartp
@MrStuartp 2 года назад
Great work actually explaining the reason for the syntax and process in using APIs, this video saved me hours.
@the_yugandharr
@the_yugandharr Год назад
Insane stuff dude! Thank you so mucn Kyle
@rylan_mcmullan
@rylan_mcmullan 3 года назад
This was super helpful, thank you!
@jgwilk
@jgwilk 4 года назад
the most simple, easy to understand explanation of fetch I've seen! Nice job 👏
@WebDevSimplified
@WebDevSimplified 4 года назад
Thanks!
@digigoliath
@digigoliath 4 года назад
If you have 6 mins to spend, spend it on this video!
@lititiakorau9487
@lititiakorau9487 2 года назад
Kyle you are such a great teacher bless you!!
@fodecissokho9918
@fodecissokho9918 Год назад
This is by far the best tuto I've ever seen Eveything is detailed under just 6 minutes, Keep it up G👌👌👌👌
@darryl8349
@darryl8349 Год назад
Thank you so much you have helped me solve a problem ive been stuck on for like an hour
@SJY11
@SJY11 8 месяцев назад
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!
@bintoucisse2415
@bintoucisse2415 Год назад
Thank Kyle! You were very helpful as always! You're very pedagogue
@gearzanimation
@gearzanimation 2 года назад
Literally the best code tutorials on the internet from this guy. SO GOOD!
@dharshan5309
@dharshan5309 2 года назад
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
@nomanmajeed1807
@nomanmajeed1807 4 года назад
Great tutorial. It helped me to understand how actually fetch works. Thank you
@ameyajoshi5673
@ameyajoshi5673 Год назад
OMG I quickly wanted to revise JS Fetch very quickly and this helped a lot. Awesome Video thanks!
@keronwilliams5392
@keronwilliams5392 2 года назад
Dudeeeeeee straight to the point, love it!
@fabiofreitas9304
@fabiofreitas9304 3 года назад
Simple and efficient. The best explanation about fetch i've ever seen...
@pale-face
@pale-face 2 года назад
The best video on Fetch I have ever watched.
@FaLkraydz
@FaLkraydz 4 года назад
Simple and direct. Thank you, bro.
@timucintarakc2281
@timucintarakc2281 Год назад
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.
@michaelcarnevale5620
@michaelcarnevale5620 3 года назад
srs this is the best channel if i need to just learn a quick specific thing
@davidjustice2323
@davidjustice2323 4 года назад
Extremely informative. Thanks!
@phamtienthinh1795
@phamtienthinh1795 9 месяцев назад
Thank you, I was struggling at header and body, this video is like my life savior
@pvsagar92
@pvsagar92 4 года назад
Clear and straight forward. Thanks
@andrewday7799
@andrewday7799 4 года назад
I love that you are sensitive to developers time
@AnyThingCreativex
@AnyThingCreativex 4 года назад
This was very helpful, thank you very much!
@danyleveque892
@danyleveque892 3 года назад
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
@chrisryu2179
@chrisryu2179 3 года назад
Very concise and right on point! Nice video.
@anollipian
@anollipian 2 года назад
Your explanation is absolutely amazing, thank you!
@mutley11
@mutley11 2 года назад
That was a very skillful demonstration; you are a wonderful teacher. Thank you.
@shanerobertson1845
@shanerobertson1845 3 года назад
Jeez, thank you for breaking this down!!!
@mobigeek666
@mobigeek666 2 года назад
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.
@FireHazardz101
@FireHazardz101 Год назад
I love love love your content. Thank you for what you do ❤
@vidumini23
@vidumini23 4 года назад
Simple and clear explanation. Thank you.
@moeyali123
@moeyali123 10 месяцев назад
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.
@faisalmehmood5375
@faisalmehmood5375 3 года назад
Super useful. Helped me on my path to learning how to query a database through a server.
@arifsaleem-7377
@arifsaleem-7377 10 месяцев назад
concise and clear ... thank you
@omarpervez5657
@omarpervez5657 2 года назад
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 😍😍
@ArtVandelayInc
@ArtVandelayInc 3 года назад
I enjoyed this video indeed. Great job at simplifying it
@eminaliyev3989
@eminaliyev3989 3 года назад
Perfect! Thank you so much!
@aabid3375
@aabid3375 4 года назад
How did u maintain that delivery speed with so much clarity.Simply amazing.
@mohamedyaseen3462
@mohamedyaseen3462 4 года назад
Completely understandable... Thank you
@MattJohnson604
@MattJohnson604 4 года назад
Great tutorial! Thanks so much!
@rebeccawambui8143
@rebeccawambui8143 4 года назад
This is awesome 👍 content summarized in 6 min 👏🔥🔥
@othmaneerrarhbi3466
@othmaneerrarhbi3466 2 года назад
Thanks a lot for the video !
@kerimtim
@kerimtim 2 года назад
Kyle makes everything so easy to learn
@jaimearriola1495
@jaimearriola1495 3 года назад
Awesome!!! Thanks for this clear explanation! :)
@deboragrano2426
@deboragrano2426 Год назад
Wow I understood this in 6 minutes, amazing
@helloworld9018
@helloworld9018 4 месяца назад
This one really helped me, thanks.
@mariosasic4251
@mariosasic4251 Год назад
helped me a lot, thanks!
@rickysahani1258
@rickysahani1258 3 года назад
Not exactly what I was looking for, but this is a great Video indeed.
@evanoffhandson7067
@evanoffhandson7067 9 месяцев назад
This guy's channel is awesome. Taking a $14,000 course right now and I still come to his videos for clarification.
Далее
How to FETCH data from an API using JavaScript ↩️
14:17
1.1: fetch() - Working With Data & APIs in JavaScript
15:39
Learn Flexbox in 15 Minutes
15:12
Просмотров 1,1 млн
What is a REST API?
9:12
Просмотров 1,5 млн
JavaScript ES6 Modules
7:39
Просмотров 448 тыс.
Fetch API with Async/Await (GET, POST, PUT, DELETE)
14:55
JavaScript Cookies vs Local Storage vs Session Storage
14:28
Fetching Data in React - Complete Tutorial
29:10
Просмотров 97 тыс.
APIs Explained (in 4 Minutes)
3:57
Просмотров 717 тыс.
Now you know fetch in javascript | chai aur #javascript
18:37