---
title: "SofaScore team players"
method: GET
path: "/sofascore/team-players"
tags: ["SofaScore"]
---

# SofaScore team players

`GET /sofascore/team-players`

## Request

- Base URL: `https://api.crawlora.net/api/v1`
- URL: `https://api.crawlora.net/api/v1/sofascore/team-players`
- Auth: API key in header `x-api-key`

Returns a team's full squad from SofaScore by team id: each player's name, position, jersey number, date of birth, height, country and preferred foot, plus SofaScore's market value estimate and its currency when available.

## Query parameters

- `id` string, required

## Headers

- `x-api-key` string, required

## Response `200`

OK

- SofascoreTeamPlayersResponseDoc
  - `code` integer
  - `data` SofascoreTeamPlayersResponse
    - `count` integer: Number of players returned.
    - `fetched_at` string: Time the data was fetched, in UTC (RFC 3339).
    - `players` SofascoreSquadPlayer[]: The team's squad.
      - `country` string: Player's country.
      - `date_of_birth` string: Date of birth (RFC 3339).
      - `height` integer: Height in centimetres.
      - `id` integer: SofaScore player id. Use it with the player endpoints.
      - `jersey_number` string: Shirt number.
      - `market_value` integer: SofaScore's estimated market value, in units of `market_value_currency`. Omitted when unavailable.
      - `market_value_currency` string: Currency of `market_value`, for example EUR.
      - `name` string: Player's full name.
      - `position` string: Position code, for example G, D, M or F.
      - `preferred_foot` string: Preferred foot, for example "Right".
      - `short_name` string: Shortened name, for example "E. Haaland".
      - `slug` string: URL slug of the player on SofaScore.
    - `source_url` string: SofaScore URL the data was read from.
    - `team_id` integer: SofaScore team id the squad belongs to.
  - `msg` string

## Other responses

- `400`: Bad Request
- `404`: Not Found
- `429`: Too Many Requests
- `503`: Service Unavailable

---

[API](https://skmtc.dev/crawlora/apis/crawlora-api.md) · [All operations](https://skmtc.dev/crawlora/apis/crawlora-api/llms.txt) · [OpenAPI document](https://skmtc.dev/crawlora/apis/crawlora-api/revisions/afac9b012a27?raw)
