# Racingtv — Wrapped API

> **You are on:** `https://api.beta.paywithlocus.com/api` | [llms.txt](https://beta.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.

> Access detailed information about UK and international horse racing meetings, including complete racecards, runner details, Timeform analysis, pace bias data, and draw commentary. Plan your racing strategy or stay informed on upcoming races with comprehensive meeting schedules and expert insights all in one place.

**Category:** Sports | **Website:** [www.racingtv.com/racecourses/uk/](https://www.racingtv.com/racecourses/uk/) | **Docs:** [parse.bot/marketplace/4fd94729-5b72-4d15-88f1-91c7ee244a00/racingtv-com-api](https://parse.bot/marketplace/4fd94729-5b72-4d15-88f1-91c7ee244a00/racingtv-com-api)

Pay-per-use API proxy for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.beta.paywithlocus.com/api/wrapped/credits/racingtv/`
**Auth:** `Authorization: Bearer <LOCUS_CREDITS_SECRET_KEY>` (an `lcr_` secret key or a scoped `lcac_` agent credential)
**Required header:** `Idempotency-Key: <fresh UUID per call>`. A retry with the same key replays the stored result without a new charge.
**Response:** the provider response after any endpoint-specific normalization. `X-Locus-Credits-Charged` carries the charge and `X-Locus-Credits-Balance` the remaining balance. Insufficient credits return `402` before the provider is called.
**Pricing:** estimated costs below are USD. Locus debits the credit equivalent at your workspace rate.

Full call contract: https://docs.paywithlocus.com/api-reference/introduction

> Using a Pay With Locus wallet key (`claw_` prefix)? Wallet routes are documented separately: https://docs.paywithlocus.com/wrapped-apis/for-agents

## Endpoints

### Get racecard

Retrieves the full racecard for a specific race identified by date, track slug, and race time. Returns detailed race metadata (class, distance, going, prize), pace analysis (overall pace bias, specific pace commentary, individual pace hints), draw bias commentary, Timeform analyst verdict, and all runners with their Timeform ratings, comments, star ratings, form, weight, draw, jockey, trainer, breeding, and odds when available.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `date` | string | Yes | Race date in ISO format YYYY-MM-DD. |
| `time` | string | Yes | Race start time in 4-digit 24-hour format HHMM (e.g. '1350' for 13:50). |
| `track` | string | Yes | Track slug as returned by list_meetings (e.g. 'catterick-bridge', 'bath', 'uttoxeter'). |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/racingtv/get-racecard \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"date":"<string>","time":"<string>","track":"<string>"}'
```

### List meetings

Lists race meetings for a given date with their scheduled races. Each meeting includes track details, going conditions, and a summary of each race (time, distance, class, prize). Filter by country ISO code to narrow to UK-only or Irish meetings. Results are a single page of all meetings for the date.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `country` | string | No | ISO country code to filter meetings (e.g. 'gb' for Great Britain, 'ie' for Ireland). Omitted returns all countries. |
| `date` | string | Yes | Meeting date in ISO format YYYY-MM-DD. |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/racingtv/list-meetings \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"country":"<string>","date":"<string>"}'
```

## Next steps

- [All wrapped API providers](https://beta.paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://beta.paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://beta.paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://beta.paywithlocus.com/agent/index.md): every Locus agent page.