> For the complete documentation index, see [llms.txt](https://docs.sportmonks.com/v3/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sportmonks.com/v3/endpoints-and-entities/entities/team-player-squad-coach-and-referee.md).

# Team, Player, Squad, Coach and Referee

### Team

#### Related **endpoints**

{% content-ref url="/pages/wHSYmfcXebRRoJNlf4RS" %}
[Teams](/v3/endpoints-and-entities/endpoints/teams.md)
{% endcontent-ref %}

#### **Field Description**

<table><thead><tr><th>Field</th><th width="268.3333333333333"></th><th>Type</th></tr></thead><tbody><tr><td>sport_id</td><td>Refers to the sport of the team</td><td>integer</td></tr><tr><td>country_id</td><td>Refers to the country of the team</td><td>integer</td></tr><tr><td>venue_id</td><td>Refers to the home venue of the team</td><td>integer</td></tr><tr><td>gender</td><td>Indicates the gender of the team</td><td>string</td></tr><tr><td>name</td><td>The name of the team</td><td>string</td></tr><tr><td>short_code</td><td>The short code of the team</td><td>string / null</td></tr><tr><td>image_path</td><td>Image path to the team logo</td><td>string</td></tr><tr><td>founded</td><td>The founding date of the team</td><td>integer</td></tr><tr><td>type</td><td>Indicates the type of the team</td><td>string</td></tr><tr><td>placeholder</td><td>Indicates if the team is a placeholder</td><td>boolean</td></tr><tr><td>last_played_at</td><td>Returns the date and time of the last played match of the team</td><td>integer</td></tr></tbody></table>

#### Include options

[`sport`](https://docs.sportmonks.com/v3/core-api/) [`country`](https://docs.sportmonks.com/v3/core-api/) [`venue`](/v3/endpoints-and-entities/entities/other.md#venue) [`coaches`](#coach) [`rivals`](/v3/endpoints-and-entities/entities/other.md#rival) [`players.player`](#player) [`latest`](/v3/endpoints-and-entities/entities/fixture.md#fixture) [`upcoming`](/v3/endpoints-and-entities/entities/fixture.md#fixture) [`seasons`](/v3/endpoints-and-entities/entities/league-season-schedule-stage-and-round.md#season) [`activeSeasons`](/v3/endpoints-and-entities/entities/league-season-schedule-stage-and-round.md#season) [`sidelined`](#sidelined) [`sidelinedHistory`](#sidelined) [`statistics`](/v3/endpoints-and-entities/entities/statistic.md#teamstatistic) [`socials`](/v3/endpoints-and-entities/entities/other.md#social) [`trophies`](/v3/endpoints-and-entities/entities/other.md#participanttrophy) [`rankings`](/v3/endpoints-and-entities/entities/other.md#ranking)

{% hint style="warning" %}
Note: The `players` include returns a list of team metadata for the team players, like the jersey number, the start and end date, and the position and transfer IDs. **The `id` field of each item is not the same as the player ID itself, use the `player_id` field to retrieve this ID instead.** Alternatively, use `players.player` nested include to include the player data.
{% endhint %}

{% hint style="info" %}
The `latest` include on `Team` returns the team's most recently played fixtures (confirmed via testing: up to 40 fixtures, spanning approximately 8 months back). The `upcoming` include returns the team's next scheduled fixtures (confirmed via testing: up to 30 fixtures, spanning approximately 7-8 months ahead). Neither include is paginated. For a guaranteed date range instead of this fixture-count-based window, use the Fixtures by Date Range for Team endpoint.
{% endhint %}

**Sorting options**

`name`

### Player

#### Related **endpoints**

{% content-ref url="/pages/1SXfIt9gmoVhqNLbelJD" %}
[Players](/v3/endpoints-and-entities/endpoints/players.md)
{% endcontent-ref %}

#### **Field Description**

<table><thead><tr><th>Field</th><th width="268.3333333333333">Description</th><th>Type</th></tr></thead><tbody><tr><td>id</td><td>Refers to the unique id of the player</td><td>integer</td></tr><tr><td>sport_id</td><td>Refers to the sport of the player</td><td>integer</td></tr><tr><td>country_id</td><td>Refers to the country of the player</td><td>integer</td></tr><tr><td>nationality_id</td><td>Refers to the nationality of the player</td><td>integer</td></tr><tr><td>city_id</td><td>Refers to the birthcity of the player</td><td>string</td></tr><tr><td>position_id</td><td>Refers to the position of the player</td><td>integer</td></tr><tr><td>detailed_position_id</td><td>Refers to the detailed position of the player</td><td>integer</td></tr><tr><td>type_id</td><td>Refers to the type of the player</td><td>integer</td></tr><tr><td>common_name</td><td>Refers to the name the player is known for</td><td>string</td></tr><tr><td>firstname</td><td>Refers to the first name of the player</td><td>string</td></tr><tr><td>lastname</td><td>Refers to the last name of the player</td><td>string</td></tr><tr><td>name</td><td>Refers to the name of the player</td><td>string</td></tr><tr><td>display_name</td><td>Refers to the name that is often used to display in applications</td><td>string</td></tr><tr><td>image_path</td><td>Image path to player headshot</td><td>string</td></tr><tr><td>height</td><td>Refers to the height of the player</td><td>integer</td></tr><tr><td>weight</td><td>Refers to the weight of the player</td><td>integer</td></tr><tr><td>date_of_birth</td><td>Refers to the date of birth of the player</td><td>string</td></tr><tr><td>gender</td><td>Refers to the gender of the player</td><td>string</td></tr></tbody></table>

#### Include options

[`sport`](https://docs.sportmonks.com/v3/core-api/) [`country`](https://docs.sportmonks.com/v3/core-api/) [`city`](https://docs.sportmonks.com/v3/core-api/) [`nationality`](https://docs.sportmonks.com/v3/core-api/) [`transfers`](/v3/endpoints-and-entities/entities/other.md#transfer) [`pendingTransfers`](/v3/endpoints-and-entities/entities/other.md#transfer) [`teams.team`](#team) [`statistics`](/v3/endpoints-and-entities/entities/statistic.md#playerstatistic) [`latest`](/v3/endpoints-and-entities/entities/fixture.md#fixture) [`position`](https://docs.sportmonks.com/v3/core-api/) [`detailedPosition`](https://docs.sportmonks.com/v3/core-api/)  [`lineups`](/v3/endpoints-and-entities/entities/fixture.md#lineup) [`metadata`](/v3/endpoints-and-entities/entities/other.md#metadata) [`trophies`](/v3/endpoints-and-entities/entities/other.md#participanttrophy)

{% hint style="warning" %}
Note: The `teams` include returns a list of team metadata for this player, like the jersey number, the start and end date, and the position and transfer IDs. **The `id` field of each item is not the same as the team ID itself, use the `team_id` field to retrieve this ID instead.** Alternatively, use `teams.team` nested include to include the team data.&#x20;
{% endhint %}

{% hint style="info" %}
The `latest` include on `Player` returns their lineup records for appearances in fixtures played in the last 6 months.
{% endhint %}

{% hint style="info" %}
The `metadata` include on `Player` returns an array of key-value records, each shaped `{id, metadatable_id, type_id, value_type, values}`. Confirmed available: **Preferred Foot** (`type_id: 229`), returned as `value_type: "string"` with `values` set to `"left"` or `"right"`. Not all players have metadata populated, the array may be empty.
{% endhint %}

**Sorting options**

`name`

### Coach

#### Related **endpoints**

{% content-ref url="/pages/YVvQd6EWQgzpKY4e6ikJ" %}
[Coaches](/v3/endpoints-and-entities/endpoints/coaches.md)
{% endcontent-ref %}

**Field Description**

| Field            | Description                                                    | Type    |
| ---------------- | -------------------------------------------------------------- | ------- |
| <p></p><p>id</p> | Refers to the unique id of the coach                           | integer |
| player\_id       | Refers to the player related to the coach                      | integer |
| sport\_id        | Refers to the sport related to the coach                       | integer |
| country\_id      | Refers to the country of the coach                             | integer |
| nationality\_id  | Refers to the nationality of the coach                         | integer |
| city\_id         | Refers to the birthcity of the coach                           | string  |
| common\_name     | Returns to the common name of the coach                        | string  |
| firstname        | Returns the first name of the coach                            | string  |
| lastname         | Returns the last name of the coach                             | string  |
| name             | Returns the first and last name of the coach                   | string  |
| display\_name    | Returns the name that is often used to display in applications | string  |
| image\_path      | Image path to the coach' headshot                              | string  |
| height           | Returns the height of the coach                                | integer |
| weight           | Returns the weight of the coach                                | integer |
| date\_of\_birth  | Returns the date of birth of the coach                         | string  |
| gender           | Returns the gender of the coach                                | string  |

#### Include options

[`country`](https://docs.sportmonks.com/v3/core-api/) [`teams`](#team) [`statistics`](/v3/endpoints-and-entities/entities/statistic.md#coachstatistic) [`nationality`](https://docs.sportmonks.com/v3/core-api/) [`trophies`](/v3/endpoints-and-entities/entities/other.md#participanttrophy) [`fixtures`](/v3/endpoints-and-entities/entities/fixture.md#fixture) [`player`](#player) [`latest`](/v3/endpoints-and-entities/entities/fixture.md#fixture)

{% hint style="info" %}
The `latest` include on `Coach` returns information about their appearances of fixtures played in the last 6 months.
{% endhint %}

**Sorting options**

`name`

### Team Squad

#### Available in endpoints

{% content-ref url="/pages/b0M5PucU18JSNRx4dAmV" %}
[Team Squads](/v3/endpoints-and-entities/endpoints/team-squads.md)
{% endcontent-ref %}

#### Field Description

| Field                  | Description                                                   | Type           |
| ---------------------- | ------------------------------------------------------------- | -------------- |
| id                     | Refers to the unique id of the squad record                   | integer        |
| transfer\_id           | Refers to the id of the transfer of the squad record          | integer / null |
| player\_id             | Refers to the id of the player in the squad                   | integer        |
| team\_id               | Refers to the team id of the squad                            | integer        |
| position\_id           | Refers to the position id of the player in the squad          | integer        |
| detailed\_position\_id | Refers to the detailed position id of the player in the squad | integer        |
| jersey\_number         | Returns the jersey number of the player in the squad          | integer        |
| start                  | Returns the start contract date of the player                 | string         |
| end                    | Returns the end contract date of the player                   | string         |

#### Includes

[`team`](#team) [`player`](#player) [`position`](https://docs.sportmonks.com/v3/core-api/) [`detailedPosition`](https://docs.sportmonks.com/v3/core-api/) [`transfer`](/v3/endpoints-and-entities/entities/other.md#transfer)

### Referee

**Available in endpoints**

{% content-ref url="/pages/G2VLDjGfnUVzPAbUHGgS" %}
[Referees](/v3/endpoints-and-entities/endpoints/referees.md)
{% endcontent-ref %}

**Field Description**

| Field            | Description                                                    | Type    |
| ---------------- | -------------------------------------------------------------- | ------- |
| <p></p><p>id</p> | Refers to the unique id of the referee                         | integer |
| sport\_id        | Refers to the sport related to the referee                     | integer |
| country\_id      | Refers to the country of the referee                           | integer |
| nationality\_id  | Refers to the nationality of the referee                       | integer |
| city\_id         | Refers to the birthcity of the referee                         | string  |
| common\_name     | Returns to the common name of the referee                      | string  |
| firstname        | Returns the first name of the referee                          | string  |
| lastname         | Returns the last name of the referee                           | string  |
| name             | Returns the first and last name of the referee                 | string  |
| display\_name    | Returns the name that is often used to display in applications | string  |
| image\_path      | Image path to the referees' headshot                           | string  |
| height           | Returns the height of the referee                              | integer |
| weight           | Returns the weight of the referee                              | integer |
| date\_of\_birth  | Refers to the date of birth of the referee                     | string  |
| gender           | Returns the gender of the referee                              | string  |

#### Include options

[`sport`](https://docs.sportmonks.com/v3/core-api/) [`country`](https://docs.sportmonks.com/v3/core-api/) [`statistics`](/v3/endpoints-and-entities/entities/statistic.md#refereestatistic) [`nationality`](https://docs.sportmonks.com/v3/core-api/) [`city`](https://docs.sportmonks.com/v3/core-api/) [`latest`](/v3/endpoints-and-entities/entities/fixture.md#fixture)

{% hint style="info" %}
The `latest` include on `Referee` returns information about their appearances of fixtures played in the last 6 months.
{% endhint %}

**Sorting options**

`name`

### Sidelined

The `sidelined` entity represents a single period during which a player was unavailable for selection, due to injury or suspension. It is **not available as a standalone endpoint**, it's only accessible as an include on the **teams**, **players**, and **fixtures** endpoints.

```http
https://api.sportmonks.com/v3/football/teams/{team_id}
?api_token=YOUR_TOKEN&include=sidelined.type
```

#### Field

| Field          | Description                                              | Type           |
| -------------- | -------------------------------------------------------- | -------------- |
| `id`           | Unique identifier for this sidelined record              | integer        |
| `player_id`    | The player affected                                      | integer        |
| `team_id`      | The team the player was registered to during this period | integer        |
| `season_id`    | The season this record belongs to                        | integer / null |
| `type_id`      | The nature of the absence, decode via the `type` include | integer        |
| `category`     | `"injury"` or `"suspension"`                             | string         |
| `start_date`   | When the unavailability began                            | string         |
| `end_date`     | When it ended, `null` if the player is still unavailable | string / null  |
| `games_missed` | Running count of games missed during this period         | integer        |
| `completed`    | Whether the player has returned to availability          | boolean        |

{% hint style="info" %}
&#x20;`season_id` has been observed as `null` on all records tested. Don't rely on season-based filtering or grouping of sidelined data until this is confirmed to populate reliably.
{% endhint %}

#### Example response

```json
{
  "id": 535357,
  "player_id": 4237085,
  "type_id": 561,
  "category": "suspension",
  "team_id": 53,
  "season_id": null,
  "start_date": "2023-11-27",
  "end_date": null,
  "games_missed": 162,
  "completed": false,
  "type": {
    "id": 561,
    "name": "Suspended",
    "code": "suspended",
    "developer_name": "SUSPENDED",
    "model_type": "injury_suspension",
    "stat_group": null
  }
}
```

#### Nested includes

* **`type`** - Adds the human-readable label for the absence (e.g. "Suspended", "Achilles tendon problems"), returns the full type object shown above
* **`sideline`** (`sidelined.sideline`) - Adds further detail about the specific absence record, where available
* **`player`** (`sidelined.player`) - Adds the full player record

#### sidelinedHistory

Available on the **teams** endpoint only. Returns the complete historical record of every unavailability period for every player at the club, including periods that have already been resolved (`completed: true`), rather than only current absences.

```http
https://api.sportmonks.com/v3/football/teams/{team_id}
?api_token=YOUR_TOKEN&include=sidelinedHistory
```

Field shape is identical to `sidelined` above.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.sportmonks.com/v3/endpoints-and-entities/entities/team-player-squad-coach-and-referee.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
