# GET All Teams

### `GET` All Teams

```
https://cricket.sportmonks.com/api/v2.0/teams
```

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

#### 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.                                                     |
| filter               | <p>Array of fields to filter on. Can be used by adding <code>\&filter\[{field you want to filter}].</code><br>For example: <code>\&filter\[name]=Pakistan.</code></p> |
| fields\[object]      | Only return fields you are interested in. Simply add `&fields[object]=id,name,code`  to your request url.                                                             |
| sort                 | One or comma separated list of fields to sort on. Can be used by adding `&sort=` to your request url.                                                                 |

**Filters**

`name` `country_id`

**Sort**

You can sort on all fields.

#### Include options

`country` `results` `fixtures` `squad`

{% hint style="info" %}
Note that for the squads include you need to add a season\_id filter to only get the squad for a certain season. If not provided it will returns all players that have ever played for the requested team. e.g. \&filter\[season\_id]=
{% endhint %}

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="../../getting-started/enriching-your-response" %}
[enriching-your-response](https://docs.sportmonks.com/v2/cricket-api/getting-started/enriching-your-response)
{% endcontent-ref %}

#### Example response

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

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

{% endtab %}

{% tab title="Response" %}

```javascript
    "data": [
        {
            "resource": "teams",
            "id": 1,
            "name": "Pakistan",
            "code": "PAK",
            "image_path": "https://cdn.sportmonks.com/images/cricket/teams/1/1.png",
            "country_id": 190324,
            "national_team": true,
            "updated_at": "2018-11-29T11:47:20.000000Z"
        },
        {
            "resource": "teams",
            "id": 10,
            "name": "India",
            "code": "IND",
            "image_path": "https://cdn.sportmonks.com/images/cricket/teams/10/10.png",
            "country_id": 190324,
            "national_team": true,
            "updated_at": "2018-11-29T11:47:20.000000Z"
        },
        {
            "resource": "teams",
            "id": 36,
            "name": "Australia",
            "code": "AUS",
            "image_path": "https://cdn.sportmonks.com/images/cricket/teams/4/36.png",
            "country_id": 190324,
            "national_team": true,
            "updated_at": "2018-11-29T11:47:20.000000Z"
        },
        {
            "resource": "teams",
            "id": 37,
            "name": "Bangladesh",
            "code": "BGD",
            "image_path": "https://cdn.sportmonks.com/images/cricket/teams/5/37.png",
            "country_id": 190324,
            "national_team": true,
            "updated_at": "2018-11-29T11:47:20.000000Z"
        },
        {
            "resource": "teams",
            "id": 38,
            "name": "England",
            "code": "ENG",
            "image_path": "https://cdn.sportmonks.com/images/cricket/teams/6/38.png",
            "country_id": 190324,
            "national_team": true,
            "updated_at": "2019-01-29T11:07:04.000000Z"
        },
        {
            "resource": "teams",
            "id": 39,
            "name": "Sri Lanka",
            "code": "LKA",
            "image_path": "https://cdn.sportmonks.com/images/cricket/teams/7/39.png",
            "country_id": 190324,
            "national_team": true,
            "updated_at": "2019-08-31T12:20:09.000000Z"
        },
        {
            "resource": "teams",
            "id": 40,
            "name": "South Africa",
            "code": "ZAF",
            "image_path": "https://cdn.sportmonks.com/images/cricket/teams/8/40.png",
            "country_id": 190324,
            "national_team": true,
            "updated_at": "2019-08-31T12:31:16.000000Z"
        },
        {
            "resource": "teams",
            "id": 41,
            "name": "Zimbabwe",
            "code": "ZIM",
            "image_path": "https://cdn.sportmonks.com/images/cricket/teams/9/41.png",
            "country_id": 190324,
            "national_team": true,
            "updated_at": "2019-06-17T14:45:03.000000Z"
        },
        {
            "resource": "teams",
            "id": 42,
            "name": "New Zealand",
            "code": "NZL",
            "image_path": "https://cdn.sportmonks.com/images/cricket/teams/10/42.png",
            "country_id": 190324,
            "national_team": true,
            "updated_at": "2019-08-31T12:32:06.000000Z"
        },
        {
            "resource": "teams",
            "id": 43,
            "name": "West Indies",
            "code": "WI",
            "image_path": "https://cdn.sportmonks.com/images/cricket/teams/11/43.png",
            "country_id": 190324,
            "national_team": true,
            "updated_at": "2018-11-29T11:47:20.000000Z"
        },
```

{% endtab %}
{% endtabs %}
