Throughout this tutorial, we'll walk you through the creation of an Airbyte source to read and extract data from an HTTP API.
We'll build a connector reading data from the Exchange Rates API, but the steps apply to other HTTP APIs you might be interested in integrating with.
The API documentations can be found here. In this tutorial, we will read data from the following endpoints:
Latest Rates Endpoint
Historical Rates Endpoint
With the end goal of implementing a
Source with a single
Stream containing exchange rates going from a base currency to many other currencies.
The output schema of our stream will look like the following:
Exchange Rates API Setup
Before we get started, you'll need to generate an API access key for the Exchange Rates API. This can be done by signing up for the Free tier plan on Exchange Rates API:
- Visit https://exchangeratesapi.io and click "Get free API key" on the top right
- You'll be taken to https://apilayer.com -- finish the sign up process, signing up for the free tier
- Once you're signed in, visit https://apilayer.com/marketplace/exchangerates_data-api#documentation-tab and click "Live Demo"
- Inside that editor, you'll see an API key. This is your API key.
- An Exchange Rates API key
- Python >= 3.9
- Docker must be running
Next, we'll create a Source using the connector generator.