2.6 Using APIs
Sometimes you want to acquire data that already exists, instead of collecting it on your own. A very common way of retrieving data is through APIs, which stands for Application Programing Interface.
API Introduction
▲ What Are APIs? - Simply Explained
As shown in the video, APIs come in many forms, and have many functionalities. We are going to focus on one specific type of API: Web APIs.
Web APIs (worksheet)
We will discuss what a web API is, as well as how to use Python to access and retrieve data from servers. The linked worksheet is a guided walkthrough that covers the following concepts.
⊕ client/server, endpoints, REST
⊕requests
,json
, API key, payload