Working with APIs in Python [For Your Data Science Project] @stratascratch
Working with APIs in Python [For Your Data Science Project]  @stratascratch
Uploaded April 2021 | Updated September 2026, 2 hours ago
We’re going to be working with the Youtube API to collect video statistics from my channel using the requests python library to make an API call and save it as a pandas dataframe. Working with APIs is a necessary skillset for all data scientists and should be incorporated into your data science projects. I talk about the one data science project you’ll ever need in this video bit.ly/3rEt6WG so we’ll start with the first step and learn how to work with APIs in python to collect our data.

The python notebook and links to resources are located in this Github repo: github.com/Strata-Scratch/api-youtube/blob/main/README.md

Link to the video referred to in the Intro: youtube.com/watch?v=c4Af2FcgamA

______________________________________________________________________

πŸ‘‰ Subscribe to my channel: bit.ly/2GsFxmA
πŸ‘‰ Playlist for more data science interview questions and answers: bit.ly/3jifw81
πŸ‘‰ Playlist for data science interview tips: bit.ly/2G5hNoJ
πŸ‘‰ Practice more real data science interview questions: platform.stratascratch.com/coding?utm_source=youtube&utm_medium=click&utm_campaign=YT+description+link

______________________________________________________________________

Timeline:

Intro: (0:00​​​​)
Coding on Google Colab: (2:00​​​​)
Testing with the Requests Library: (4:16​​​​)
Working with the YouTube API: (6:32​​​​)
Response from Making API Call: (11:00​​​​)
Data is in the 'items' Key: (12:22​​​​)
Parsing through the Data: (12:57​​​​)
Creating the Loop: (16:17​​​​)
Making a Second API Call: (18:30​​​​)
Saving to a Pandas DataFrame: (20:31​​​​)
Implementing Good Software Engineering Fundamentals: (22:40​​​​)
Conclusion: (27:03​​​​)

______________________________________________________________________

If you want data science interview practice with real data science interview questions, visit platform.stratascratch.com/coding?utm_source=youtube&utm_medium=click&utm_campaign=YT%20description%20link&utm_content=APIs%20in%20Python​​​​. All questions are free and you can even execute SQL and python code in the IDE, but if you want to check out the solutions from me or from other users, you can use ss15 for a 15% discount on the premium plans.

______________________________________________________________________

Contact:

If you have any questions, comments, or feedback, please leave them here!
Feel free to also email me at nathan@stratascratch.com
______________________________________________________________________

#PythonAPI
Working with APIs in Python [For Your Data Science Project]2026 Trends in Data Science EfficiencyHard SQL Interview Question from Wine MagazineHow Most Analysts Get Retention Wrong in SQLHow To Use Python Window Functions | Solving Amazon Data Science Interview QuestionHow To Handle Multicollinearity and Feature Selection [DoorDash Data Science Project]An Analysis of 900 Data Science Interview Questions | Data Science Interview GuideWhen Not to Use Machine LearningDoorDash Medium Level SQL Interview QuestionSQL Basics: How to Join Multiple Tables in SQL and the Importance of LEFT JOIN vs INNER JOINThe Data Science Industry Has a Problem (And Youre Part of It)Data Science SQL Interview Question Walkthrough [Microsoft] - Window Function: Ranking
StrataScratch |

Working with APIs in Python [For Your Data Science Project]

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER