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

> 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. Each call is automatically billed to your wallet in USDC.

## Access

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

## 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.paywithlocus.com/api/wrapped/parse-bloodhorse-com-api-900656f6/get_article_detail \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-bloodhorse-com-api-900656f6/get_horse_profile \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-bloodhorse-com-api-900656f6/get_latest_news \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-bloodhorse-com-api-900656f6/get_race_detail \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-bloodhorse-com-api-900656f6/get_race_results_list \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-bloodhorse-com-api-900656f6/get_racing_leaders \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-bloodhorse-com-api-900656f6/get_stakes_entries \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-bloodhorse-com-api-900656f6/search_site \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```
