> For the complete documentation index, see [llms.txt](https://docs.sportmonks.com/v2/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/v2/endpoint-overview/rivals/get-rivals-by-team-id.md).

# GET Rivals by Team ID

### `GET` Rivals by Team ID

```
https://soccer.sportmonks.com/api/v2.0/teams/{ID}/rivals
```

| Endpoint details        |         |
| ----------------------- | ------- |
| Authorization           | API Key |
| Pagination              | NO      |
| Allowed nested includes | 3       |

#### Parameters

| Available parameters |                                                                                                                  |
| -------------------- | ---------------------------------------------------------------------------------------------------------------- |
| include              | Enrich the API with more data and/or nested includes. Can be used by adding `&include=` etc to your request url. |

#### Include options

`country` `squad` `coach` `transfers` `sidelined` `stats` `venue` `fifaranking` `uefaranking` `visitorFixtures` `localFixtures` `visitorResults` `latest` `upcoming` `goalscorers` `cardscorers` `assistscorers` `aggregatedGoalscorers` `aggregatedCardscorers` `aggregatedAssistscorers` `league` `activeSeasons` `trophies`

Includes are the cornerstone of our API and allow you to enrich and customize your requests. This flexibility is what distinguishes us from our competitors.&#x20;

You can learn more about what includes are and how they work here:

{% content-ref url="/pages/-MJXOeyBzTS35Z7kTf1c" %}
[Includes](/v2/tutorials/enriching-your-response/includes.md)
{% endcontent-ref %}

#### Example response

{% tabs %}
{% tab title="Request" %}

```
https://soccer.sportmonks.com/api/v2.0/teams/8/rivals?api_token={API_TOKEN}
```

{% endtab %}

{% tab title="Response" %}

```javascript
"data": {
        "id": 8,
        "legacy_id": 119,
        "name": "Liverpool",
        "short_code": "LIV",
        "twitter": "@LFC",
        "country_id": 462,
        "national_team": false,
        "founded": 1892,
        "logo_path": "https://cdn.sportmonks.com/images//soccer/teams/8/8.png",
        "venue_id": 230,
        "current_season_id": 18378,
        "is_placeholder": false,
        "rivals": {
            "data": [
                {
                    "id": 13,
                    "legacy_id": 165,
                    "name": "Everton",
                    "short_code": "EVE",
                    "twitter": "@Everton",
                    "country_id": 462,
                    "national_team": false,
                    "founded": 1878,
                    "logo_path": "https://cdn.sportmonks.com/images//soccer/teams/13/13.png",
                    "venue_id": 12,
                    "current_season_id": 18378,
                    "is_placeholder": false
                }
            ]
        }
    },
```

{% endtab %}

{% tab title="Field Description" %}

| Field               | Description                                                                                                                                                                                                      |
| ------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `id`                | The unique id of the team                                                                                                                                                                                        |
| `legacy_id`         | This was for our API version 1.0. It's only of use for old users of our API                                                                                                                                      |
| `name`              | The name of the team                                                                                                                                                                                             |
| `short_code`        | The short code of the team                                                                                                                                                                                       |
| `twitter`           | The official twitter page of the team                                                                                                                                                                            |
| `country_id`        | The unique country id the team is from                                                                                                                                                                           |
| `national_team`     | Indicates if the team is a national team                                                                                                                                                                         |
| `founded`           | The year when the team was founded                                                                                                                                                                               |
| `logo_path`         | The logo URL path of the team logo                                                                                                                                                                               |
| `venue_id`          | The official venue of the team                                                                                                                                                                                   |
| `current_season_id` | The unique id of the season the team is active in                                                                                                                                                                |
| `is_placeholder`    | Added a property on both fixture and team responses called `is_placeholder`. This property indicates if the resource is used to display dummy data. The false of this property will always be a `boolean` value. |
| {% endtab %}        |                                                                                                                                                                                                                  |
| {% endtabs %}       |                                                                                                                                                                                                                  |
