---
title: "SofaScore esports game detail"
method: GET
path: "/sofascore/esports-game"
tags: ["SofaScore"]
---

# SofaScore esports game detail

`GET /sofascore/esports-game`

## Request

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

Returns one resource of one esports game from SofaScore, chosen with `part`: `statistics` (team totals such as kills, towers and barracks for Dota 2, gold and drakes for League of Legends), `lineups` (every player with hero or champion and per-player statistics such as net worth, gold or ADR), `bans` (banned heroes or champions per side) and `rounds` (Counter-Strike round history with outcome, winner and side per round, including overtime). Only the requested block is returned. Get the game id from sofascore-event-esports-games. Statistics and bans exist for Dota 2 and League of Legends only (404 for Counter-Strike), rounds fill for Counter-Strike only (an empty list otherwise) and lineups work for all three. Returns 404 when SofaScore has no such data for the game.

## Query parameters

- `id` string, required
- `part` 'statistics' | 'lineups' | 'bans' | 'rounds', required

## Headers

- `x-api-key` string, required

## Response `200`

OK

- SofascoreEsportsGameResponseDoc
  - `code` integer
  - `data` SofascoreEsportsGameResponse
    - `bans` SofascoreEsportsGameBans
      - `away` SofascoreEsportsCharacter[]
        - `id` integer
        - `name` string
        - `slug` string
      - `home` SofascoreEsportsCharacter[]
        - `id` integer
        - `name` string
        - `slug` string
    - `fetched_at` string
    - `game_id` integer
    - `lineups` SofascoreEsportsGameLineups
      - `away_players` SofascoreEsportsPlayerLine[]
        - `character` SofascoreEsportsCharacter
          - `id` integer
          - `name` string
          - `slug` string
        - `flags` object
        - `player` SofascorePlayerBrief
          - `id` integer
          - `jersey_number` string
          - `name` string
          - `position` string
          - `short_name` string
          - `slug` string
        - `role` string
        - `statistics` object
      - `home_players` SofascoreEsportsPlayerLine[]
        - `character` SofascoreEsportsCharacter
          - `id` integer
          - `name` string
          - `slug` string
        - `flags` object
        - `player` SofascorePlayerBrief
          - `id` integer
          - `jersey_number` string
          - `name` string
          - `position` string
          - `short_name` string
          - `slug` string
        - `role` string
        - `statistics` object
    - `part` string
    - `rounds` SofascoreEsportsGameRounds
      - `normaltime` SofascoreEsportsRound[]
        - `home_team_side` string
        - `home_team_side_code` integer: HomeTeamSideCode is the side the home team played this round: 4 is terrorist and 5 is counter-terrorist; HomeTeamSide names it.
        - `outcome` string
        - `outcome_code` integer: OutcomeCode is SofaScore's round-result code. In Counter-Strike 0 is an elimination, 1 a defused bomb, 2 an exploded bomb and 3 a round lost on time; Outcome names it.
        - `winner_code` integer: WinnerCode is 1 for the home side and 2 for the away side.
      - `overtime` SofascoreEsportsRound[]
        - `home_team_side` string
        - `home_team_side_code` integer: HomeTeamSideCode is the side the home team played this round: 4 is terrorist and 5 is counter-terrorist; HomeTeamSide names it.
        - `outcome` string
        - `outcome_code` integer: OutcomeCode is SofaScore's round-result code. In Counter-Strike 0 is an elimination, 1 a defused bomb, 2 an exploded bomb and 3 a round lost on time; Outcome names it.
        - `winner_code` integer: WinnerCode is 1 for the home side and 2 for the away side.
      - `overtime_chunk_size` integer
      - `rounds_in_a_half` integer
    - `source_url` string
    - `statistics` SofascoreEsportsGameStatistics
      - `away` SofascoreEsportsTeamStatistics
        - `flags` object
        - `statistics` object
      - `home` SofascoreEsportsTeamStatistics
        - `flags` object
        - `statistics` object
  - `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)
