Member-only story
Extracting data from a REST API using Python
Simpler and more reliable than web scraping for getting data from the web.
I want to show you how you can use Python’s module ‘requests’ to gather information from an API.
This can be very useful if you want to analyze data from a website or service that provides a REST API for developers to access.
I’ve been using this to gather data to practice my data analytics skills, and learning how it works opens several possibilities if you want to build a data analytics portfolio.
First, let’s cover a little bit of background about what is a REST API.
What is an API and why you might want to use one?
Coincidentally, API is Italian for “bees”
API stands for Application Programming Interface, and, in the broadest sense, the term is used to describe a piece of software that allows other software programs to communicate.
It is, in fact, an interface.
Software that lets other software programs exchange information by providing a…








