# BloodHorse — 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.

> Get comprehensive horse racing information including race results, stakes entries, horse profiles, and the latest news from BloodHorse.com. Search racing data, view detailed race information, and discover current racing leaders all in one place.

**Category:** Sports | **Website:** [bloodhorse.com/](https://bloodhorse.com/) | **Docs:** [parse.bot/marketplace/900656f6-8787-4bea-8846-4734ad287884/bloodhorse-com-api](https://parse.bot/marketplace/900656f6-8787-4bea-8846-4734ad287884/bloodhorse-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/bloodhorse/`
**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 article detail

Retrieve the full text and details of a specific news article including title, subtitle, and complete article body text.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `url` | string | Yes | Full URL of the article page (e.g. from get_latest_news results). |

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

### Get horse profile

Get profile information for a specific horse including name, properties, trainer, jockey, owner, and breeder.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `url` | string | Yes | Full URL of the horse profile page (e.g. from get_racing_leaders Horse_link field). |

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

### Get latest news

Retrieve the latest news articles from BloodHorse including titles, links, and summaries. No parameters required.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/bloodhorse/get-latest-news \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### Get race detail

Get detailed information for a specific race including all runners with positions, earnings, jockeys, trainers, owners, and breeders. Requires the full URL of the race detail page.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `url` | string | Yes | Full URL of the race detail page (e.g. from get_race_results_list results). |

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

### Get race results list

Retrieve a paginated list of race results for a given date range and region. Returns races with titles, links, properties (race type, distance, purse), and top 3 finishers. Defaults to today's date if no dates are provided.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `end_date` | string | No | End date in MM/DD/YYYY format. Defaults to today's date. |
| `page` | integer | No | Page number for pagination. |
| `region` | string | No | Region filter. Accepted values: 'region-america', 'region-intl'. |
| `start_date` | string | No | Start date in MM/DD/YYYY format. Defaults to today's date. |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/bloodhorse/get-race-results-list \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"end_date":"<string>","page":"<integer>","region":"<string>","start_date":"<string>"}'
```

### Get racing leaders

Retrieve racing leaders for a specific category and year. Returns a ranked table of horses, owners, trainers, or jockeys with stats including starts, wins, and earnings.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category` | string | No | Category of leaders. Accepted values: 'horses', 'owners', 'trainers', 'jockeys'. |
| `year` | string | No | Year for the rankings. Defaults to the current year. |

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

### Get stakes entries

Retrieve the list of upcoming North American stakes race entries including date, race name, track, grade, distance, surface, and purse. No parameters required.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/bloodhorse/get-stakes-entries \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### Search site

Search BloodHorse.com for articles, races, or horses using Google Custom Search. Returns up to 10 results per query with titles, links, and content summaries.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Search keyword or phrase. |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/bloodhorse/search-site \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"query":"<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.