
Python API Tutorials
If I want data from websites like Twitter, Facebook, or Youtube or something like that then it is better to use their public APIs instead of scraping the data manually. For this reason, I completed two tutorials offered by DataQuest to learn how to use public APIs to get data: o The first tutorial “Python API Tutorial: Getting Started with APIs” by Celeste Grupman at Dataquest. In this tutorial, I learned: • What an API is • Types of requests and response codes • How to make a get request • How to make a request with parameters • How to display and extract JSON data from an API Project: To query a simple API to retrieve data about the International Space Station (ISS). You can find this tutorial at https://www.dataquest.io/blog/python-api-tutorial/ o The second intermediary-level tutorial “Tutorial: Getting Music Data with the Last.fm API using Python” by Celeste Grupman at Dataquest. Project: Built a dataset of popular artists using the www.Last.fm API: • Authenticate with an API using an API key • Use pagination to collect larger responses from an API endpoint • Use rate-limiting to stay within the guidelines of an API • Augmenting the data using a second www.Last.fm API Endpoint • Process the data using panda You can find this tutorial at https://www.dataquest.io/blog/last-fm-api-python/