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

Комментарии • 661

  • @sergiearruda443
    @sergiearruda443 3 года назад +1757

    Be like Fetch, always succeed even when you fail

  • @ProgrammingwithPeter
    @ProgrammingwithPeter 4 года назад +447

    Best 6 mins of RUclips that I watched today

  • @plaguegames3556
    @plaguegames3556 3 года назад +331

    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 👍

  •  4 года назад +18

    Man! This is really web dev simplified! I enjoyed this video so much and it clarifies everything!

  • @alexzimmerman3447
    @alexzimmerman3447 Год назад +2

    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!!

  • @bmac-cz6rk
    @bmac-cz6rk 4 года назад +7

    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!

  • @noveltechmedia
    @noveltechmedia 4 года назад +33

    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 :)

  • @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

  • @abdelazizelshrkawy5193
    @abdelazizelshrkawy5193 Год назад +7

    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

  • @marlish6235
    @marlish6235 2 года назад +10

    Simple, clear and straight to the point. Excellent video.

  • @alexlindgren1
    @alexlindgren1 3 года назад +6

    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.

  • @petertester915
    @petertester915 4 года назад +33

    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 года назад +24

      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.

  • @sajaljaiswal1659
    @sajaljaiswal1659 2 года назад +39

    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.

  • @haseebpavaratty6249
    @haseebpavaratty6249 4 года назад +1

    Glad I found you. Never stop making these. Thanks :)

  • @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!

  • @Ipdxcreative
    @Ipdxcreative 3 года назад +3

    I just wanted to say thank you so much for helping me understand these concepts in such a simple manner!

  • @ghanashrim2839
    @ghanashrim2839 3 года назад +1

    I have been following your videos for a long time now, your voice is very soothing to hear man!

  • @cacho71982
    @cacho71982 4 года назад

    I love your videos! They are short, very well explained and really helpful!!!

  • @scyfox.
    @scyfox. 2 года назад +1

    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!!

  • @StefanVanderVyver
    @StefanVanderVyver Год назад +24

    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.

  • @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 😄😄

  • @SuperQuwertz
    @SuperQuwertz 3 года назад +1

    Dude, youre a life saver. Best Channel for Webdevelopment on RUclips.

  • @taylorgraham2906
    @taylorgraham2906 4 года назад

    The links to other videos were SUPER helpful. Thanks, man!

  • @thomasviles8158
    @thomasviles8158 3 года назад

    Everything I search for as I learn Javascript,, this guy has the best videos. Thanks for all of the help man!!!

  • @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.

  • @kvncnls
    @kvncnls 3 года назад +50

    Took 6 minutes and now I can use Fetch for all of my JavaScript projects. Thank you!

  • @pysof
    @pysof 3 года назад

    Bro your videos are absolutely awsome! I hope your channel keeps growing up! Keep it up.

  • @mikeshilovski1512
    @mikeshilovski1512 4 года назад +5

    Jesus, You're a genius! Thank you so much for the video!! Finally understood it all

  • @arashaadd
    @arashaadd 4 года назад

    bro im watching many of your videos and im loving you more every time. Thank you so much.

  • @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 :)

  • @paulmcok
    @paulmcok 3 года назад +1

    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.

  • @SnappyScience
    @SnappyScience Год назад

    Great video and thank you for going through the potential bugs rather than just showing working code. Learnt a lot.

  • @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.

  • @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....

  • @ranamuzamal9655
    @ranamuzamal9655 3 года назад +1

    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

  • @ayMillmusic
    @ayMillmusic 7 месяцев назад

    Such a great video man! Hair is looking super dope too!

  • @ameyajoshi5673
    @ameyajoshi5673 Год назад

    OMG I quickly wanted to revise JS Fetch very quickly and this helped a lot. Awesome Video thanks!

  • @ricardoaguiar616
    @ricardoaguiar616 3 года назад

    You have the gift of making things understandable! Thank you for your help!

  • @lidestudios5094
    @lidestudios5094 Год назад +3

    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!

  • @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.

  • @manasnagelia
    @manasnagelia 2 года назад +1

    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.

  • @negoy100
    @negoy100 3 года назад

    Excellent videos. Love the conceptual depth and fluid presentation style.

  • @CarlosHasAIdea
    @CarlosHasAIdea 4 года назад

    This content should get you more views. Thank you brother. Great reviewing content too.

  • @fodecissokho9918
    @fodecissokho9918 Год назад

    This is by far the best tuto I've ever seen
    Eveything is detailed under just 6 minutes,
    Keep it up G👌👌👌👌

  • @MrStuartp
    @MrStuartp 2 года назад

    Great work actually explaining the reason for the syntax and process in using APIs, this video saved me hours.

  • @jumboliah13
    @jumboliah13 7 месяцев назад

    Your style of teaching is fantastic. I hope somebody gave you some kind of award, you deserve it.

  • @SuboptimalEng
    @SuboptimalEng 4 года назад +3

    Short and sweet, nice!

  • @martini9388
    @martini9388 6 месяцев назад

    Thx Kyle! As always, wonderful content!

  • @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.

  • @uulecrocodile8437
    @uulecrocodile8437 Год назад

    the best and most informative 6 minutes ever spent on RUclips

  • @danyleveque892
    @danyleveque892 3 года назад +1

    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

  • @keronwilliams5392
    @keronwilliams5392 2 года назад

    Dudeeeeeee straight to the point, love it!

  • @Brezanova
    @Brezanova 2 года назад +1

    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.

  • @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.

  • @fabiofreitas9304
    @fabiofreitas9304 3 года назад

    Simple and efficient. The best explanation about fetch i've ever seen...

  • @jgwilk
    @jgwilk 4 года назад +11

    the most simple, easy to understand explanation of fetch I've seen! Nice job 👏

  • @lititiakorau9487
    @lititiakorau9487 2 года назад

    Kyle you are such a great teacher
    bless you!!

  • @the_yugandharr
    @the_yugandharr Год назад

    Insane stuff dude! Thank you so mucn Kyle

  • @nomanmajeed1807
    @nomanmajeed1807 4 года назад

    Great tutorial. It helped me to understand how actually fetch works. Thank you

  • @yeshwanthtoluva4278
    @yeshwanthtoluva4278 Год назад

    simple and to the point!
    Thanks, man!

  • @user-yo2xf3jc3f
    @user-yo2xf3jc3f 7 месяцев назад

    Straight on point tutorial! Great Job!

  • @bintoucisse2415
    @bintoucisse2415 Год назад

    Thank Kyle! You were very helpful as always! You're very pedagogue

  • @aabid3375
    @aabid3375 4 года назад +1

    How did u maintain that delivery speed with so much clarity.Simply amazing.

  • @mutley11
    @mutley11 2 года назад

    That was a very skillful demonstration; you are a wonderful teacher. Thank you.

  • @CaptWindShear
    @CaptWindShear Год назад

    Thank you, sir, for not trying to blind me with science. It is convoluted enough as it is, but you made it make sense.

  • @chrisryu2179
    @chrisryu2179 3 года назад

    Very concise and right on point! Nice video.

  • @faisalmehmood5375
    @faisalmehmood5375 3 года назад

    Super useful. Helped me on my path to learning how to query a database through a server.

  • @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

  • @phamtienthinh1795
    @phamtienthinh1795 10 месяцев назад

    Thank you, I was struggling at header and body, this video is like my life savior

  • @rebeccawambui8143
    @rebeccawambui8143 4 года назад +1

    This is awesome 👍 content summarized in 6 min 👏🔥🔥

  • @rylan_mcmullan
    @rylan_mcmullan 3 года назад +2

    This was super helpful, thank you!

  • @anollipian
    @anollipian 2 года назад

    Your explanation is absolutely amazing, thank you!

  • @waynezeeman8948
    @waynezeeman8948 10 месяцев назад

    Many thanks for explaining this topic so well. It has just solved my 2 week struggle with Fetch👍

  • @ArtVandelayInc
    @ArtVandelayInc 3 года назад

    I enjoyed this video indeed. Great job at simplifying it

  • @cristi8997
    @cristi8997 11 месяцев назад

    thanks man, I was so confused why api error would return a success case, now I get it

  • @kerimtim
    @kerimtim 2 года назад

    Kyle makes everything so easy to learn

  • @AnyThingCreativex
    @AnyThingCreativex 4 года назад

    This was very helpful, thank you very much!

  • @michaelcarnevale5620
    @michaelcarnevale5620 3 года назад

    srs this is the best channel if i need to just learn a quick specific thing

  • @FireHazardz101
    @FireHazardz101 Год назад

    I love love love your content. Thank you for what you do ❤

  • @SJY11
    @SJY11 8 месяцев назад +3

    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!

  • @rickysahani1258
    @rickysahani1258 3 года назад

    Not exactly what I was looking for, but this is a great Video indeed.

  • @davidjustice2323
    @davidjustice2323 4 года назад

    Extremely informative. Thanks!

  • @RomilJain-wt3lb
    @RomilJain-wt3lb 2 года назад +1

    Great video, loved it, please keep doing great work

  • @FaLkraydz
    @FaLkraydz 4 года назад

    Simple and direct. Thank you, bro.

  • @EvertvanIngen
    @EvertvanIngen 3 года назад +12

    Looks right into my soul, "I'm gonna steal that" TT

  • @Emmodi10
    @Emmodi10 2 года назад

    Great content, straight to the point, big ups

  • @darryl8349
    @darryl8349 Год назад

    Thank you so much you have helped me solve a problem ive been stuck on for like an hour

  • @jaimearriola1495
    @jaimearriola1495 3 года назад

    Awesome!!! Thanks for this clear explanation! :)

  • @zephieethan7168
    @zephieethan7168 2 года назад

    your videos always let me learn new. even though i thought i know this point.

  • @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 😍😍

  • @pale-face
    @pale-face 2 года назад

    The best video on Fetch I have ever watched.

  • @wingowingo2928
    @wingowingo2928 3 года назад

    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.

  • @CamboTutorial
    @CamboTutorial 3 года назад +1

    Nice fully explain and smooth, love your series Learn X in Y minutes

  • @tyoung7167
    @tyoung7167 3 года назад +4

    Thank you. Great tutorial! Any beginner Fetch API Tutorials for displaying random images?

  • @vidumini23
    @vidumini23 4 года назад

    Simple and clear explanation. Thank you.

  • @pvsagar92
    @pvsagar92 4 года назад

    Clear and straight forward. Thanks

  • @kurtheimerman8267
    @kurtheimerman8267 2 года назад

    Another great video. Thank you!

  • @shanerobertson1845
    @shanerobertson1845 3 года назад

    Jeez, thank you for breaking this down!!!

  • @andrewday7799
    @andrewday7799 4 года назад

    I love that you are sensitive to developers time