---
title: "SofaScore event esports games"
method: GET
path: "/sofascore/event-esports-games"
tags: ["SofaScore"]
---

# SofaScore event esports games

`GET /sofascore/event-esports-games`

## Request

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

Returns the games (maps) of an esports match from SofaScore: each game's id, status, start time, length in seconds, winner, score per side (kills for Dota 2 and League of Legends, rounds with half and overtime split for Counter-Strike), the map for Counter-Strike, and whether complete statistics exist. Use a game `id` with sofascore-esports-game to read its statistics, lineups, bans or rounds. Returns 404 when SofaScore has no games for the event, which includes sports other than esports.

## Query parameters

- `id` string, required

## Headers

- `x-api-key` string, required

## Response `200`

OK

- SofascoreEventEsportsGamesResponseDoc
  - `code` integer
  - `data` SofascoreEventEsportsGamesResponse
    - `count` integer
    - `event_id` integer
    - `fetched_at` string
    - `games` SofascoreEsportsGame[]
      - `away_score` SofascoreEsportsGameScore
        - `display` integer: Display is the headline score: kills in Dota 2 and League of Legends, rounds won in Counter-Strike.
        - `overtime` integer
        - `period1` integer
        - `period2` integer
      - `has_complete_statistics` boolean: HasCompleteStatistics reports whether the per-game statistics, lineups and bans are complete.
      - `home_score` SofascoreEsportsGameScore
        - `display` integer: Display is the headline score: kills in Dota 2 and League of Legends, rounds won in Counter-Strike.
        - `overtime` integer
        - `period1` integer
        - `period2` integer
      - `home_team_starting_side_code` integer: HomeTeamStartingSideCode is SofaScore's code for the side the home team started on. In Counter-Strike 4 is terrorist and 5 is counter-terrorist.
      - `id` integer
      - `length_seconds` integer: LengthSeconds is the game length; omitted while the game is running.
      - `map` SofascoreEsportsGameMap
        - `id` integer
        - `name` string
      - `start_time` string
      - `start_timestamp` integer
      - `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`.
      - `winner_code` integer: WinnerCode is 1 for the home side, 2 for the away side, 0 until decided.
    - `source_url` 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/afac9b012a27?raw)
