# \<period\_scores>

#### About period\_scores <a href="#uofapi-less-than-period_scores-greater-than-aboutperiod_scores" id="uofapi-less-than-period_scores-greater-than-aboutperiod_scores"></a>

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 <a href="#uofapi-less-than-period_scores-greater-than-xmlexample" id="uofapi-less-than-period_scores-greater-than-xmlexample"></a>

Here follows an example of period scores.

```xml
<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 <a href="#uofapi-less-than-period_scores-greater-than-attributesofperiod_score" id="uofapi-less-than-period_scores-greater-than-attributesofperiod_score"></a>

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 | <p><br></p>                                                                                                                                         |
| *away\_score*         | score of the away team at a certain period of the match | number                                                      | numeric | <p><br></p>                                                                                                                                         |
| *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                               | <p>"regular\_period"</p><p>"overtime"</p><p>"penalties"</p> | string  | <p><br></p>                                                                                                                                         |
| *number*              | number of the period                                    | number                                                      | numeric |                                                                                                                                                     |
