Using a Public API - Tutorial for Beginners

  Рет қаралды 65,672

freeCodeCamp.org

freeCodeCamp.org

5 жыл бұрын

Learn how to use a public API in your project. In this tutorial you will learn to use the openweathermap.org public API but everything you learn here will help you to use any other public API.
🔗Get your API Key: openweathermap.org/appid
🔗Icon URL: openweathermap.org/img/w/11d.png
🔗Using getJSON: api.jquery.com/jquery.getjson/
🔗Javascript Math properties: developer.mozilla.org/en-US/d...
🔗Free Vectors by: www.vecteezy.com
⭐️Tutorial from iEatWebsites. Check out their channel for more great tutorials: / @ieatwebsites
--
Learn to code for free and get a developer job: www.freecodecamp.org
Read hundreds of articles on programming: medium.freecodecamp.org

Пікірлер: 49
@MrBermak
@MrBermak 4 жыл бұрын
Exceptional. For a long time I was looking for a good tutorial about the APIs. Finally I found a very good one.
@Knards
@Knards 5 жыл бұрын
Excellent way to learn json and objects. Thanks. A switch for wind direction is anyone wants it var deg = Math.floor(data.wind.deg); switch (true) { case deg >= 360 && deg = 22 && deg = 45 && deg = 67 && deg = 90 && deg = 112 && deg = 135 && deg = 157 && deg = 180 && deg = 202 && deg = 225 && deg = 247 && deg = 270 && deg = 292 && deg = 315 && deg = 337 && deg
@bonniesitessolutions7728
@bonniesitessolutions7728 4 жыл бұрын
I was looking for exactly this! Thanks!
@krislui852
@krislui852 3 жыл бұрын
had some lectures about api on some of the other programming courses I took, but none of them really show the process from getting the api key to using it. great video
@sophiebarrie5749
@sophiebarrie5749 2 ай бұрын
Thank you so much! I'm a very new developer and I've been looking for a tutorial like this everywhere so thank you!
@420Mlov
@420Mlov 2 жыл бұрын
Thank you so much for this. It was straight, to the point, understandable, and works. Exactly what I needed.
@anandprakash4995
@anandprakash4995 5 жыл бұрын
explained very well !! good job i learn a lot !!
@Ahmed-fk8rs
@Ahmed-fk8rs 5 жыл бұрын
Very Helpful, Thank You Mr. J :)
@LovisaSandhu
@LovisaSandhu 5 жыл бұрын
Thanks for the help!
@Blueflamey
@Blueflamey 3 жыл бұрын
Nice tutorial! If I may suggest though, instead of floor(), round() function would be a good use. Then again, it's an effort to do these kinds of tutorials so, keep it up!
@osch421
@osch421 2 жыл бұрын
I was using a different API and got stuck on authentication so googled using api tutorial... 2.24 in and your video helped me figure out where I was going wrong. Small silly syntax issue
@user-yj1jj9gp7z
@user-yj1jj9gp7z 4 ай бұрын
Really nice tutorial about the APIs
@AjayKumar-un2fz
@AjayKumar-un2fz 4 жыл бұрын
Great video for beginners..
@SusanWinters
@SusanWinters 3 жыл бұрын
Thank you sir. We need many more tutorials like this - working with different APIs. What else could we do for city pages?
@ranierocapitillo7313
@ranierocapitillo7313 4 жыл бұрын
This video is awesome.
@iNVICTUX
@iNVICTUX 5 жыл бұрын
Gracias amigo
@muhammadsafiullah8428
@muhammadsafiullah8428 4 жыл бұрын
That's helpful
@jaqhass
@jaqhass 3 жыл бұрын
Kek. Nice touch with antarctica. The coordinates of -81.38, 28.54. Love it. XD
@nabeeltahir6013
@nabeeltahir6013 5 жыл бұрын
Nice tutorial
@Jeasleyiii
@Jeasleyiii 4 жыл бұрын
very helpful video
@tikiboatsrentalcuracao7529
@tikiboatsrentalcuracao7529 Жыл бұрын
Where can i find in the daily/weekly report, the items i've sold per item. i can only find the total of invoices and the total amount. Please help!
@BeAPickle
@BeAPickle 5 жыл бұрын
How did this work with a space in a city name New York ?
@VeriousSmithIII
@VeriousSmithIII 5 жыл бұрын
Helpful video. What is the reason that you are not using ES6 (JSONparse, let, querySelector())? Why jQuery?
@DevDamian
@DevDamian 5 жыл бұрын
That what I thought as well. They should learn modern ways of doing things not the old ways.
@DavidMadrigalHernandez
@DavidMadrigalHernandez 5 жыл бұрын
I liked this tutorial. The only thing that bugged me was the hardcoded url strings. In my opinion, instead of hardcoding the long url strings into the main code body, why not set them as seperate variables for cleaner looking code?
@DavidMadrigalHernandez
@DavidMadrigalHernandez 5 жыл бұрын
To demonstrate what I mean above, here is what I ultimately ended up with that works pretty well. gist.github.com/MEXdave1997/64a967d99d09b83b99ae9cb24fdc173d
@toobstr
@toobstr 5 жыл бұрын
How?
@DavidMadrigalHernandez
@DavidMadrigalHernandez 5 жыл бұрын
@@toobstr go through the gist I linked. All I did was seperate the URLs as seperate variables above everything else, and then used the variables when contructing the API call
@toobstr
@toobstr 5 жыл бұрын
Thank you! I'll check it out.
@levinsondsouza
@levinsondsouza 5 жыл бұрын
nice
@JimKernix
@JimKernix 2 жыл бұрын
I can see to the right of the screen the integrity scrip tag attribute. Do we need that?
@JimKernix
@JimKernix 2 жыл бұрын
Also, why is your endpoint formtted json while min looks like it is minified?
@JimKernix
@JimKernix 2 жыл бұрын
Does anyone know how to convert the sunrise and sunset time into hours:minutes?
@user-ir7sw8sn8h
@user-ir7sw8sn8h 5 жыл бұрын
Сенкс!
@alexanderarea6157
@alexanderarea6157 2 жыл бұрын
I clicked 'Get Api' but I haven't got any key
@PabloHernandez-tf4do
@PabloHernandez-tf4do 2 жыл бұрын
For some reason this API has the weather in my city so terribly wrong
@ScottMorgan88
@ScottMorgan88 5 жыл бұрын
.floor() will round down. You need .round() to round to the nearest degree.
@dominikchynoradsky4228
@dominikchynoradsky4228 3 жыл бұрын
great comment
@prerakhere
@prerakhere 5 жыл бұрын
J?
@karlomagnoguadalupe4843
@karlomagnoguadalupe4843 Жыл бұрын
damn, very interesting hmmm :/
@karlomagnoguadalupe4843
@karlomagnoguadalupe4843 Жыл бұрын
and very helpful!
@femaledeer
@femaledeer 5 жыл бұрын
I dont see how this is for a beginner. Nothing is explained well.
@techyleviathan2054
@techyleviathan2054 5 жыл бұрын
actually it was pretty basic. The title said it clearly .. API for beginners. (Not HTML, CSS, JavaScript, Coding in General and CS science for beginners). The implementation was really straight forward. If you didn't understand the other principles I suggest you to start from HTML and CSS , then JavaScript. After a month or two of hard studying, come back and rewatch the video.
@artvandalay13
@artvandalay13 4 жыл бұрын
@@techyleviathan2054 1. Don't be an ass and maybe go back to your hole in your third-world country. 2. It says for beginners. What you just said is for intermediate learners.
APIs for Beginners 2023 - How to use an API (Full Course / Tutorial)
3:07:07
freeCodeCamp.org
Рет қаралды 1,8 МЛН
Learn JSON in 10 Minutes
12:00
Web Dev Simplified
Рет қаралды 3,1 МЛН
Alat Seru Penolong untuk Mimpi Indah Bayi!
00:31
Let's GLOW! Indonesian
Рет қаралды 16 МЛН
100❤️
00:19
MY💝No War🤝
Рет қаралды 17 МЛН
How Many Balloons Does It Take To Fly?
00:18
MrBeast
Рет қаралды 37 МЛН
تجربة أغرب توصيلة شحن ضد القطع تماما
00:56
صدام العزي
Рет қаралды 36 МЛН
How to use a Public API | Using a Public API with Python
14:01
Alex The Analyst
Рет қаралды 40 М.
40 APIs Every Developer Should Use (in 12 minutes)
12:23
Coding with Lewis
Рет қаралды 304 М.
How to hide your API keys SAFELY when using React
24:45
Code with Ania Kubów
Рет қаралды 167 М.
Learn JSON - Full Crash Course for Beginners
11:44
freeCodeCamp.org
Рет қаралды 171 М.
APIs Explained | Real World Examples
11:36
CertBros
Рет қаралды 494 М.
tRPC, gRPC, GraphQL or REST: when to use what?
10:46
Software Developer Diaries
Рет қаралды 73 М.
Build this JS calculator in 15 minutes! 🖩
15:20
Bro Code
Рет қаралды 417 М.
What is a REST API?
9:12
IBM Technology
Рет қаралды 1,5 МЛН
250 Unique APIs for your next Project
7:11
Adrian Twarog
Рет қаралды 289 М.
Alat Seru Penolong untuk Mimpi Indah Bayi!
00:31
Let's GLOW! Indonesian
Рет қаралды 16 МЛН