<period_scores>

About period_scores

The period scores element and its sub-element period score are present in the 'summary' endpoint and in the 'timeline' endpoint and they are extremely significant as they report the results for the match.

This is useful information for those matches which are not covered live.

Each period score element provides info about the outcome of a part of the match which can be different according to the sport. The example provides the result of a soccer match with 2 regular half times, over time, and penalties with related scores.

XML Example

Here follows an example of period scores.

<period_scores>
        <period_score home_score="0" away_score="0" match_status_code="6" type="regular_period" number="1"/>
        <period_score home_score="1" away_score="1" match_status_code="7" type="regular_period" number="2"/>
        <period_score home_score="1" away_score="1" match_status_code="40" type="overtime" number="3"/>
        <period_score home_score="3" away_score="5" match_status_code="50" type="penalties" number="4"/>
</period_scores>

Attributes of period_score

As you see in the above example snippet, <period_score> is the sub-element of <period_scores> element

Table below provides info related to the attributes in the period_score sub-element.

Attribute

meaning

possible values

type

Note

home_score

score of the home team at a certain period of the match

number

numeric

away_score

score of the away team at a certain period of the match

number

numeric

match_status_code

code of the match status

6,7,40,50

numeric

In the period_score the match_status_code can assume just values of "overtime", "penalties" and in all other cases it will be "regualar_period"

type

description of the period

"regular_period"

"overtime"

"penalties"

string

number

number of the period

number

numeric

Last updated

Was this helpful?