Fetching Data From an API | Day 17 | 100 Days of Machine Learning

Getting complete and high-performance data is not always the case in Machine Learning. While working on any real-world problem statement or trying to build any sort of project as Machine Learning Practioner you need the data. To accomplish the need for data most of the time, it is required to fetch data from API and if the website does not provide API, then the only option left is Web Scraping.
In this tutorial, we are going to learn how you can use API, extract data and save it in the form of a data frame. Fetching Data from an API involves accessing and retrieving structured data from web services, offering a convenient way to obtain real-time or specific information.
Code used: github.com/campusx-official/1...
TMDB API : developers.themoviedb.org/
RapidAPI : rapidapi.com/collection/list-...
JSON Viewer: jsonviewer.stack.hu/
============================
Do you want to learn from me?
Check my affordable mentorship program at : learnwith.campusx.in/s/store
============================
📱 Grow with us:
CampusX' LinkedIn: / campusx-official
CampusX on Instagram for daily tips: / campusx.official
My LinkedIn: / nitish-singh-03412789
Discord: / discord
Instagram: / campusx.official
E-mail us at support@campusx.in
⌚Time Stamps⌚
00:00 - Intro
00:30 - What is an API?
05:45 - Getting TMDB data with API
12:10 - Code Demo
20:33 - Uploading Dataset on Kaggle

