---
title: "SofaScore team of the week"
method: GET
path: "/sofascore/team-of-the-week"
tags: ["SofaScore"]
---

# SofaScore team of the week

`GET /sofascore/team-of-the-week`

## Request

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

Returns one team of the week: the formation and the selected players with their SofaScore rating, team and, for round and weekly selections, the match the rating was earned in. Get the `period` id from sofascore-team-of-the-week-periods; a period that does not belong to the given competition season is rejected with 400.

## Query parameters

- `id` string, required
- `season` string, required
- `period` string, required

## Headers

- `x-api-key` string, required

## Response `200`

OK

- SofascoreTeamOfTheWeekResponseDoc
  - `code` integer
  - `data` SofascoreTeamOfTheWeekResponse
    - `count` integer
    - `fetched_at` string
    - `formation` string
    - `period` SofascoreTeamOfTheWeekPeriod
      - `created_at` string
      - `date_from` string
      - `date_to` string
      - `id` integer
      - `name` string
      - `round` integer
      - `round_name` string
      - `sequence` integer
      - `type` string
    - `players` SofascoreTeamOfTheWeekPlayer[]
      - `event` SofascoreEventSummary
        - `away_score` SofascoreScoreLine
          - `current` integer: Current score, which is the final score once the match is over.
          - `period1` integer: Score in the first period.
          - `period2` integer: Score in the second period.
        - `away_team` SofascoreTeamRef
          - `country` string: Country the team belongs to.
          - `id` integer: SofaScore team id. Use it with the team endpoints.
          - `name` string: Full team name.
          - `national` boolean: True for a national team.
          - `short_name` string: Shortened team name.
          - `slug` string: URL slug of the team on SofaScore.
        - `home_score` SofascoreScoreLine
          - `current` integer: Current score, which is the final score once the match is over.
          - `period1` integer: Score in the first period.
          - `period2` integer: Score in the second period.
        - `home_team` SofascoreTeamRef
          - `country` string: Country the team belongs to.
          - `id` integer: SofaScore team id. Use it with the team endpoints.
          - `name` string: Full team name.
          - `national` boolean: True for a national team.
          - `short_name` string: Shortened team name.
          - `slug` string: URL slug of the team on SofaScore.
        - `id` integer: SofaScore event id. Use it with the event endpoints.
        - `slug` string: URL slug of the match on SofaScore.
        - `start_time` string: Start time in UTC (RFC 3339).
        - `start_timestamp` integer: Start time as a Unix timestamp in seconds.
        - `status` SofascoreEventStatus
          - `code` integer: SofaScore's numeric status code, for example 0 for not started and 100 for ended.
          - `description` string: Status as displayed, for example "Ended".
          - `type` string: Status group, for example `notstarted`, `inprogress` or `finished`.
        - `tournament` SofascoreTournamentRef
          - `category` string: Category the tournament sits under, usually a country or region.
          - `id` integer: SofaScore id of the tournament the match is filed under. The seasons, standings and round endpoints take `unique_tournament_id` instead.
          - `name` string: Tournament name.
          - `slug` string: URL slug of the tournament on SofaScore.
          - `unique_tournament_id` integer: Id of the parent competition. This is the tournament id the tournament-seasons, standings and round-events endpoints take.
          - `unique_tournament_name` string: Name of the parent competition.
        - `winner_code` integer: Result code: 1 when the home side won, 2 when the away side won, 3 for a draw. Omitted until the match is decided.
      - `jersey_number` string
      - `order` integer
      - `player` SofascorePlayerRef
        - `country` string: Player's country.
        - `id` integer: SofaScore player id. Use it with the player endpoints.
        - `name` string: Player's full name.
        - `position` string: Position code, for example G, D, M or F.
        - `short_name` string: Shortened name, for example "F. Torres".
        - `slug` string: URL slug of the player on SofaScore.
      - `rating` number
      - `team` SofascoreTeamRef
        - `country` string: Country the team belongs to.
        - `id` integer: SofaScore team id. Use it with the team endpoints.
        - `name` string: Full team name.
        - `national` boolean: True for a national team.
        - `short_name` string: Shortened team name.
        - `slug` string: URL slug of the team on SofaScore.
    - `season_id` integer
    - `source_url` string
    - `tournament_id` integer
  - `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)
