How to use a Public API | Using a Public API with Python

Поделиться
HTML-код
  • Опубликовано: 22 май 2024
  • APIs are extremely useful to know how to use. In this video we walk through what an API is and then we look at how to actually use it.
    CoinMarketCap: coinmarketcap.com/
    CoinMarketCap API: coinmarketcap.com/api/
    CoinMarketCap API Documentation: coinmarketcap.com/api/documen...
    Python Code - GitHub: github.com/AlexTheAnalyst/Ale...
    API FULL PROJECT LINK: • Automating Crypto Webs...
    ____________________________________________
    SUBSCRIBE!
    Do you want to become a Data Analyst? That's what this channel is all about! My goal is to help you learn everything you need in order to start your career or even switch your career into Data Analytics. Be sure to subscribe to not miss out on any content!
    ____________________________________________
    RESOURCES:
    Coursera Courses:
    Google Data Analyst Certification: coursera.pxf.io/5bBd62
    Data Analysis with Python - coursera.pxf.io/BXY3Wy
    IBM Data Analysis Specialization - coursera.pxf.io/AoYOdR
    Tableau Data Visualization - coursera.pxf.io/MXYqaN
    Udemy Courses:
    Python for Data Analysis and Visualization- bit.ly/3hhX4LX
    Statistics for Data Science - bit.ly/37jqDbq
    SQL for Data Analysts (SSMS) - bit.ly/3fkqEij
    Tableau A-Z - bit.ly/385lYvN
    Please note I may earn a small commission for any purchase through these links - Thanks for supporting the channel!
    ____________________________________________
    SUPPORT MY CHANNEL - PATREON/MERCH
    Patreon Page - / alextheanalyst
    Alex The Analyst Shop - teespring.com/stores/alex-the...
    ____________________________________________
    Websites:
    Website: AlexTheAnalyst.com
    GitHub: github.com/AlexTheAnalyst
    Instagram: @Alex_The_Analyst
    ____________________________________________
    0:00 Intro
    0:12 What is an API?
    1:38 Looking at CoinMarketCap API
    4:53 Using an API Key with Python
    9:56 API JSON format to Dataframe
    12:26 Outro
    All opinions or statements in this video are my own and do not reflect the opinion of the company I work for or have ever worked for

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

  • @nathaneckel7105
    @nathaneckel7105 2 года назад +24

    Super helpful as always @Alex .
    Love that you didn't censor the glitches, errors, and obstacles and instead explained that it's a reality and described how you deal with it. This is as helpful as the technical aspects.

  • @goodperson2785
    @goodperson2785 9 месяцев назад +2

    I surveyed RUclips looking for a practical explanation to this topic, this one is the best ever. I just found what I was looking for after being frustrated and depressed. Thank you so much Alex

  • @jaroslavkrbec582
    @jaroslavkrbec582 Год назад +1

    I got stucked for about 30 minutes trying to connect it to DataSpell. It worked, now I can leave the tutorial with peace :D Thanks!

  • @bredennyatoro9832
    @bredennyatoro9832 2 года назад +7

    Alex you are the best data science RUclipsr in the world. Thanks for the great content we truly appreciate it.

  • @shashipaul6279
    @shashipaul6279 2 года назад +8

    That's just awesome ...... Eagerly waiting for full project

  • @user-fw3vv4id5z
    @user-fw3vv4id5z Год назад

    After increasing the data limit, I just closed everything and opened the notebook again and it worked fine :) Thank you for your videos!

  • @ahmetalperenyildirim6184
    @ahmetalperenyildirim6184 Год назад +1

    Thank you Alex, I started to believe its not important what you do, most important part is how you do. And I can say, you doing great! So useful and informative video! Thanks a lot

  • @felixc.programs8209
    @felixc.programs8209 Год назад +1

    Loved it! I started RUclips recently and I'm still small, but you are one my main inspirations for taking this step. Keep doing what you do!

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

    Hey Alex, I can't thank you enough for all the useful videos and resources you share. Thank you so much for all your efforts. I have learned a lot from your videos and still learning...!! keep doing the great work.

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

    Hey Alex, I have been meaning to get my hands dirty with the API and now I feel a bit more confident in testing it out and seeing it for myself. Looking forward to the API Project.

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

    Nice video, thank you! Looking forward to the project video(s) that you mentioned!

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

    Thank you so much Alex!
    this is Super Helpful!
    I'm trying to pulling up data using API with python before and I got stuck .
    But, thanks for this video. I'm ready for the next step

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

    Good video, this will help people get over the scary barrier of an API.
    Thank you!

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

    Very informative Alex! Thank you!

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

    Cannot wait for next video :)) Love your tutorials

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

    Thank you so much, Alex!! It is really intriguing for me. I cannot wait for the further relevant projects.

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

      You're more than welcome! I'm looking forward to it too! Next week should be a fun one :)

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

    I love how real this video gets when the unexpected error occured. Obviously everyone has encountered something similar and things don’t go as planned! 😂

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

    Thank you for uploading this. It was worth watching

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

    Good training. Thanks for putting this together.

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

    That was like magic, I can't wait to learn all this

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

    Thank you for explaining it so well.

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

    Thx for sharing cool video!

  • @arghadeepmodak9413
    @arghadeepmodak9413 Месяц назад

    Nice video 😀… You had to restart the kernel once you have changed the data rate limit. Just in case anyone does not know, you should restart the kernel after installing a package from the pypi using the pip/pip3.

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

    Just at the right moment it has arrived when I am just started learning SQL.Thank you sir, you are awesome.

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

      Where re you learning the SQL. I have been kind of wondering where best to learn that at a relatively cheap amount or free. Priority is largely on sound education

    • @MoHSinALi-xt5ib
      @MoHSinALi-xt5ib 2 года назад

      I am also learning SQL

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

      @@MoHSinALi-xt5ib Where please?

    • @MoHSinALi-xt5ib
      @MoHSinALi-xt5ib 2 года назад

      @@ezekomaugoo5569 and also playlist available on this channel

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

    Thank you!!

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

    awesome

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

    Hi Alex I wanted to ask you a question. Can you become a data analyst with just a FinTech degree? And do you recomend getting one if so? Thank you

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

    thanks
    i need that

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

    Hi Alex Sir I actually want to ask very important question about the interview its almost asked in all Data analyst interview. Question is that Interviewer asked that if you have less time and your analysis will take more time so in this case what should you reply to your stakeholder

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

    This is great!
    I would like to ask, did you learn these things on the job or before?

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

    Hi Alex, I also faced the same problem but I'm not able to solve it since I was using Colab. It would be very helpful if you could help me resolve this issue.

  • @8aravindk
    @8aravindk Год назад

    In the future, can you please use a black/contrast mouse cursor with a bigger size. The white one is really hard to track for those watching on a TV. There are dozens of us.

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

    Cool

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

    Alex please, who offers the best course on SQL?

  • @isaactucker-rasbury710
    @isaactucker-rasbury710 Год назад

    Okay, so question here - I was taught to add my importa all to the top of my code, even when I figure out that I’ll need it later on in a project, so that folks can see what I’m using all in one place.
    I was shocked 😮 when you added yours below some of your live coding. Do you have a preference or is it not something you think about? I’m asking because I’m trying to learn the best practice - if there is one

    • @AlexTheAnalyst
      @AlexTheAnalyst  Год назад +1

      Depends on the situation - like you said you may not always know and adding it later isn't a big deal. I do typically try to put them all at the top though :)

    • @isaactucker-rasbury710
      @isaactucker-rasbury710 Год назад

      Gotcha! Thank you 🙏🏾 @@AlexTheAnalyst

  • @gogor8017
    @gogor8017 5 месяцев назад

    favori keltoşum

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

    Hey Alex,
    Firs off, I love your videos! second, I am having a issue. Once I updated the data rate limit, it worked briefly and then my ipykernel could not reconnect. did anyone else have this problem or know how to fix it?

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

    How to write a code that keeps capturing the numbers as they change? With the date of change

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

    Can we retrieve data from other web site using this code?

  • @sdivi6881
    @sdivi6881 Месяц назад

    Someone please help how he increased the data limit, what he mentioned in Anaconda prompt?

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

    Next power bi video ???

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

    Dude I work with anaconda environment and doing that or deploying something is impossible. I think it is because I don't have Python installed on my PC, as I said I use Anaconda, and I installed Python in there.

  • @gustavoalmeida6501
    @gustavoalmeida6501 3 месяца назад

    I know this is old, but I'm getting a "Missing api key", even tho I used the same code as the doc, video, and tried different versions. When I test it in postman, it works fine.

    • @codecheckAbhi
      @codecheckAbhi 2 месяца назад

      create new api key it's free

  • @suyashverma800
    @suyashverma800 Год назад +1

    Please make Python Tutorial video for data analyst

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

      That'll be the next series after the Power BI Series :)

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

    Hi Alex, you've such a great way to explain processes. Thank you for the content. Greetings from Brazil

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

      So glad to hear that! Thanks for watching!

  • @Mubinnoordeen
    @Mubinnoordeen 4 месяца назад

    while running the below code, I'm getting a message saying Key error: data
    pd.json_normalize(data['data'])
    Would be helpful if someone could point out the solution for this

    • @codecheckAbhi
      @codecheckAbhi 2 месяца назад

      when you fetch data from api did u got the first 2 keys it should be status and data

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

    What would be a learning pathway to get from zero to understanding this?

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

      I would probably take "Python for Everyone" on Coursera. It is fantastic to learn from basics all the way up to stuff like this.

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

    You’re too generous

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

    Forth view

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

    I'm a Mac user, and there is no anaconda prompt, I don't know how to do...

    • @nuraiymsardarbekova6509
      @nuraiymsardarbekova6509 9 месяцев назад

      did you find out?

    • @peterw5397
      @peterw5397 5 месяцев назад

      @@nuraiymsardarbekova6509 I had the same issue! I used this guys tutorial ruclips.net/video/B_YlLf6fa5A/видео.html&ab_channel=emaadmanzoor its for windows but worked for me on mac. you need to access the hidden folder for jupyter (command + shift + . ) when looking in the root folder. then in the jupyter notebook config file you change the data limit and un comment out the code.

    • @hello_fellow_youtubers
      @hello_fellow_youtubers 2 месяца назад

      @@nuraiymsardarbekova6509 did you find out lol

    • @hello_fellow_youtubers
      @hello_fellow_youtubers 2 месяца назад

      @@nuraiymsardarbekova6509 I figured it out. Close you jupyter notebook and the jupyter bash terminal. Open a new terminal window (not a jupyter terminal just mac terminal) and copy and paste alexes command in there. It will open jupyter notebooks with the new settings and it will work.

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

    Thanks! You absolutely butchered that metaphor