# Events Statistics

This stream summarises the scoring events from a tennis match. E.g. number of aces served, 1st serve percentage, break points, e.t.c... If you connect to the stream when the match has already started, you will receive only the latest statistics. Unlike the events stream, there is no facility to replay the statistics from the start.

This endpoint takes no parameters.

### Endpoint URL

[**wss://dde-streams.data.imgarena.com/tennis/events/{event-id}/statistics**](wss://dde-streams.imggaming.com/tennis/events/%7Bevent-id%7D/statistics)

N.B. – Please use event ID “**2022-0784-QS010**” to return you the sample data. The authentication token provided will be required to make a connection to this websocket endpoint.

### Process for connecting to the web socket endpoints

* Connect to SSL websocket address
* Send JSON packet containing API token
* Format to send API token:

  `{"authToken": "authentication token"}`
* Receive response indicating that connection is authorised (or a response indicating why the connection cannot be made)
* Receive data packets

Once you have the API token, any further data that you send over the connection will be ignored.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sportradar.com/tennis/stream-endpoints-websockets/events-id-statistics-tennis.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
