SofaScore

SofaScore event commentary

Returns a match's text commentary (minute, type, text, and the players involved, plus the running score on scoring lines) from SofaScore, newest first. Works for football and basketball matches that have commentary. An empty comments list is a valid response (a live match with no lines yet). Returns 404 when SofaScore has no commentary for the match, which includes matches that have not started.

get/sofascore/event-comments

Request

  • Base URL: https://api.crawlora.net/api/v1
  • URL: https://api.crawlora.net/api/v1/sofascore/event-comments
  • Auth: API key in header x-api-key

Query parameters

idstring required

Numeric SofaScore event (match) id

Headers

x-api-keystring required

API key required

Response

OK

codeinteger
msgstring

Example response

{
  "code": 200,
  "data": {
    "comments": [
      {
        "assist": {
          "id": 839956,
          "jersey_number": "9",
          "name": "Erling Haaland",
          "position": "F",
          "short_name": "E. Haaland",
          "slug": "erling-haaland"
        },
        "minute": 94,
        "penalty_drawn_by": {
          "id": 839956,
          "jersey_number": "9",
          "name": "Erling Haaland",
          "position": "F",
          "short_name": "E. Haaland",
          "slug": "erling-haaland"
        },
        "period": "2ND",
        "player": {
          "id": 839956,
          "jersey_number": "9",
          "name": "Erling Haaland",
          "position": "F",
          "short_name": "E. Haaland",
          "slug": "erling-haaland"
        },
        "player_in": {
          "id": 839956,
          "jersey_number": "9",
          "name": "Erling Haaland",
          "position": "F",
          "short_name": "E. Haaland",
          "slug": "erling-haaland"
        },
        "player_out": {
          "id": 839956,
          "jersey_number": "9",
          "name": "Erling Haaland",
          "position": "F",
          "short_name": "E. Haaland",
          "slug": "erling-haaland"
        },
        "text": "Attempt saved. Malick Fofana (Sunderland) right footed shot.",
        "type": "shotSaved"
      }
    ],
    "event_id": 16363867
  },
  "msg": "OK"
}

Changes

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