# GET /v2/referees/{id}

Group: Referees & managers

Referee profile with country, sport, career totals (matches plus yellow, red and second-yellow cards) and a per-competition breakdown of appearances, cards and penalties awarded.

Plans: Every plan, Free included.

Note: Career totals come straight from the source. competitions covers every competition the referee has officiated in, or is [] if the source lists none. Figures are not broken down by season, because the source has no such split.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `id` | path | yes | DataSportsAPI referee id, a positive integer |

## Response

- `data`: `RefereeProfile`
- `meta`: competitionCount
- Objects: RefereeProfile (https://datasportsapi.com/markdown/reference.md#refereeprofile)

## Errors

- 404 not_found — DataSportsAPI has never assigned this id

Plus the common errors (https://datasportsapi.com/markdown/docs.md#errors).

## Request

cURL:

```bash
curl -H "Authorization: Bearer sk_live_…" \
    "https://api.datasportsapi.com/v2/referees/{id}"
```

TypeScript:

```ts
const { data, meta } = await client.referees.get(id);
```

Python:

```python
res = client.referees.get(id)
```

Go:

```go
res, err := client.Referees.Get(ctx, id)
```

CLI:

```bash
$ dsa referees get <id>
```

## Example response

```json
{ "data": { "id": 51040, "name": "Thomas Bramall", "slug": "thomas-bramall", "country": { "code": "EN", "name": "England" },
    "games": 197, "yellowCards": 667, "redCards": 15, "yellowRedCards": 10, "image": "https://cdn.datasportsapi.com/v2/referees/51040/photo", "sport": "football",
    "competitions": [ { "league": { "id": 195828, "name": "Premier League", … }, "appearances": 57, "yellowCards": 229,
                        "redCards": 6, "yellowRedCards": 4, "penalties": 17 }, … ] },
  "meta": { "competitionCount": 7 } }
```

---

Base URL: https://api.datasportsapi.com. Authenticate each /v2 call with the header `Authorization: Bearer <key>` (secret keys begin with `sk_live_`).
HTML: https://datasportsapi.com/docs/people/referees-get/ · All docs: https://datasportsapi.com/markdown/docs.md · Data reference: https://datasportsapi.com/markdown/reference.md
