Scores

The scores array provides a granular breakdown of points or goals scored by each team, categorized by specific periods of the match.

Field Definitions

FieldTypeDescription
fixture_idintegerUnique identifier for the specific match/event.
team_idintegerUnique identifier for the team the score belongs to.
valueintegerThe numerical score/goals recorded for the period.
developer_nameenumA machine-readable string identifying the time period.

Developer Name Values

The developer_name field uses the following constant values to describe the match state:

type_idValueDescription
11ST_HALFTotal goals scored during the first half.
22ND_HALFThe total score at the end of the second half.
32ND_HALF_ONLYGoals scored exclusively during the second half period.
4ET_1ST_HALFGoals scored during the first period of extra time.
5ET_2ND_HALFGoals scored during the second period of extra time.
6ETTotal score at the conclusion of all extra time periods.
7PENALTY_SHOOTOUTTotal successful penalties recorded in a shootout.
8CURRENTThe total live score for the team at the current moment.

This types are from developer_type: period


Example Implementation

{
  "scores": [
    {
      "fixture_id": 1033370,
      "team_id": 3585,
      "value": 2,
      "developer_name": "1ST_HALF"
    },
    {
      "fixture_id": 1033370,
      "team_id": 3585,
      "value": 4,
      "developer_name": "CURRENT"
    }
  ]
}