Response Elements
Look at some important elements of the objects we get in response to the API calls.
Elements in team
object
The table below contains some important elements of the team
object:
Response fields | Type | Description |
| Integer | This is the Api-Football assigned ID of the team. |
| String | This field contains the name of the team. |
| String | This is the Api-Football assigned code of the team. |
| String | This shows which country the team belongs to. |
| Integer | This field specifies the year in which the team was founded. |
| Boolean | This signifies whether the team is a national team or a domestic team. In case of |
| String | This field contains a link for the logo of the team. |
Elements in venue
object
Following are some important elements of the venue
object:
Response fields | Type | Description |
| Integer | This is the ID of the venue. |
| String | This is the name of the venue. |
| String | This is the address of the venue. |
| String | This field represents the city in which the venue is located |
| Integer | This informs us about the maximum capacity of the stadium. |
| String | This tells us what kind of pitch is being used in the venue, such as grass or turf. |
| String | This field contains a link for an image of the venue. |
Elements in fixtures
object
These are some important elements of the fixtures
object:
Response fields | Type | Description |
| Object | This object contains information about the number of matches played by the team in the specified season. |
| Object | This object contains information about the number of matches the team won in the specified season. |
| Object | This object contains information about the number of matches drawn by the team in the specified season. |
| Object | This object contains information about the number of matches lost by the team in the specified season. |
Elements in league
object
Below are some important elements of the league
object:
Response fields | Type | Description |
| Integer | This is the ID of the league. |
| String | This is the name of the league. |
| String | This represents the name of the country whose league is retrieved in the response. |
| String | This contains a link for the logo of the league. |
| String | This contains a link to a picture of the flag of the country to which the league is affiliated. |
| Integer | This specifies the season for which the information is retrieved. |
Elements in standings
object
The table below contains some important elements of the standings
object that we get in response:
Response fields | Type | Description |
| Integer | This is the rank of a team in the league. |
| Object | This object contains information about the team at a specific rank. |
| Integer | This field specifies the points gained by the team. |
| Integer | This represents the goal difference of a team. |
| String | This shows the result of the last five matches of the team. |
| String | This shows whether the team has decreased or increased its rank or stayed the same. |
| String | This shows whether the team is qualifying for a cup or being relegated. |
| Object | This object contains the number of matches won, lost, and drawn by the team. |
| Object | This object contains the number of home matches won, lost, and drawn by the team. |
| Object | This object contains the number of away matches won, lost, and drawn by the team. |
| String | This is the time in which the retrieved information was updated. |
Elements in fixture
object
These are some important elements of the fixture
object:
Response fields | Type | Description |
| Integer | This is the database ID of the fixture. |
| String | This field contains the name of the referee of the fixture. |
| String | This is the timezone for which the time of the fixture is indicated. |
| String | This represents the date on which the fixture is scheduled. |
| String | This field is the encoded time of the fixture. |
| Object | This object contains the start time of the first and second half of the fixture in encoded form. |
| Object | This object contains information about the stadium. |
| Object | This object contains information about the current position of the fixture and the elapsed minutes. |
Elements in statistics
object
Some important elements of the statistics
object are listed below:
Response fields | Type | Description |
| Object | This object contains information about the match contribution of the player. |
| Integer | This is the number of times the player strayed offside. |
| Object | This object contains information about the shots taken by the player. |
| Object | This object contains information about the goals scored and conceded by the player. |
| Object | This object contains the passing statistics of the player. |
| Object | This object contains information about the tackles made by the player. |
| Object | This contains information about the duels the player was involved in during the match. |
| Object | This object contains the dribbling stats of the player. |
| Object | This object contains the fouls drawn and conceded by the player. |
| Object | This object contains the number of red or yellow cards given to the player by the officials. |
| Object | This object contains the penalties given and taken by the player. |
Elements in player
object
Some important elements of the player
object are as below:
Response fields | Type | Description |
| Integer | This is the Api-Football assigned ID of the player. |
| String | This field is the name of the player. |
| Integer | This is the age of the player. |
| Object | This object contains the date, place, and country of birth of the player. |
| String | This tells us the nationality of the player. |
| String | This is the height of the player in cm. |
| String | This is the weight of the player in kg. |
| Boolean | This tells us whether the player is injured or not at the time of the API call. |
| String | This field contains the link for a photo of the player. |