1.4: JSON - Working with Data and APIs in JavaScript

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ส.ค. 2024
  • 💻github.com/Cod...
    With our previous projects, we learned about fetch() and tabular data. This next project will show you how to work with JSON data from an API including how to load JSON data with fetch() and update DOM element.
    🔗 Where the ISS at?: wheretheiss.at/
    🔗 JSON chrome extension: chrome.google....
    🎥 NEXT LESSON: • 1.5 Mapping Geolocatio...
    🎥 PREVIOUS LESSON: • 1.3: Graphing with Cha...
    🎥 FULL COURSE: • Working with Data and ...
    🚂 Website: thecodingtrain....
    💖 Patreon: / codingtrain
    🛒 Store: www.designbyhu...
    📚 Books: www.amazon.com...
    🎥 Coding Challenges: • Coding Challenges
    🎥 Intro to Programming: • Start learning here!
    🔗 p5.js: p5js.org
    🔗 Processing: processing.org
    📄 Code of Conduct: github.com/Cod...

ความคิดเห็น • 378

  • @krunked4949
    @krunked4949 9 หลายเดือนก่อน +14

    Bro, this video is 4 years old and its still the best vidoe out there, thank you so much for the courses Dan! They are so appreciated.

    • @fariadworld446
      @fariadworld446 6 หลายเดือนก่อน +1

      Inspiration and motivation!

    • @Pdrum2
      @Pdrum2 2 หลายเดือนก่อน +1

      One of the best programming teachers

  • @shubhrashukla7879
    @shubhrashukla7879 5 ปีที่แล้ว +214

    It feels so nice that we are getting away from p5 for some time and looking at native js. Thanks for that dan

  • @Ray-gw2wh
    @Ray-gw2wh 3 ปีที่แล้ว +9

    I just started my own webpage and spent the last two days trying to find out how to display api data on it. I've searched through countless web and youtube tutorials but your video was the only one explaining everything I needed to know without any existing knowledge. Thank you!!!

  • @yusraalattar5593
    @yusraalattar5593 4 ปีที่แล้ว +11

    Never ever have I seen an expert teaching out in so good way to a beginner like me! I wish i could change you with my current teacher in my programming course!!! Great job!!

  • @mrdbourke
    @mrdbourke 2 ปีที่แล้ว +20

    Thank you for the excellent lesson! These videos are a goldmine!

    • @TheCodingTrain
      @TheCodingTrain  2 ปีที่แล้ว +2

      Thanks so much! Checking out your channel, looks great!

  • @tedspens
    @tedspens 3 ปีที่แล้ว +8

    You didn't just receive data from and endpoint, you received data from outer space! 🚀🌌 I love your teaching style. It's like hanging out with a friend who's really good at explaining stuff. Liked, subscribed, commented, thank you!

  • @gina7898
    @gina7898 2 ปีที่แล้ว +1

    I used to think I'd never understand APIs until I came across this video. I appreciate you a lot for breaking this down for me.

  • @castronator29
    @castronator29 5 ปีที่แล้ว +21

    One of the best teachers in TH-cam, thank you sir, you're amazing!

  • @hispeededits
    @hispeededits 5 หลายเดือนก่อน

    Its been 4 years since I watched this (during my self-taught journey). I'm now a professional dev with multiple YOE. Thanks for all that you do. I don't watch many code-related YT vids anymore, but this video and many others were an amazing launchpad for me and my learning.
    Thanks for all you do-- you really do have a big impact on the trajectory of many of our lives :)

  • @danielyabu
    @danielyabu 2 ปีที่แล้ว +9

    That was really a great lesson. Exactly what I wanted. The explanation is crystal clear and the real-life examples made it even more interesting. Thanks a million!

  • @rotrose7531
    @rotrose7531 5 ปีที่แล้ว +5

    You make coding an interesting game instead of tedious learning. Thank you

  • @Danachew
    @Danachew 5 ปีที่แล้ว +14

    I am so excited for this entire playlist. I just started dabbling with API's and this is going to be super helpful. Thanks Dan!!!

  • @marcomendoza2879
    @marcomendoza2879 ปีที่แล้ว

    Yo I came here because I have a weather app I am working on, but I just wanted to say your enthusiasm woke me up, thanks homie. I will do better for you, and my teacher. Yall are really about this javascript

  • @Orangerabbitpolice
    @Orangerabbitpolice ปีที่แล้ว

    @9:44 "why should it? its for computers" dropped a huge puzzle piece into my brain, TY

  • @BenDov
    @BenDov 9 หลายเดือนก่อน

    omg you look so happy teaching! thank you for this very high quality course!

  • @tel6975637465
    @tel6975637465 3 ปีที่แล้ว +1

    20/04/2021 I am learning js, and i have to admit WOWWW. What an awesome tutorial! You explain the code so good !!! Thank you

  • @JasonLayton
    @JasonLayton 4 ปีที่แล้ว +7

    Your content is perfect for my level of experience. I'm loving this course.

  • @Yash-jp6xh
    @Yash-jp6xh ปีที่แล้ว +1

    You are just brilliant Man, the way make it so simple to break down such complex topics in matter of minutes. Hats off!

  • @barmolino
    @barmolino 10 หลายเดือนก่อน

    Dude you save my life
    This was to most easily fetch explained I was watch for long time ago

  • @japphetloidedeguzman9290
    @japphetloidedeguzman9290 3 ปีที่แล้ว

    I'm attending a coding bootcamp and your videos make me understand more about topics. Thank you!!!

  • @ki11erkittie
    @ki11erkittie 3 ปีที่แล้ว

    Went and researched setInterval() at the end of the video. It was so satisfying getting it to work in my code and stopping it with clearInterval(). Thank you!

  • @BizzaroBrainBoi
    @BizzaroBrainBoi ปีที่แล้ว

    this guy is the best teacher ive ever seen. wish he was my sensei for all my code

  • @nick_jacob
    @nick_jacob 3 ปีที่แล้ว +1

    Thank you for this playlist. I'm going to watch every video in it. I have been a developer for 5 years and I have never used AJAX or Fetch in any JavaScript code...Today I needed it for a job interview "homework" assignment. I feel a bit more confident, but man i'm a crap developer the more I think about it.

  • @cmt0726
    @cmt0726 5 ปีที่แล้ว +18

    You always make my day brighter :)

  • @HipHopLuvr22889
    @HipHopLuvr22889 ปีที่แล้ว +1

    You've been such an essential resource for me in learning code. Thank you for your videos. They're so easy to understand.

  • @nikkehtine
    @nikkehtine 2 ปีที่แล้ว

    This channel is a goldmine

  • @davidencinas86
    @davidencinas86 3 ปีที่แล้ว +3

    Awesome content. As a "advanced beginner (LOL)" the content and delivery is A+++. I am learning and practicing so much. Thank you so much.

  • @kevintlu
    @kevintlu 5 ปีที่แล้ว +4

    This helped me so much! I just enjoy watching your videos. Who doesn't. I recommended your machine learning vids to a python programmer and he was so happy!

  • @melogenesis4618
    @melogenesis4618 5 ปีที่แล้ว

    I am exactly sure that you cannot find any unnecessary video in this channel :D Thank you for your effort

  • @howprofound
    @howprofound 3 ปีที่แล้ว

    DUDE ... I have been trying to build a search engine with the OpenLibrary API for a minute. Their API (I guess cos it’s a nonprofit or something) isn’t straightforward like the one in the vid and confusing to me as I’m still learning. Your vid was the only one that helped me find the endpoints and FINALLY see the data in the console!!! I’m screaming!!!!!!!!!!!!! Thank you so much. Also you are so cute 💘 Subscribed for the coding skills tho... Thanks again! I’m ecstatic.

  • @pjcocktail
    @pjcocktail 4 ปีที่แล้ว +3

    Bro...I REALLY appreciate you making this video...everything was super comprehensive and I really enjoy your teaching style. 👍🏼 keep it up!💪🏼

  • @paultapping9510
    @paultapping9510 4 หลายเดือนก่อน

    A ton of great tips here, even now. Really good run down, ty!

  • @2002budokan
    @2002budokan 4 ปีที่แล้ว

    I like your passionated talks. You explain well, you explain as simple as possible and you're a passionated instructor.

  • @diesertortex
    @diesertortex 3 ปีที่แล้ว

    I am just thankful for this series and your work. I am an electrical engineer and just workewith c and c++ , now i do some privat projects with js and your vids are so helpful. way better then every bonedry documentation. easy and fast to understand

  • @nathanmuecke377
    @nathanmuecke377 ปีที่แล้ว

    I love your enthusiasm, thanks for making these videos!

  • @hoakeen
    @hoakeen 4 ปีที่แล้ว +6

    Cool. Would love to find a similar video with far more complex JSON structures. Repeated object properties, arrays inside, how to looping through them, and find the specific data that we want. Cannot find a good tutorial on how to do this online with Javascript. Thanks again!

  • @HugoJanKanAl
    @HugoJanKanAl 3 ปีที่แล้ว

    Not a coder, but I have a specific hobby project use-case where I need to leverage an API. Nothing too fancy I thought. But at first, I only found solutions that were way too complicated and I was starting to give up on an easy solution.
    But then I found this video and it told me exactly what I needed at exactly the right level.
    Thanks!

  • @banafritphotography
    @banafritphotography 5 ปีที่แล้ว +1

    Great video! First time using fetch() but it won't be the last. Thanks for the great explanation.

  • @Haydencorporation
    @Haydencorporation 3 หลายเดือนก่อน

    Youre the best there is , its never been so clear

  • @basselturky4027
    @basselturky4027 3 ปีที่แล้ว

    I really want to reach into the screen and give you a hug, thank you so much for teaching me and for all your effort

  • @shubhampatel906
    @shubhampatel906 2 ปีที่แล้ว

    You make us energetic to work and learn even at 1:30 AM . Lots of love

  • @exe.m1dn1ght
    @exe.m1dn1ght 5 หลายเดือนก่อน

    May Universe bless your kind heart man, i love how you teach

  • @galalemuse1009
    @galalemuse1009 ปีที่แล้ว

    Thank you!!! There was so many time I didn’t touch anything of code but your videos are heaving my life❤

  • @br1sm1th
    @br1sm1th 2 ปีที่แล้ว

    Your the man!!! You put 60 boring pages of my uni work into a 16 min vid that was way clearer. Thank you. :)

  • @ciocianiafrania
    @ciocianiafrania 2 ปีที่แล้ว

    omg, you're a gem!!!!! from now on I stick to your classes only;)

  • @carlosmaralit8784
    @carlosmaralit8784 ปีที่แล้ว

    This is treasure, you really kick that momentum there and you are so good, I like your video contents really appreciate and enjoy watching you. Thanks for this amazing content

  • @jcow87
    @jcow87 2 ปีที่แล้ว

    so helpful to see if a simple, straightforward explanation and real life examples. Exactly what I needed!

  • @jonathanmotivational7036
    @jonathanmotivational7036 ปีที่แล้ว

    I love the Way u make things so simple. Thanks

  • @surendrajat7290
    @surendrajat7290 2 ปีที่แล้ว

    man your just one video clear my doubts 🙏🙏

  • @PatronSaintOfPigeons
    @PatronSaintOfPigeons 2 ปีที่แล้ว

    this is so great i was being so actually thick trying to go through the trouble of using ajax to get JSON data cause nobody bothered to teach js in school or college

    • @PatronSaintOfPigeons
      @PatronSaintOfPigeons 2 ปีที่แล้ว

      AND YOU ADDED A BIT TO SHOW WHAT KIND OF CODE YOU NEED TO GET UPDATES FOR REACTIVE OBJECTS HOLY SHID TAKE MY SUB

  • @Chopitupwithme
    @Chopitupwithme ปีที่แล้ว

    Excellent and thorough lesson!

  • @zhaklinatefova3611
    @zhaklinatefova3611 ปีที่แล้ว

    I love the energy how you explain everything, thank you.

  •  4 ปีที่แล้ว +1

    Fascinating artistic performance! I understand that programming is partly art and partly science. I had to watch a second and third time to focus on javascript. Really great presentation.

  • @xfrostbite8328
    @xfrostbite8328 3 ปีที่แล้ว +1

    4:20 is when you got me 🤣 keep in mind when you’re posting on youtube you have a wide variety of viewers

  • @novanoskillz4151
    @novanoskillz4151 3 ปีที่แล้ว +1

    I am so happy to have found you. you have so many playlists, and i want to go through them all. keep making more. thanks especially the javascript stuff.

  • @Lobos91
    @Lobos91 2 ปีที่แล้ว

    man, dont stop taking drugs, your energetic way of teaching is great

  • @kenhard
    @kenhard 2 ปีที่แล้ว

    This is the best tutorial I've ever seen, wow. Props to you man!

  • @isaacnda9090
    @isaacnda9090 2 ปีที่แล้ว +1

    Thank you for this nice course on APIs. You are a brilliant teacher.
    Thanks ! ❤️

  • @emimarchese4274
    @emimarchese4274 2 ปีที่แล้ว

    Love that contant man!!!! You literally save my course!!

  • @aleksasdaujotas6279
    @aleksasdaujotas6279 3 ปีที่แล้ว +1

    Great enthusiasm overall and content in particular. This educational content is one of it's kind.

  • @n8churrr
    @n8churrr 3 ปีที่แล้ว

    I just stumbled across this via Google when searching for a REST tutorial, and just wow! This was brilliant! Thank you so much for this excellent content! :)

  • @yajie7756
    @yajie7756 ปีที่แล้ว

    thanks for you video! With every word you say, i learn something.

  • @666tradash999
    @666tradash999 9 หลายเดือนก่อน

    jó része vagy ember de azért köszi ❤

  • @jessielindayao0423
    @jessielindayao0423 5 ปีที่แล้ว +2

    Honestly the first time I saw your video Sir, I was a little irritated because it seems to be your not serious on what you're doing..haha..
    But right now, I really like how you explain things in a simple way and your videos are very informational..Thanks a Lot!!

  • @urus_gre1035
    @urus_gre1035 2 ปีที่แล้ว

    Amazing video. I finally understood web apis!

  • @littleBIGsynths
    @littleBIGsynths 4 ปีที่แล้ว +1

    This channel is great. Love the way you teach! 🙂👍 Thank you for these vids.

  • @mariumbegum7325
    @mariumbegum7325 ปีที่แล้ว

    Really like how engaging this video is, fantastic work!

  • @AIdevel
    @AIdevel ปีที่แล้ว

    Absolutely simple explanation I love it 😻

  • @amar2042
    @amar2042 2 ปีที่แล้ว

    Really good tutorial very hard to find a video like this were you can just learn something so quick and easy to understand

  • @dutcampus828
    @dutcampus828 3 ปีที่แล้ว

    You are the best teacher!!! Thank you so much

  • @smoua4588
    @smoua4588 2 ปีที่แล้ว

    Thank you so much brother. May you have good healthy life.

  • @shevanvfx
    @shevanvfx 9 หลายเดือนก่อน

    you should do seminars and more videos man love it

  • @retardx
    @retardx 5 ปีที่แล้ว +45

    thx for
    const { lat, long } = data;

    • @tel6975637465
      @tel6975637465 3 ปีที่แล้ว

      yes i didn't know that either

  • @GfoxSim
    @GfoxSim ปีที่แล้ว

    Brilliant video! Simple, fun and interactive! I enjoyed learning about the fetch api!

  • @learnsharp1272
    @learnsharp1272 2 ปีที่แล้ว

    This guy is so motivated

  • @loganreign9318
    @loganreign9318 ปีที่แล้ว

    God gifted Teacher❤❤

  • @laikesagores3258
    @laikesagores3258 2 ปีที่แล้ว

    (Ekplictik!!!->Excellent), thanks a lot about the lesson. The Unforgetable Coding Train. Please stay online!!!

  • @BallEcomThatthana
    @BallEcomThatthana 2 ปีที่แล้ว

    Thank you Dan Amazing content

  • @andrewaramouni9308
    @andrewaramouni9308 3 ปีที่แล้ว

    Thanks for making terms more simple. Tutorials need to do that more often.

  • @randerins
    @randerins 2 ปีที่แล้ว

    You explain SO well. I'm your fan!

  • @garethBarry_dev
    @garethBarry_dev ปีที่แล้ว

    THank you for this tutorial, very easy to follow and informative :)

  • @MahmudYuldashev
    @MahmudYuldashev 4 ปีที่แล้ว

    You know this guy is very much excited same time I became excited everytime he does smth. Man you are the Man

  • @prhasn
    @prhasn 3 ปีที่แล้ว

    14:26 to 14:41 could be the video intro to show viewers what they should expect to achieve in a few seconds. That is before the current intro which is informative and also necessary.

  • @nicholasdiogo5513
    @nicholasdiogo5513 4 ปีที่แล้ว

    Best video to explain the fetch function, Thanks so much

  • @andronacherazvan1225
    @andronacherazvan1225 ปีที่แล้ว

    Great lesson!
    I love your energy when teaching!
    Thank you very much for those great 16 minutes!

  • @potatoman4548
    @potatoman4548 4 ปีที่แล้ว

    Your tutorial was an absolute DREAM to follow, thank you!

  • @ashharkausar413
    @ashharkausar413 3 ปีที่แล้ว

    Excellent video! Both thorough and comprehensive.

  • @huguolin2543
    @huguolin2543 4 ปีที่แล้ว

    You're so fun guy. Nice watching. I have in fact a thing to do with Leaflet and hundreds of pointers to put on a map. That's a good start, thanks

  • @itsupk
    @itsupk 4 ปีที่แล้ว

    thanks, sir in the first time I understand JSON API. this video is very helpful for me.
    thanks once again.

  • @rotrose7531
    @rotrose7531 4 ปีที่แล้ว +2

    learning with you always gives me great joy, Thank you very much.

  • @frontendsimply9006
    @frontendsimply9006 3 ปีที่แล้ว

    you are amazing man i was having a hard time understanding fetching and now im all in thank you so much

  • @asbeeq9513
    @asbeeq9513 4 ปีที่แล้ว

    super clear. I am very happy that I find this content

  • @MrAnders88a
    @MrAnders88a ปีที่แล้ว

    Your videos are the best, thank you so much

  • @grainfrizz
    @grainfrizz 5 ปีที่แล้ว

    I'm gonna use this to ingest to Splunk the ISS location and plot it using | geolocation command. Thanks, Dan!

  • @iNiaFun
    @iNiaFun 2 ปีที่แล้ว

    Awesome video thank you so much for the detail explanation!!!

  • @Dadaadad268
    @Dadaadad268 4 ปีที่แล้ว

    your videos are amazing, I love your style. You actually make this stuff interesting!

  • @lucas-sq1js
    @lucas-sq1js 2 ปีที่แล้ว

    Bro, if you ran for president you'll def. get my vote!!

  • @mce3804
    @mce3804 2 ปีที่แล้ว

    I can't tell you how much this video has helped me! THANK YOU SO MUCH!!!1

  • @alexandergraham2581
    @alexandergraham2581 3 ปีที่แล้ว

    really love these - thanks for all you do and your enthusiasm!

  • @Larsi1008
    @Larsi1008 3 ปีที่แล้ว

    That you very much, not I understand much better how a JSON API work :D
    I need to code one b myself for work and wow, your video brought light in the dark :3