On this page we list the standard nested objects structures that we use in our football API responses.
Competition
A competition is a standard object that reflects the tournament in which matches are happening. These competitions could be: domestic, international, leagues, cups, as well as club or national teams competitions. There are 2 "competitions" that are exception of these rules and they are the club friendlies (ID: 370) and the national teams friendlies (ID: 371)
{
"competition": {
"tier": 1,
"is_cup": false,
"has_groups": true,
"id": 27,
"active": true,
"name": "GO-JEK Liga 1",
"is_league": true,
"national_teams_only": false
}
}| Name | Type | Example | Description |
|---|---|---|---|
| tier | number | 1 | This value represents the level that a competition occupies within the national competition pyramid. As an example, the English Premier League sits at tier 1 while the EFL Championship is placed at tier 2. |
| is_cup | bool | true | This flag tells you whether the competition is a cup true such as The FA Cup, Coppa Italia, UEFA Champions League, or FIFA World Cup, or false when you are dealing with a league like Serie A or The Bundesliga. |
| is_league | bool | false | This field works as the counterpart to is_cup. When is_league returns true you are looking at league data such as the English Premier League. When it returns false you are looking at a cup competition such as Svenska Cupen. |
| has_groups | bool | true | This indicates if the competition includes groups with standings. If the value is true then groups are present. If the value is false the competition uses only direct elimination matches, as is the case with the FA Cup. For more detail you can query the competitions groups API endpoint and the competition standings API endpoint. |
| id | number | 244 | This is the unique identifier for the competition inside our database. You can pass it as a filter to multiple football API endpoints including the livescores API, fixtures API, and matches history API. To obtain the competition id for the competition you need, use the competitions listing API endpoint. |
| active | bool | true | This shows whether the competition is still running. When it is active the value is true. It may be false for competitions that no longer take place, such as the FIFA Confederations Cup (ID: 270). |
| name | string | Ligue 1 | This is the official name of the competition. |
| national_teams_only | bool | true | This tells you if only national country teams can take part in the competition, as with Copa America (true), or if it is a club competition (false) like La Liga. |
Country
A country is a standard object that represents the nation where matches take place. You will find this object attached to every data type that operates on a national level. For international level data the federation standard object is used instead. In those situations the country value comes back as null.
{
"country": {
"is_real": true,
"id": 78,
"uefa_code": "GRE",
"name": "Greece",
"fifa_code": "GRE",
"flag": "GRE.png"
}
}| Name | Type | Example | Description |
|---|---|---|---|
| id | number | 78 | This is the unique identifier for the country stored in our database. You can pass it as a filter to a wide range of football API endpoints including the livescores API, fixtures API, matches history API, teams listing API, competitions listing API and many others. |
| name | string | England | This is the official name of the country. |
| is_real | bool | true | This flag tells you if the entry is a real country (value is true) or a legacy country (value is false). This field remains from the period when international football federations such as FIFA, UEFA, and AFC were not treated as a separate entity and were instead handled as non real countries. |
| uefa_code | string | ESP | This is the three letter code that identifies the country through its UEFA membership. The abbreviation is commonly seen in live television broadcasts and online football match streams to label the national team of a country in the score bar. Only countries that are UEFA members carry a value for this key. All other countries return an empty string. |
| fifa_code | string | ESP | This is the three letter code that identifies the country through its FIFA membership. The abbreviation is also frequently used in live television broadcasts and online football match streams to label the national team of a country in the score bar. Every country that is a FIFA member carries a value for this key. All other countries return an empty string. |
Edition
An edition acts as the bridge between a competition and a season. A competition is a tournament such as the English Premier League, a season is a worldwide time window during which competitions are played, and an edition is one specific annual cycle of that competition. To illustrate, the FIFA World Cup (Competition ID: 362) has separate editions for the 2022 and 2018 seasons. Editions let you split data across the different cycles of the same competition, for example the top goalscorers.
{
"edition": {
"id": 683,
"season_id": 11,
"is_current": true
}
}| Name | Type | Example | Description |
|---|---|---|---|
| id | number | 683 | This is the id of the edition. |
| season_id | number | 11 | This is the id of the season in which the edition of the competition takes place. The id of a season is not the same as the name of the season. For more detail on this topic, see our seasons football API endpoint. |
| is_current | bool | true | This flag tells you whether the edition is the one currently being played or whether it is an older or historical edition. |
Federation
A federation is a standard object that represents the international football association where matches take place. Some of the federations are FIFA, UEFA, AFC, CAF, OFC, CONMEBOL, CONCACAF, and IOC.
{
"federation": {
"id": 4,
"name": "AFC"
}
}| Name | Type | Example | Description |
|---|---|---|---|
| id | number | 1 | This is the unique identifier for the federation inside our database. You can use it as a filter across multiple football API endpoints such as the teams listing API, competitions listing API and many others. |
| name | string | FIFA | This is the official name of the federation. |
Odds
The odds object holds two nested objects, live and pre. Each of them contains three elements: "1", "X", and "2". These represent the betting odds for a home team win (1), a draw (X), and an away team win (2). The pre key stores the odds from before the match kicked off and those values stay fixed. The live object stores the in play match odds and those values update as the match moves along.
The live odds are only included in certain packages. For more detail on this coverage, check our pricing page. These odds are averaged across a large number of bookmakers so that the full time odds from all of them are narrowed down to a single number.
{
"odds": {
"live": {
"1": 9,
"2": 1.3600000000000000976996261670137755572795867919921875,
"X": 4.3300000000000000710542735760100185871124267578125
},
"pre": {
"1": 3.79999999999999982236431605997495353221893310546875,
"2": 1.8000000000000000444089209850062616169452667236328125,
"X": 3.399999999999999911182158029987476766109466552734375
}
}
}| Name | Type | Example | Description |
|---|---|---|---|
| live.1 | number | 1.90 | This is the averaged odd for a home team win at the end of regular time (90 minutes). The value updates as the match moves along. |
| live.X | number | 2.90 | This is the averaged odd for a draw at the end of regular time (90 minutes). The value updates as the match moves along. |
| live.2 | number | 3.90 | This is the averaged odd for an away team win at the end of regular time (90 minutes). The value updates as the match moves along. |
| pre.1 | number | 1.90 | This is the averaged odd for a home team win at the end of regular time (90 minutes). The value stays fixed once the match kicks off. |
| pre.X | number | 2.90 | This is the averaged odd for a draw at the end of regular time (90 minutes). The value stays fixed once the match kicks off. |
| pre.2 | number | 3.90 | This is the averaged odd for an away team win at the end of regular time (90 minutes). The value stays fixed once the match kicks off. |
Outcomes
The outcomes object stores the betting result for the different phases of a match. These phases cover the end of the first half, full time (90 minutes), the end of extra time (120 minutes), and finally the end of the penalty shootout. Each of the four outcome sections can hold one of four values:
* 1 means the home team is ahead at the end of that period
* X means the score is level at the end of that period
* 2 means the away team is ahead at the end of that period
* null means the period has not finished yet or does not apply to this match
{
"outcomes": {
"half_time": "X",
"full_time": "1",
"extra_time": null,
"penalty_shootout": null
}
}| Name | Type | Example | Description |
|---|---|---|---|
| half_time | char | X | This is the betting outcome at the end of the 1st half (45 minutes), or null if the first half has not finished yet. |
| full_time | char | X | This is the betting outcome at the end of the 2nd half (90 minutes), or null if the second half has not finished yet. |
| extra_time | char | X | This is the betting outcome at the end of the 2nd half of extra time (120 minutes), or null if that half has not finished yet or never took place. |
| penalty_shootout | char | 1 | This is the betting outcome at the end of the penalty shootout, or null if the shootout has not finished yet or never took place. This value can never be X because the whole point of a penalty shootout in a football match is to produce a decisive winner. |
Player
The player object holds general information about a football player.
{
"player": {
"id": 9559,
"name": "Cristiano Ronaldo"
}
}| Name | Type | Example | Description |
|---|---|---|---|
| id | number | 9559 | This is the unique identifier for the player inside our database. |
| name | string | Cristiano Ronaldo | This is the name of the player. |
Scores
The scores object holds 5 keys that store the scores the match had at the end of each match period. This object works hand in hand with the outcomes since the outcomes are derived from the scores.
{
"scores": {
"score": "1 - 0",
"ht_score": "0 - 0",
"ft_score": "1 - 0",
"et_score": "",
"ps_score": ""
}
}| Name | Type | Example | Description |
|---|---|---|---|
| score | string | 1 - 0 | This holds the current match score or the final match score, with the exception of the penalty shootout. Before the match begins this field returns ? - ?. If the match status is IN PLAY the score reflects the current score. If the match is in HALF TIME BREAK or FINISHED the score holds the score at the end of the first half (45 minutes) or the score at the end of regular time (90 minutes) respectively. If the match finished after extra time (for example the match time has the value AET) then the score holds the score at the end of the 120 minutes of play. The penalty shootout score is never reflected here. |
| ht_score | string | 2 - 1 | This is the score of the match at the end of the 45 minutes, if that point was reached. |
| ft_score | string | 2 - 3 | This is the score of the match at the end of the 90 minutes, if that point was reached. |
| et_score | string | 3 - 3 | This is the score of the match at the end of the 120 minutes, if applicable. |
| ps_score | string | 4 - 1 | This is the score from the penalty shootout alone. That means only the goals scored during the shootout. Goals scored during play time, including extra time, are never added into this field. |
Season
Seasons are time periods that span anywhere from 1 to 2 years. Competition editions are held during these periods. Seasons come in 2 types: a full year such as 2023 and a cross year such as 2023/2024. To learn more about seasons check our seasons football API endpoint.
{
"season": {
"id": 11,
"name": "2022",
"start": "2022-01-01",
"end": "2022-12-31"
}
}| Column1 | Column2 | Column3 | Column4 |
|---|---|---|---|
| id | number | 11 | This is the id of the season. |
| name | string | 2024 | This is the name of the season. |
| start | string | 2024-01-01 | This is the start date of the season. |
| end | string | 2024-12-31 | This is the end date of the season. |
Team
The team object holds data about a football team. You will come across it either in the teams listing API or across various football API match related endpoints such as the livescores API, fixtures API, and matches history API.
{
"team": {
"stadium": "Estadio F\u00e9lix Capriles",
"id": 279,
"logo": "https:\/\/cdn.live-score-api.com\/teams\/a9ac0075f7236648796cf757658e4e06.png",
"name": "Jorge Wilstermann",
"country_id": "60"
}
}| Name | Type | Example | Description |
|---|---|---|---|
| id | number | 279 | This is the unique identifier for the team inside our database. You can use it to cross reference the same team across response data from various football API endpoints as well as a filter in some API endpoints like the livescores API. |
| name | string | Jorge Wilstermann | This is the name of the football team, either in English or in the requested language if the package you selected from our pricing page supports team name translations. |
| country_id | number | 60 | This is the unique identifier of the country the team belongs to. |
| stadium | string | The Wembley Stadium | This is the name of the stadium where the team usually plays its home games. |
| logo | url | This is a link to our CDN where you can fetch the team logo. Retrieving team logos does not count as a request against your quota. |