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

# SofaScore team competitions

`GET /sofascore/team-tournaments`

## Request

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

Lists the competitions a team plays in, each with id, name, slug, category and sport. By default (`all=false`) it returns the competitions the team currently takes part in; with `all=true` it returns every competition the team has been recorded in, including friendlies and older tournaments. Competition ids can be used as `tournament_id` elsewhere in the SofaScore endpoints; use team-player-statistics-seasons for the seasons that have statistics. Returns 404 when SofaScore has no competitions for the team.

## Query parameters

- `id` string, required
- `all` boolean

## Headers

- `x-api-key` string, required

## Response `200`

OK

- SofascoreTeamTournamentsResponseDoc
  - `code` integer
  - `data` SofascoreTeamTournamentsResponse
    - `all` boolean
    - `count` integer
    - `fetched_at` string
    - `source_url` string
    - `team_id` integer
    - `tournaments` SofascoreUniqueTournamentBrief[]
      - `category` string
      - `gender` string
      - `id` integer
      - `name` string
      - `slug` string
      - `sport` string
  - `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/0497899e2016?raw)
