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

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ก.ค. 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

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

  • @JesusSambrine
    @JesusSambrine 28 วันที่ผ่านมา +1

    If you are having the IOPub data rate exceed error here is something I noticed. First, make sure that Jupyter Notebook is updated in the anaconda navigator. Second, run the command that Alex shows inside the Anaconda Powershell Prompt. Not sure why that specifically works but it works

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

    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 11 หลายเดือนก่อน +2

    I surveyed TH-cam 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

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

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

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

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

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

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

  • @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 2 ปีที่แล้ว +1

    Loved it! I started TH-cam 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.

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

    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.

  • @dakshbhatnagar
    @dakshbhatnagar 2 ปีที่แล้ว +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.

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

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

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

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

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

    Cannot wait for next video :)) Love your tutorials

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

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

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

    Very informative Alex! Thank you!

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

    Thank you for uploading this. It was worth watching

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

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

  • @kentan906
    @kentan906 2 ปีที่แล้ว +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! 😂

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

    Good training. Thanks for putting this together.

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

    Thank you for explaining it so well.

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

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

    Thx for sharing cool video!

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

    Thank you!!

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

    thanks
    i need that

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

    awesome

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

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

      I learned how to use APIs on the job

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

    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

  • @8aravindk
    @8aravindk 2 ปีที่แล้ว

    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 2 ปีที่แล้ว

    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  2 ปีที่แล้ว +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 2 ปีที่แล้ว

      Gotcha! Thank you 🙏🏾 @@AlexTheAnalyst

  • @gogor8017
    @gogor8017 6 หลายเดือนก่อน

    favori keltoşum

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

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

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

  • @kaifahmedkhan4492
    @kaifahmedkhan4492 8 หลายเดือนก่อน

    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.

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

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

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

    Please make Python Tutorial video for data analyst

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

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

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

    Next power bi video ???

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

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

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

    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 3 หลายเดือนก่อน

      create new api key it's free

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

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

    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 3 หลายเดือนก่อน

      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 11 หลายเดือนก่อน

      did you find out?

    • @peterw5397
      @peterw5397 6 หลายเดือนก่อน

      @@nuraiymsardarbekova6509 I had the same issue! I used this guys tutorial th-cam.com/video/B_YlLf6fa5A/w-d-xo.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 4 หลายเดือนก่อน

      @@nuraiymsardarbekova6509 did you find out lol

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

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

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