> For the complete documentation index, see [llms.txt](https://docs.sportradar.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sportradar.com/golf/feed-specifications/endpoints-rest/websocket-rest-apis.md).

# Websocket - REST APIs

Most of the Golf websockets are available via REST calls. Please find a breakdown below:

The domain are the same but in order to connect to the REST version of the Websocket, you will need to add the query param `rest=true`

Note that these REST APIs will only be available for an event once it has finished.

## Required Headers

| Key           | Value                    |
| ------------- | ------------------------ |
| Content-Type  | application/json         |
| Authorization | Bearer eyvhaoudfgpdfgo\* |

**Please note statistics are only available for events after the 16th June 2022.**

<table><thead><tr><th width="328.3333333333333">Websockets available via Rest</th><th>Rest API Endpoint</th><th>Example endpoint</th></tr></thead><tbody><tr><td>Leaderboard</td><td><code>https://dde-streams.data.srarena.iom/golf/tournaments/{tournamentId}/leaderboard?rest=true</code></td><td><code>https://dde-streams.data.srarena.io/golf/tournaments/638/leaderboard?rest=true</code></td></tr><tr><td>Team hole by hole</td><td><code>https://dde-streams.data.srarena.io/golf/tournaments/{tournamentId}}/teamholebyhole/{TeamID}?rest=true</code></td><td><code>https://dde-streams.data.srarena.io/golf/tournaments/638/teamholebyhole/49?rest=true</code></td></tr><tr><td>Player Statistics</td><td><code>https://dde-streams.data.srarena.io/golf/tournaments/{tournamentId}}/playerstats/{TeamID}?rest=true</code></td><td><code>https://dde-streams.data.srarena.io/golf/tournaments/638/playerstats/49?rest=true</code></td></tr><tr><td>Player Statistics Rankings - Scoring</td><td><code>https://dde-streams.data.srarena.io/golf/tournaments/{tournamentId}}/stats/scoring?rest=true</code></td><td><code>https://dde-streams.data.srarena.io/golf/tournaments/638/stats/scoring?rest=true</code></td></tr><tr><td>Player Statistics Rankings - Approach</td><td><code>https://dde-streams.data.srarena.io/golf/tournaments/{tournamentId}}/stats/approach?rest=true</code></td><td><code>https://dde-streams.data.srarena.io/golf/tournaments/638/stats/approach?rest=true</code></td></tr><tr><td>Player Statistics Rankings - Shortgame</td><td><code>https://dde-streams.data.srarena.io/golf/tournaments/{tournamentId}}/stats/shortgame?rest=true</code></td><td><code>https://dde-streams.data.srarena.io/golf/tournaments/638/stats/shortgame?rest=true</code></td></tr><tr><td>Player Statistics Rankings - Putting</td><td><code>https://dde-streams.data.srarena.io/golf/tournaments/{tournamentId}}/stats/putting?rest=true</code></td><td><code>https://dde-streams.data.srarena.io/golf/tournaments/638/stats/putting?rest=true</code></td></tr><tr><td>Player Statistics Rankings - Driving</td><td><code>https://dde-streams.data.srarena.io/golf/tournaments/{tournamentId}}/stats/driving?rest=true</code></td><td><code>https://dde-streams.data.srarena.io/golf/tournaments/638/stats/driving?rest=true</code></td></tr><tr><td>Hole Statistics</td><td><code>https://dde-streams.data.srarena.io/golf/tournaments/{tournamentId}}/holestats?rest=true</code></td><td><code>https://dde-streams.data.srarena.io/golf/tournaments/638/holestats?rest=true</code></td></tr><tr><td>Team Round Details</td><td><code>https://dde-streams.data.srarena.io/golf/tournaments/{tournamentId}}/round/{RoundNo}/team/{TeamID}?rest=true</code></td><td><code>https://dde-streams.data.srarena.io/golf/tournaments/638/round/4/team/49?rest=true</code></td></tr><tr><td>Leaderboard - Match play</td><td><code>https://dde-streams.data.srarena.io/golf/tournaments/{tournamentId}}/matchplayleaderboard?rest=true</code></td><td><code>https://dde-streams.data.srarena.io/golf/tournaments/630/matchplayleaderboard?rest=true</code></td></tr><tr><td>Match score - Match play</td><td><code>https://dde-streams.data.srarena.iom/golf/tournaments/{tournamentId}}/matchscore/{MatchNo}?rest=true</code></td><td><code>https://dde-streams.data.srarena.io/golf/tournaments/630/matchscore/112?rest=true</code></td></tr><tr><td>Team Match Details - Match play</td><td><code>https://dde-streams.data.srarena.io/golf/tournaments/{tournamentId}}/matchdetails/{MatchNo}?rest=true</code></td><td><code>https://dde-streams.data.srarena.io/golf/tournaments/630/matchdetails/112?rest=true</code></td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.sportradar.com/golf/feed-specifications/endpoints-rest/websocket-rest-apis.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