Пікірлер: 124

  • @pankajskilldevelopment3950
    @pankajskilldevelopment3950 Жыл бұрын

    It's really required strong Hindi content for data science, thank you brother

  • @lvilligosalvs2708
    @lvilligosalvs270811 ай бұрын

    Immensely grateful for what you're providing. Best content bar none!!

  • @santoshkamble9189
    @santoshkamble91892 жыл бұрын

    i have reached till day 17, and i really appreciate your work, please keep up the good work. I am an experience DS, but still your videos helped me a lot. Thanks bro.

  • @sathvikreddy4807

    @sathvikreddy4807

    11 ай бұрын

    so what happened? got a job?

  • @zainabsalahuddin8286
    @zainabsalahuddin8286 Жыл бұрын

    by far the bestttt video i have seen on Web Scraping with the help of API's. You should definitely make a playlist covering Web Scraping.

  • @vinayshukla3800
    @vinayshukla38002 жыл бұрын

    Amazing explanation and thanks sir for giving this type quality content at free of cost.

  • @AbdurRahman-lv9ec
    @AbdurRahman-lv9ec6 ай бұрын

    Kudos, Nitish ! Your teaching style is phenomenal, and I've learned so much from your Python and Machine Learning tutorials. As I delve deeper into my passion for data engineering, I can't help but wish for a mentor like you in this field. Your guidance would be invaluable. Any plans to explore data engineering topics?

  • @stevegabrial1106
    @stevegabrial11063 жыл бұрын

    With all due respect, only few people share their knowledge and in those few spread their knowledge on air. U one in those. Plz keep going to make century. Can u plz zoom little jupyter page in next video. Thx

  • @mujtwaali
    @mujtwaali Жыл бұрын

    Uplifting session, I have seen this kind of channel very simple and easy explanation Thanx a lot

  • @shaleen2005
    @shaleen2005 Жыл бұрын

    u are doing immensely great work keep it up very nice teaching methodology an ur knowledge is tremendous on the subject

  • @GatikSky
    @GatikSkyАй бұрын

    Its really good and to the point for DA and BI experts

  • @TheUmer74
    @TheUmer74 Жыл бұрын

    Loving your teaching style ...

  • @depalvveturkar
    @depalvveturkar Жыл бұрын

    Thank you Sir for this, I had never generated any data. Also the information which you gave on boosting Kaggle profile. Thank you

  • @coding_world_live9
    @coding_world_live92 жыл бұрын

    Thanks man , wonderful tutorial

  • @ANUbhav918
    @ANUbhav918Ай бұрын

    khattam..finnish... such a superb video. hats off to you man !

  • @remosingh5881
    @remosingh588111 ай бұрын

    awesome video! thank you so much for your efforts .

  • @atifsalam6802
    @atifsalam6802 Жыл бұрын

    Bundle of thanks, you helped us lot, keep it up

  • @SACHINKUMAR-px8kq
    @SACHINKUMAR-px8kq Жыл бұрын

    Thankyou So much Sir for your Contribution 😃

  • @AbdulHannan-dg6dl
    @AbdulHannan-dg6dl Жыл бұрын

    Ek number bhai ap nay dil jeet liya bht shukriya apka ap bht achy sy sub kch bta rhy ho 😍

  • @DHARMATRIVEDI
    @DHARMATRIVEDIАй бұрын

    GOLD! Thanks a lot

  • @narendraparmar1631
    @narendraparmar16316 ай бұрын

    Thanks for sharing this quality content.😀

  • @arpitajana947
    @arpitajana9472 жыл бұрын

    I am a fan of you sir, Thanks for sharing your knowledge ! With every passing video, I m gaining a little more confidence and knowledge

  • @kalpanakanwaria4197

    @kalpanakanwaria4197

    Жыл бұрын

    I am feeling the same very unconfident but after watching his videos gaining little confidence day by day thank you for the amazing and knowledgeable videos.

  • @syedasad5037
    @syedasad5037 Жыл бұрын

    best machine learning playlist in hindi

  • @mohdfaisal4725
    @mohdfaisal4725 Жыл бұрын

    You are a savior!! Thanks a lot!

  • @grandson_f_phixis9480
    @grandson_f_phixis9480Ай бұрын

    Thank you very much sir

  • @PamTiwari
    @PamTiwari2 ай бұрын

    You are gem Sir!

  • @dhananjayyeole7076
    @dhananjayyeole7076 Жыл бұрын

    Thanks Sir!!

  • @maheshgoudapatil4408
    @maheshgoudapatil4408Ай бұрын

    Nice video sir, to understand how to use the API's in Python

  • @dhruvbhati3628
    @dhruvbhati36282 жыл бұрын

    Thank you sir😁🙌🙌

  • @richaaggarwal07
    @richaaggarwal072 жыл бұрын

    thanks a lot sir !😊

  • @HardikPatel-yn2nv
    @HardikPatel-yn2nv Жыл бұрын

    Hi..i really appreciate you..And love to listen and watching videos..many things I learnt from you.. just say..great great..bless u.thank you very much..🎉

  • @avanibaheti6117

    @avanibaheti6117

    Жыл бұрын

    hello, actually i was trying running this code but it is giving me the error that pandas do not support apped function use concat oinstead , I am not getting how to remove that problem. Would you please help me if you have run this code

  • @arjunms6035
    @arjunms60352 жыл бұрын

    Awesome🔥

  • @rohitbedse5134
    @rohitbedse51343 ай бұрын

    Respect Man ❤

  • @arthambhardwaj
    @arthambhardwajАй бұрын

    awesome content

  • @yashodhanvivek8086
    @yashodhanvivek80862 жыл бұрын

    u r awesome..

  • @vikrantchoudhary4411
    @vikrantchoudhary441111 ай бұрын

    too good!!!

  • @Sy06274
    @Sy06274 Жыл бұрын

    you are Awesome 😎😎😎😎

  • @AlayaKiDuniya
    @AlayaKiDuniya2 ай бұрын

    Well appreciated. Love from pakistan nitish sir.

  • @jinks3669
    @jinks36692 жыл бұрын

    Saraswati maa ko actual tribute to aapne diy hain bro . Naman to your dillegence.

  • @JustPython
    @JustPython9 ай бұрын

    Nice video

  • @shlokkumar6257
    @shlokkumar62575 ай бұрын

    found it sir, thank you sir.

  • @zkhan2023
    @zkhan20233 жыл бұрын

    You are the best teacher in my whole programming career love you sir for this valuable information

  • @talkswithRishabh

    @talkswithRishabh

    2 жыл бұрын

    Ya 🥺

  • @vikaskadam9842
    @vikaskadam9842 Жыл бұрын

    sir you are gem, thanks for knowledge sharing😊😊😊🙏🙏🙏🙏

  • @sandipansarkar9211
    @sandipansarkar9211 Жыл бұрын

    finished watching again for better praactice

  • @shaleen2005
    @shaleen2005 Жыл бұрын

    the jupyter cell cannot run when i am giving it the requests.get('copied url form api correctly') it shows * in respective cell number please help thx

  • @gautamsah5075
    @gautamsah50752 ай бұрын

    sir, i couldn't lfind movie section that is shown in your screen. 06:18, and not getting api option, so let me use your api. i tried with 2 google accounts.

  • @sandipansarkar9211
    @sandipansarkar9211 Жыл бұрын

    finished watching

  • @samarnaama
    @samarnaama Жыл бұрын

    #thankyou_note First of all thankyou sir for such an informative video. I am a person from a non-CS background, and so far, the series has been very much interesting. #RapidAPI_problem The issue is that I tried pulling some data from RapidAPI, but most of it has 100-200 rows. Or may be I need to explore more. It is a common issue for most of us recent learners, on how to fetch data from Rapid API. If you guide us a bit over it. That would be highly beneficial for us noobs. #My_efforts Though, I did from a website called AlphaVantage, and most of these sources, having APIs provide code too. For example, I was able to get data of IBM stock for a month. Is that all right? Any other suggestions for this?

  • @Softnichub
    @Softnichub2 жыл бұрын

    I am facing some problems with extracting links from an excel sheet to make a data frame. I have done so much research but have not done it yet. Please do help me. Thank you so much in advance.

  • @mohammadkhan596
    @mohammadkhan5963 ай бұрын

    I need the pull data from ERP to google sheet using python code then how will to do

  • @AbhishekKumar-oc9vm
    @AbhishekKumar-oc9vm Жыл бұрын

    Sir, why is DSA important for machine learning because I am thinking of learning it, but that will take me a lot of time. Should I learn DSA or not?

  • @atharvkazarid2-354
    @atharvkazarid2-354Ай бұрын

    sir. in getting error that 'AttributeError: 'DataFrame' object has no attribute 'append'' but its working using concat method.... anyone facing this issue can try this

  • @adarshkaintura2502
    @adarshkaintura25025 ай бұрын

    Sir the thing wo api link show hi nhi karra hai, kuch or hi api aara h

  • @ayeshaashraf191
    @ayeshaashraf19111 күн бұрын

    link of tmdb api in which we have to select movies and then top rated movies sir i'm not able to find top rated movies can any tell me

  • @zainfaisal3153
    @zainfaisal31537 ай бұрын

    Sir! Why don't we convert SQL and API fetched data to csv or json file and work with it easily?

  • @kshamapathak4693
    @kshamapathak46938 ай бұрын

    Hello sir.. I m not able to get the JSON file, even the option like u get to submit the API key.. just a Try it box is generated and in that my key has already pasted..result is i m getting 401 error can u help?

  • @gautamsah5075
    @gautamsah50752 ай бұрын

    sir append method did not work. on using AI suggested to use concat(df, temp) and it worked. thank you. and how to export this final data, into a file for sharing/uploading?

  • @gautamsah5075

    @gautamsah5075

    2 ай бұрын

    ok done to csv using ( df.to_csv('data.csv') )

  • @umasharma6119
    @umasharma61192 жыл бұрын

    🔥🔥

  • @suyashdahale4355
    @suyashdahale435510 ай бұрын

    I am getting KeyError 'results' when i am running loop

  • @tanmayshinde7853
    @tanmayshinde78532 жыл бұрын

    sir, can you make a video on how to use rapid API cause we are not getting API key.

  • @malik_fa

    @malik_fa

    Жыл бұрын

    Hello, see the next video of this playlist, where you are not able to get data from API or don't have API key, still you can access their data using web scraping.

  • @kiranhassankhattak6750

    @kiranhassankhattak6750

    11 ай бұрын

    ​@faisalhussain5007 can you please provide me a link

  • @jillanisofttech2977
    @jillanisofttech29772 жыл бұрын

    Sir ic ma movies k link kisyee add kryee gayee????

  • @vivekvicky748
    @vivekvicky748 Жыл бұрын

    Sir how do API from trading economics website I need crude oil prices dataset please sir reply🙏??

  • @paragvachhani4643
    @paragvachhani4643 Жыл бұрын

    Sir amazing..amazing Right now I make my first data set from API (rickandmortyapi ) ... I generate csv file too sir.. But i did all the thing on googlecolab...so i dont know where this csv file saved... I am stuff..sir I am not CS student but I want to make my carrer in DS.. So..

  • @gauravtricks8267

    @gauravtricks8267

    Жыл бұрын

    In your google drive

  • @Enjoyurlife1789

    @Enjoyurlife1789

    9 ай бұрын

    is it free?

  • @Enjoyurlife1789
    @Enjoyurlife17899 ай бұрын

    my kind of binge watching

  • @chinmaykonchada
    @chinmaykonchadaАй бұрын

    Hello sir, TMDB website is not responding. So can you suggest any other website.

  • @Star-xk5jp
    @Star-xk5jp6 ай бұрын

    day1:date:9/1/2024

  • @shahidnoorani8193
    @shahidnoorani81934 ай бұрын

    need help, i got API keys but me try kar raha hu par mujhe film rating wala api link hi nahi mila raha please help

  • @sherin7444
    @sherin74442 жыл бұрын

    for each url we are hitting different APIs right?.So each time do we need seperate API key?

  • @campusx-official

    @campusx-official

    2 жыл бұрын

    No. Same api key will work

  • @avanibaheti6117
    @avanibaheti6117 Жыл бұрын

    can anybody tell me how to fetch from rapid api

  • @user-zt3kc5we1f
    @user-zt3kc5we1f4 ай бұрын

    i am facing this error? AttributeError: 'DataFrame' object has no attribute 'append'

  • @mathics2869

    @mathics2869

    2 ай бұрын

    If you got the solution pls tell me

  • @battelbots_shots5896
    @battelbots_shots58965 ай бұрын

    why only 14 rows data is fetching ever time i hit api anyone have solution

  • @krishnakanthmacherla4431
    @krishnakanthmacherla44312 жыл бұрын

    Done

  • @omkarfadtare3054
    @omkarfadtare30542 жыл бұрын

    How to getdata using rapidapi???

  • @shineyk..9017
    @shineyk..9017 Жыл бұрын

    Sir I am getting key error:’results’. Plz help

  • @MRAgundli
    @MRAgundli3 ай бұрын

    done

  • @deepanshukohli9105
    @deepanshukohli91052 жыл бұрын

    How to find dynamically range of for loop?

  • @DataScience111

    @DataScience111

    2 жыл бұрын

    using len() function

  • @depalvveturkar
    @depalvveturkar Жыл бұрын

    Sir I am getting Key Error - 'results'. When I checked there is some issue from page 506 to 536 i am unable to download data, I have got the data before 506 page. But still around 600 movies data is missing. What needs to be done

  • @shineyk..9017

    @shineyk..9017

    Жыл бұрын

    I am also getting same error. If yours resolve plz help me.

  • @sandalagrawal8587

    @sandalagrawal8587

    Жыл бұрын

    I am also getting the same error, were you able to solve this?

  • @khan-lp1fm
    @khan-lp1fm Жыл бұрын

    Sir ya api key mujy ni day raha ha ma log b howa layqen pir b ni day raha kia karo ma es ka

  • @karanparashar6824
    @karanparashar68243 ай бұрын

    GOD

  • @usmanyousaaf
    @usmanyousaaf Жыл бұрын

    Like ATM all bank use the api

  • @avanibaheti6117

    @avanibaheti6117

    Жыл бұрын

    hello, actually i was trying running this code but it is giving me the error that pandas do not support apped function use concat instead , I am not getting how to remove that problem. Would you please help me if you have run this code

  • @afeedsm6520
    @afeedsm6520 Жыл бұрын

    I didn’t get api key

  • @devloperinsights

    @devloperinsights

    4 ай бұрын

    It is the key basically for the authentication which is considered by the providing website

  • @jaiveersingrajput7380
    @jaiveersingrajput7380 Жыл бұрын

    sir please tell how to solve this 404 error

  • @anshulsharma7080
    @anshulsharma7080 Жыл бұрын

    Sir Api key invalid bta ra h, jbki hme naya account bnane k bad hi mili h key

  • @shashwatraj3842

    @shashwatraj3842

    Жыл бұрын

    same problem

  • @anshulsharma7080

    @anshulsharma7080

    Жыл бұрын

    @@shashwatraj3842 api key shi se daalo ni btayga

  • @anshulsharma7080

    @anshulsharma7080

    Жыл бұрын

    @@shashwatraj3842 watch closely not even a single (.) is allowed with your api key

  • @123arskas
    @123arskas Жыл бұрын

    Man you're beautiful. Awesome content

  • @mahipalmahato7648
    @mahipalmahato764811 ай бұрын

    6:04

  • @shaleen2005
    @shaleen2005 Жыл бұрын

    o btw it worked it took some time

  • @adityashinde9040
    @adityashinde90402 жыл бұрын

    Sir, Rapid Api pe endpoint maang rahe hai. jo bhi endpoint denge vahi bas result fetch hota hai. to pure data ko fetch kaise kare ???

  • @arpitajana947

    @arpitajana947

    2 жыл бұрын

    Did you found the solution ?

  • @adityashinde9040

    @adityashinde9040

    2 жыл бұрын

    @@arpitajana947 no

  • @anshulsharma7080
    @anshulsharma7080 Жыл бұрын

    Code execute ni hua last m sir, in the upcoming versions append function will be removed so it is asking to use pandas. concat instead.

  • @hossain9410
    @hossain941021 күн бұрын

    i tried but rapidapi said i did not subscribe to their API

  • @sandipansarkar9211
    @sandipansarkar9211 Жыл бұрын

    finished coding

  • @saurabhbarasiya4721
    @saurabhbarasiya47213 жыл бұрын

    api create karne me issue aa raha h

  • @suahilbashir1945

    @suahilbashir1945

    2 жыл бұрын

    mjhy bhii

  • @ayeshaashraf191
    @ayeshaashraf19115 күн бұрын

    26_6_2024

  • @zee4654
    @zee46542 жыл бұрын

    ye website to verification krny pr b verification mang rha bht bkws site ye movie wali .

  • @Enjoyurlife1789
    @Enjoyurlife17899 ай бұрын

    anyone got api?

  • @ankitlakshya450
    @ankitlakshya4507 ай бұрын

    can we do this for power bi

  • @singnsoul6443
    @singnsoul6443 Жыл бұрын

    Thank you sir

  • @123arskas
    @123arskas Жыл бұрын

    Man you're beautiful. Awesome content