# Theopen — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Track player performances and tournament standings in real-time with hole-by-hole scoring details and live leaderboard rankings for The Open Championship. Get comprehensive scorecard information for any player to follow their round progress throughout the tournament.

**Category:** Sports | **Website:** [www.theopen.com/leaderboard](https://www.theopen.com/leaderboard) | **Docs:** [parse.bot/marketplace/c915d725-0e56-4dbe-ab8b-e76f6551f46d/theopen-com-api](https://parse.bot/marketplace/c915d725-0e56-4dbe-ab8b-e76f6551f46d/theopen-com-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-theopen-com-api-c915d725/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_leaderboard

Retrieve the full tournament leaderboard with all players, their positions, and round scores. Returns all players in the field sorted by position.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-theopen-com-api-c915d725/get_leaderboard \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_player_scorecard

Retrieve hole-by-hole scoring data for a player in the current Open Championship. Each hole reports par, strokes taken, and score relative to par. Results include all completed rounds (up to 4). Lookup is by player name (partial match on first/last name) or numeric player ID; at least one must be provided. An optional round filter narrows results to a single round.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `player_id` | string | No | Numeric player ID from the tournament scoring system (e.g. from get_leaderboard results). |
| `player_name` | string | No | Player name to search (matches against first name, last name, or full name). Case-insensitive partial match. |
| `round` | string | No | Round number to filter (1-4). Omit to return all completed rounds. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-theopen-com-api-c915d725/get_player_scorecard \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"player_id":"<string>","player_name":"<string>","round":"<string>"}'
```
