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

Array of fields to filter on. Can be used by adding &filter[{field you want to filter}]. For example: &filter[name]=Pakistan.

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

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]=

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.

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

Example response

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

Last updated