Get Started

Set up your credentials to get the API key for accessing the endpoints and widgets.

We'll cover the following

Before we access the API-Football for any data, we will need an API key. An API key is a token that a client provides when making API calls. In this lesson, we will learn how to get an API key for our requests.

Create an account

To get an API key for API-Football, we first need to create an account either on the API-Football website or the RAPID API website. Both of these accounts have associated keys that we can use. For this course, we will create our account on the API-Football website.

Go to the API-Football registration page, enter your credentials, and click on the “Sign Up” button to create the account. You will receive a validation link in the associated email. Click that link to validate your account. Then, you will be redirected to your dashboard.

Get the API key

Now that we have set up our account, we will have an associated API key that we can use with our requests. To get the API key:

  • Click on the “Account” button in the navigation bar on the left side of the dashboard. A menu will appear.
  • Select “My Access” from the menu. This will take you to a page with all the API keys associated with your account, as shown below:
  • Copy the API key associated with football, since this is the one we will be using.

Now that we have our API key, let’s save it for this course. Click on the “Edit” button below. Enter your API key and click “Save” to use it throughout the course.

print "Your API key is {{API_key}}"