# Sport Event Information

**Sport Event**

A Sport event is a match/race/competition. Every message contains information about exactly one Sport event. So for example, an odds change message typically includes odds changes to any markets for a particular match (Sports event).

*Example Odds change message (*&#x58;ML exampl&#x65;*)*

```xml
<odds_change product="1" event_id="sr:match:14011583" timestamp="1522772129383">
  <sport_event_status status="0" match_status="0"/>
  <odds>
.... Info about markets....
 </odds>
</odds_change>
```

### **Sport Event Information** <a href="#uofsporteventinformation-sporteventinformation" id="uofsporteventinformation-sporteventinformation"></a>

All sport events have a unique ID. This unique ID is how the Sport Event is identified in the messages. The API then provides endpoints that allow you to look up fixture information for a given SportsEvent ID.

AMQP messages contain basic information about an event like event IDs, event status, market odds and probabilities, whereas additional information can be obtained from the API. The complete information about a sport event can only be tapped by using AMQP message data and API information.

<figure><img src="https://1868790214-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1KlIQPveu0EGYCTI8DL1%2Fuploads%2FbHDLfFfyvuo18TuATXVv%2Fsport-event-information.png?alt=media&#x26;token=d2fe4ce7-b65b-4df2-9d1f-306f95f27b4d" alt=""><figcaption></figcaption></figure>

{% tabs %}
{% tab title="API" %}

* Fixture info : Date, Time, Venue
* Info about competitors
* Extra info : Period length, overtime length, neutral ground
  {% endtab %}

{% tab title="AMQP" %}

* Event ID, Event status, Product ID,&#x20;
* Markets identifiers (ID, type, specifier) with outcomes, odds, and probabilities
* Results
  {% endtab %}
  {% endtabs %}

### **UOF ID / URN**

UOF introduces a new format of sport event IDs which is called URN. This is nothing but *event\_id*

URN has three components:  a prefix, sport event type, and the actual sport event ID separated by a colon.

* Prefix can be : *sr, wns, vf, vbl, etc*
* Sport event types can be *sport, category, tournament, simple\_tournament, season, stage, match, competitor, player, venue, etc*
* Sport event ID is a long integer that is assigned to that particular sports event.

{% hint style="success" %}
***Syntax***

*\[ prefix ] : \[ sport event type ] : \[ sport event ID ]*
{% endhint %}

For example,  `sr:match:8412480` where ***sr*** is the prefix, ***match*** is the sport event type, and ***8412480*** is the sport event ID.

{% hint style="danger" %}
In order to prevent any confusion, URN should always be treated as a whole, as IDs might overlap over various sport event types.
{% endhint %}

### **Sport\_event statuses**

**Event Status**

The status specifies  the current status of the sport event. This is made available in the AMQP messages for a given event in the attribute&#x20;

* *0 = not\_started* – The match is scheduled to be played
* *1 = live* – The match is currently in progress
* *2 = suspended* - The match has been suspended
* *3 = ended* – The match is over
* *4 = closed* – The match results have been confirmed

**Example XML**

```xml
<sport_event_status status="0" match_status="0"/>
```

**match\_status**

This is Sports-specific integer code the represents the live match status i.e. what period or break the match is currently in (first period, 2nd break,etc.)

See the API endpoint [*descriptions/(lang)/match\_status.xml*](https://iodocs.betradar.com/#/Betting%20descriptions/matchStatus) for a mapping of these codes to translatable human-readable text in the languages Betradar supports.
