# Chess Results — 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 chess tournaments across any federation by viewing schedules, pairings, and upcoming games, or browse available tournaments to find competitions of interest. Get detailed round-by-round matchups and game information to stay updated on tournament progress and player performance.

**Category:** Sports | **Website:** [chess-results.com/fed.aspx?lan=1&fed=ISR](https://chess-results.com/fed.aspx?lan=1&fed=ISR) | **Docs:** [parse.bot/marketplace/2bf7c79f-f769-42a3-afdd-725f5f3e60c0/chess-results-com-api](https://parse.bot/marketplace/2bf7c79f-f769-42a3-afdd-725f5f3e60c0/chess-results-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-chess-results-com-api-2bf7c79f/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_round_pairings

Get pairings and results for a specific round of a tournament. Shows board number, white and black player names with ratings, current points, and result (null if the game has not been played yet).

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `round` | string | Yes | Round number to fetch pairings for (e.g. 1, 2, 3). |
| `tournament_id` | string | Yes | Numeric tournament ID from chess-results.com (e.g. 1443093). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-chess-results-com-api-2bf7c79f/get_round_pairings \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"round":"<string>","tournament_id":"<string>"}'
```

### get_tournament_schedule

Retrieve the playing schedule for a tournament showing dates and times for each round. Use the tournament_id from list_tournaments.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `tournament_id` | string | Yes | Numeric tournament ID from chess-results.com (e.g. 1443093). Obtained from list_tournaments results. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-chess-results-com-api-2bf7c79f/get_tournament_schedule \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tournament_id":"<string>"}'
```

### get_upcoming_games

Aggregate endpoint that finds all games scheduled in the next 14 days across active tournaments for a federation. Fetches tournament schedules and pairings for rounds falling within the date window. Rounds that have not yet been paired will show an empty pairings array.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `federation` | string | No | Three-letter FIDE federation code (e.g. ISR, USA, GER, RUS, FRA). |
| `max_tournaments` | integer | No | Maximum number of active tournaments to check. Limits request volume for large federations. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-chess-results-com-api-2bf7c79f/get_upcoming_games \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"federation":"<string>","max_tournaments":"<integer>"}'
```

### list_tournaments

List tournaments registered under a chess federation with their current status. Tournaments are sorted by most recent activity. Each tournament includes a unique ID that can be used with other endpoints to fetch schedule and pairing details.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `federation` | string | No | Three-letter FIDE federation code (e.g. ISR, USA, GER, RUS, FRA). |
| `status` | string | No | Filter by tournament status. Omitting returns all tournaments. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-chess-results-com-api-2bf7c79f/list_tournaments \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"federation":"<string>","status":"<string>"}'
```
