# Sportinglife (httpswww.sportinglife) — 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.

> Access detailed horse racing information from Sporting Life, including complete racecards organized by date and comprehensive runner details for specific races. Plan your betting strategy with up-to-date race listings and individual horse performance data all in one place.

**Category:** Sports | **Website:** [httpswww.sportinglife/](https://httpswww.sportinglife/) | **Docs:** [parse.bot/marketplace/420507e2-1ff6-43f1-b193-fedf2a91ee94/httpssportinglife-api](https://parse.bot/marketplace/420507e2-1ff6-43f1-b193-fedf2a91ee94/httpssportinglife-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-httpssportinglife-api-420507e2/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_race_detail

Returns comprehensive racecard data for a single race including full runner details. Each runner includes horse name, trainer, jockey, weight, draw, official rating, forecast odds, spotlight commentary, form, headgear, and lifetime statistics. The race_id is obtained from the get_racecards endpoint.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `race_id` | string | Yes | Numeric race identifier from get_racecards results (e.g. 934439). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-httpssportinglife-api-420507e2/get_race_detail \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"race_id":"<string>"}'
```

### get_racecards

Returns all race meetings and their races for a given date. Each race includes venue, time, title, class, distance, going, surface, and runner count. Use race_id from the results to fetch detailed runner information via get_race_detail.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `date` | string | Yes | Race date in ISO format YYYY-MM-DD (e.g. 2026-08-22). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-httpssportinglife-api-420507e2/get_racecards \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"date":"<string>"}'
```
