Skip to main content
GET
List players
Use it to find a player_id. More ways to look up IDs: Finding IDs.

Authorizations

Authorization
string
header
required

Your API key, sent as Authorization: Bearer YOUR_API_KEY. Get one at https://www.thestatsapi.com/api-keys

Query Parameters

page
integer
default:1

Page number, starting at 1. meta.total_pages tells you how many there are

Required range: x >= 1
per_page
integer
default:20

Results per page (default 20, max 100). The older name limit also works the same way

Required range: 1 <= x <= 100
team_id
string

Only players currently at this team

position
string

G (goalkeeper), D (defender), M (midfielder) or F (forward). Full words such as goalkeeper or forward also work

Part of the player's name, at least 3 characters (shorter returns 400). Ignores case and accents ("odegaard" finds "Ødegaard"), and treats hyphens and spaces the same ("hudson odoi" finds "Hudson-Odoi"). For searches, meta.total is capped at 1000

Minimum string length: 3
sort
enum<string>
default:relevance

relevance (default) puts the best matches for search first. name sorts A to Z. Without search, results are A to Z either way

Available options:
relevance,
name
player_ids
string

Comma-separated player IDs. Returns only these players

Response

A page of players.

data
object[]
meta
object