SofaScore

SofaScore event pre-game form

Returns each side's form going into a match: league position, points (football) or win-loss record (basketball) in value with the label that names it, the average player rating where SofaScore has one, and the recent results (W, D, L) in the order SofaScore returns them. Covers football and basketball; returns 404 when SofaScore has no pre-game form for the match, which includes tennis matches.

get/sofascore/event-pregame-form

Request

  • Base URL: https://api.crawlora.net/api/v1
  • URL: https://api.crawlora.net/api/v1/sofascore/event-pregame-form
  • 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": {
    "away": {
      "avg_rating": 7.91,
      "form": [
        "W",
        "W",
        "W",
        "W"
      ],
      "position": 1,
      "value": "12"
    },
    "event_id": 16363867,
    "home": {
      "avg_rating": 7.91,
      "form": [
        "W",
        "W",
        "W",
        "W"
      ],
      "position": 1,
      "value": "12"
    },
    "label": "Pts"
  },
  "msg": "OK"
}

Changes

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