# Endpoint

This endpoint provides Information about an ongoing or completed sport event. Apart from the general information related to the match it provides info related for example to score changes, yellow cards, corner kicks, etc.

The actual endpoint is event-specific and the actual attributes vary slightly between sports.

**How to call the endpoint?**

To call the endpoint for a specific match, the ID of the match must be inserted in the call as per the following example:

```
/v1/sports/{language}/sport_events/sr:match:14704749/timeline.xml
```

&#x20;**Endpoint Parameters**

| Parameter                                                 | Description                                         | Possible Values                                                                                                                  |
| --------------------------------------------------------- | --------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
| <p><em>language</em></p><p><strong>Required</strong></p>  | Language code for translation.                      | See all supported languages and their codes on [language support](https://docs.sportradar.com/uof/introduction/language-support) |
| <p><em>urn\_type</em></p><p><strong>Required</strong></p> | The type of event to look up.                       | sr:match, sr:stage                                                                                                               |
| <p><em>match\_id</em></p><p><strong>Required</strong></p> | The ID for the sport event to get fixture data from | e.g. 48665175                                                                                                                    |

## Information about an ongoing sport event

> Detailed information (including event timeline) for a sport event. Prematch, Live or Post-match. Prematch info is very brief. Postmatch the results are there. \[XML schema]\(<https://sportradar-unifiedfeed.s3.eu-central-1.amazonaws.com/xsd/endpoints/unified/match\\_timeline.xsd>)

```json
{"openapi":"3.0.3","info":{"title":"Betradar API","version":"1.0.0"},"servers":[{"url":"https://global.api.betradar.com/v1"}],"security":[{"key":[]}],"components":{"securitySchemes":{"key":{"type":"apiKey","in":"header","name":"x-access-token"}}},"paths":{"/sports/{language}/sport_events/sr:{urn_type}:{id}/timeline.xml":{"get":{"summary":"Information about an ongoing sport event","description":"Detailed information (including event timeline) for a sport event. Prematch, Live or Post-match. Prematch info is very brief. Postmatch the results are there. [XML schema](https://sportradar-unifiedfeed.s3.eu-central-1.amazonaws.com/xsd/endpoints/unified/match_timeline.xsd)","operationId":"matchTimeline","tags":["Sport event information"],"parameters":[{"name":"language","description":"Language code for translation.","in":"path","required":true,"schema":{"type":"string"},"default":"en"},{"name":"urn_type","description":"Displays the results for the specified id. This id could be sr:match:<id> for a match, sr:stage:<id> for a race, or sr:tournament:<id> for outrights on a tournament.","in":"path","required":true,"schema":{"type":"string","enum":["match","stage"]},"default":"match"},{"name":"id","description":"The ID for the sport event.","in":"path","required":true,"schema":{"type":"integer"},"default":8696826}],"responses":{"200":{"description":"successful operation","content":{"application/xml":{}}},"401":{"description":"Unauthorized","content":{"application/json":{}}},"403":{"description":"Access denied","content":{"application/json":{}}},"500":{"description":"Internal server error","content":{"application/json":{}}}}}}}}
```
