SofaScore

SofaScore esports game detail

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.

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

Query parameters

idstring required

Numeric SofaScore esports game id from sofascore-event-esports-games

part'statistics' | 'lineups' | 'bans' | 'rounds' required

Which resource of the game to return

Headers

x-api-keystring required

API key required

Response

OK

codeinteger
msgstring

Example response

{
  "code": 200,
  "data": {
    "bans": {
      "away": [
        {
          "id": 1638,
          "name": "Witch Doctor",
          "slug": "witch-doctor"
        }
      ],
      "home": [
        {
          "id": 1638,
          "name": "Witch Doctor",
          "slug": "witch-doctor"
        }
      ]
    },
    "game_id": 588883,
    "lineups": {
      "away_players": [
        {
          "character": {
            "id": 1638,
            "name": "Witch Doctor",
            "slug": "witch-doctor"
          },
          "player": {
            "id": 839956,
            "jersey_number": "9",
            "name": "Erling Haaland",
            "position": "F",
            "short_name": "E. Haaland",
            "slug": "erling-haaland"
          },
          "role": "mid"
        }
      ],
      "home_players": [
        {
          "character": {
            "id": 1638,
            "name": "Witch Doctor",
            "slug": "witch-doctor"
          },
          "player": {
            "id": 839956,
            "jersey_number": "9",
            "name": "Erling Haaland",
            "position": "F",
            "short_name": "E. Haaland",
            "slug": "erling-haaland"
          },
          "role": "mid"
        }
      ]
    },
    "part": "lineups",
    "rounds": {
      "normaltime": [
        {
          "home_team_side": "counter_terrorist",
          "home_team_side_code": 5,
          "outcome": "bomb_defused",
          "outcome_code": 1,
          "winner_code": 1
        }
      ],
      "overtime": [
        {
          "home_team_side": "counter_terrorist",
          "home_team_side_code": 5,
          "outcome": "bomb_defused",
          "outcome_code": 1,
          "winner_code": 1
        }
      ],
      "overtime_chunk_size": 3,
      "rounds_in_a_half": 12
    }
  },
  "msg": "OK"
}

Changes

No recorded changes to this operation across all 2 revisions of this API.