# Building a REST API Extractor with Python

> In this video, we will extract stock data from a REST API using Python

- Web page: https://learn.dataexpert.io/lesson/building-an-api-extractor-with-python
- Program: [The Absolutely Free Beginner Data Engineering Boot Camp starting August 14th](https://learn.dataexpert.io/program/the-absolute-beginner-data-engineering-boot-camp-starting-august-7th-6453.md)
- Access: Free — no enrollment needed
- Length: 21 min video
- Skills: Python, Git, APIs
- Academy: DataExpert.io Community Academy

## About this lesson

In this video, we will extract stock data from a REST API using Python

## Transcript excerpt

Hi, everyone. So today we're gonna be building a stock trading data extractor in Python to get us started with some of our Python fundamentals. So, uh, to get started here, we're gonna want to uh go ahead and create a polygon.io account, right? So, let's go ahead and do that real quick. I'm just gonna um sign in here. I'm gonna manage a key. I'm gonna get a new key here. Let's go ahead and get a new key. OK, cool. I got my new key. Amazing. Make sure you have this key and store it securely, right? OK, you'll use, we'll be using that key later, but, um, next up, we want to be able to set up a GitHub. So if you're gonna go to GitHub.com, you should have um some sort of account already set up. If you haven't set up your account, make sure to set up your account. This is my account here, right? So what we wanna do here is we want to click new I say new repository. And here we're gonna call this stock trading Python app. And then you can put a description, we're gonna say, uh, this uses the polygon IO API to extract data about stocks, right? And you can keep it public unless you want it to be private. If you don't want anyone to see your shit code, you can do that, uh, template, we don't have a template, uh, uh, and this looks good enough for me. So, we're gonna create. Amazing. So now, there's two ways that you can kind of do this. You can do it with GitHub Desktop or you can do it with um GitClone.

## Navigation

- Previous lesson: [GROUP BY, JOIN, and Common Table Expression Lab](https://learn.dataexpert.io/lesson/group-by-join-and-cte-lab.md)
- Next lesson: [How do data pipelines work](https://learn.dataexpert.io/lesson/how-do-data-pipelines-work.md)
