Endpoints for Back-end
Learn about the endpoints used at the back-end to know how a parameter is referred to in the API-Football database.
We'll cover the following...
This lesson will briefly discuss endpoints used on the back-end to get information. We can then use them as query parameters with the other endpoints. These endpoints include the following:
- Timezone
- Countries
- Leagues
- Rounds
We will look at each one of these endpoints to learn where and how we can use them.
Timezone endpoint
The timezone endpoint provides the list of available time zones. These time zones are used as a query parameter in fixtures endpoint. The base URI for this endpoint is https://v3.football.api-sports.io/timezone
. It contains all the existing time zones so it does not need to be updated.
This endpoint does not require any query parameter.
The widget below contains the code for listing time zones. Click the “Run” button below to get the list of the timezones.
import requestsimport jsonURL="https://v3.football.api-sports.io/timezone"header = {'x-rapidapi-host': "v3.football.api-sports.io",'x-rapidapi-key': "{{API_key}}"}response = requests.request("GET", URL, headers=header).json()print(json.dumps(response, indent=4))
- The