SofaScore team squad

GET https://api.api.sh/sofascore/v1/team/players
1 credit / call sports try it in the playground →

The squad of a team: position, shirt number, height, preferred foot, nationality, date of birth, contract end and market value, plus foreign and national-team players.

Every response includes credits_used: the credits this call cost.

Part of the SofaScore API: 28 endpoints with prices, use cases and example responses.

Parameters

nametypedescription
team_idrequired string SofaScore team id or a team link (sofascore.com/football/team/arsenal/42). 42 = Arsenal. Example: 42

Every endpoint also takes fresh, raw, fields (see lean responses and caching).

Example

curl "https://api.api.sh/sofascore/v1/team/players?team_id=42" \
  -H "x-api-key: $APISH_KEY"

Response

A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).

Example response (real call, trimmed: lists cut to 2 items, long text shortened, raw left out)

{"team_id": 42,"count": 33,"players": [{"id": 804508,"name": "Viktor Gyökeres","slug": "viktor-gyokeres","position": "F","shirt_number": 14,"height": 187,"preferred_foot": "Right","country": "Sweden","date_of_birth": "1998-06-04T00:00:00.000Z","contract_until": "2030-06-30T00:00:00.000Z","market_value": {"value": 52000000,"currency": "EUR"},"url": "https://www.sofascore.com/football/player/viktor-gyokeres/804508"},{"id": 934235,"name": "Bukayo Saka","slug": "bukayo-saka","position": "F","shirt_number": 7,"height": 178,"preferred_foot": "Left","country": "England","date_of_birth": "2001-09-05T00:00:00.000Z","contract_until": "2030-06-30T00:00:00.000Z","market_value": {"value": 115000000,"currency": "EUR"},"url": "https://www.sofascore.com/football/player/bukayo-saka/934235"},"… 31 more"],"foreign_players": [{"id": 866469,"name": "Bruno Guimarães","slug": "bruno-guimaraes","position": "M","shirt_number": 39,"height": 182,"preferred_foot": "Right","country": "Brazil","date_of_birth": "1997-11-16T00:00:00.000Z","contract_until": "2030-06-30T00:00:00.000Z","market_value": {"value": 77000000,"currency": "EUR"},"url": "https://www.sofascore.com/football/player/bruno-guimaraes/866469"},{"id": 869792,"name": "Gabriel Magalhães","slug": "gabriel-magalhaes","position": "D","shirt_number": 6,"height": 190,"preferred_foot": "Left","country": "Brazil","date_of_birth": "1997-12-19T00:00:00.000Z","contract_until": "2029-06-30T00:00:00.000Z","market_value": {"value": 70000000,"currency": "EUR"},"url": "https://www.sofascore.com/football/player/gabriel-magalhaes/869792"},"… 15 more"],"national_players": [{"id": 547410,"name": "Martin Ødegaard","slug": "martin-degaard","position": "M","shirt_number": 8,"height": 178,"preferred_foot": "Left","country": "Norway","date_of_birth": "1998-12-17T00:00:00.000Z","contract_until": "2028-06-30T00:00:00.000Z","market_value": {"value": 88000000,"currency": "EUR"},"url": "https://www.sofascore.com/football/player/martin-degaard/547410"},{"id": 581310,"name": "David Raya","slug": "david-raya","position": "G","shirt_number": 1,"height": 186,"preferred_foot": "Right","country": "Spain","date_of_birth": "1995-09-15T00:00:00.000Z","contract_until": "2028-06-30T00:00:00.000Z","market_value": {"value": 33000000,"currency": "EUR"},"url": "https://www.sofascore.com/football/player/david-raya/581310"},"… 11 more"],"cached": false,"credits_used": 1}
The fastest way to see the full response is the playground: it runs this endpoint with your account and shows the exact JSON.