Exploring APIs with Python What is an API?

Learning objective: By the end of this lesson, students will be able to explain what an API is and why they are useful in application development.

Lesson Duration
What is an API? 10 min

Our Learning Goals:

Clipboard Image

What Are APIs?


External Data

Have you ever needed information that wasn’t ready to go in a file? Things like reference information, up-to-the-minute updated data, or data from an external vendor or another team within your organization?

How did you go about sourcing that information, and what problems did you encounter?

Information on Demand

APIs, or application programming interfaces, are data sources that can give you access to information from all sorts of places on the internet. Simply put, an API is a system that receives requests and returns responses.

API Request Image

Many websites show their users information from third-party sources.

💡 Thanks to APIs, you can use Python to request and use information from all across the web — whether it’s a weather report, a stock price, or the latest news headlines. It’s time for our programs to become full-fledged citizens of the internet by interacting with other applications.

It’s All Interfaces?

We encounter interfaces in our daily lives all the time.

Here are a couple of examples:

APIs allow us to use programming as an interface with other systems. We don’t necessarily care about the inner workings on the other end, we just know how to make things happen.

What Kind of Data Is Served Up With an API?

It’d be difficult to find data that doesn’t have an API. Common uses are:

An extensive list of public APIs can be found here: Public APIs

Feel free to open that link and browse through the enormous list of APIs - there are APIs for nearly everything.