Teams Information

Learn how to get a team's information using API-Football.

The API endpoints discussed so far only give us platform-related information and are of no practical use for the front-end. In the following lessons, we will discuss endpoints that will provide information we can use at the front-end.

The teams endpoint provides the list of available teams. The base URI for this endpoint is https://v3.football.api-sports.io/teams.

Query parameters

We can use the following query parameters for this endpoint:

Parameters

Type

Category

Description

id

integer

optional

This is the ID of the team we want to search for.

name

string

optional

This is the name of the team.

league

integer

optional

This contains the ID of the league we want to search for. It can be retrieved using the leagues endpoint.

season

integer

optional

This is the season of the league. The format is "YYYY".

country

string

optional

This is the name of the country whose team we want to search for.

search

string

optional

These are the initials for the team or the country name. They should be a minimum of 3 characters.

We need to use at least one of these parameters with this ...