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

> Search and browse horse listings from Mercado de Cavalos, view detailed information about individual animals, stallions, mares, and embryos, plus access featured animals and contact details. Stay updated with the latest news articles from the horse trading community.

**Category:** Marketplaces | **Website:** [mercadodecavalos.com.br/](https://mercadodecavalos.com.br/) | **Docs:** [parse.bot/marketplace/680af85f-9db7-47b0-8428-b708cecb6da2/mercadodecavalos-com-br-api](https://parse.bot/marketplace/680af85f-9db7-47b0-8428-b708cecb6da2/mercadodecavalos-com-br-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-mercadodecavalos-com-br-api-680af85f/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_contact_info

Retrieve seller contact information (phone/WhatsApp numbers) for a specific listing. Returns the phone numbers associated with the listing's seller.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `ref_id` | string | Yes | Listing reference ID, from search results. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-mercadodecavalos-com-br-api-680af85f/get_contact_info \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ref_id":"<string>"}'
```

### get_featured_animals

Retrieve the list of featured/highlighted animals shown on the marketplace homepage. These are typically promoted or sponsored listings. Returns the same summary shape as search results.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-mercadodecavalos-com-br-api-680af85f/get_featured_animals \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_horse_details

Retrieve the full profile of a specific horse listing including name, price, seller, location, breed, gender, coat color, registration number, age details, full description, pedigree lineage (paternal and maternal), and photo URLs. Requires both ref_id and slug extracted from listing URLs returned by search endpoints.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `ref_id` | string | Yes | Reference ID of the horse listing, from the listing URL path. |
| `slug` | string | Yes | URL slug of the horse listing, from the listing URL path. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-mercadodecavalos-com-br-api-680af85f/get_horse_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ref_id":"<string>","slug":"<string>"}'
```

### get_news_article

Retrieve the full content of a news article. Requires both ref_id and slug extracted from article URLs returned by list_news_articles.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `ref_id` | string | Yes | Article reference ID from the URL path. |
| `slug` | string | Yes | Article URL slug. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-mercadodecavalos-com-br-api-680af85f/get_news_article \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ref_id":"<string>","slug":"<string>"}'
```

### list_embryos_and_mares

List embryo and mare offerings on the marketplace. Returns paginated summary listings. May return an empty items array when no listings are currently available on the site.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-mercadodecavalos-com-br-api-680af85f/list_embryos_and_mares \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>"}'
```

### list_news_articles

List news articles from the 'Fique por Dentro' (Stay Informed) section of the marketplace. Returns article summaries with title, URL, and identifiers for fetching full content.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-mercadodecavalos-com-br-api-680af85f/list_news_articles \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>"}'
```

### list_stallions_and_coverings

List stallions available for breeding coverage on the marketplace. Returns paginated summary listings. Typically has fewer listings than the main for-sale section.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-mercadodecavalos-com-br-api-680af85f/list_stallions_and_coverings \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>"}'
```

### search_horses_for_sale

Search for horses listed for sale on the marketplace. Supports filtering by breed, gender, age range, price range, coat color, registration status, and video availability. Results are paginated (24 per page) and sortable by date or price. Returns summary listings with name, price, breed, age, gender, and identifiers for drilling into full details.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `breed` | string | No | Breed filter as numeric ID from site catalog. Known IDs: 6=Appaloosa, 7=Árabe, 9=Crioulo, 10=Quarto de Milha, 11=Paint Horse, 12=Lusitano, 16=Mangalarga Marchador, 17=Mangalarga, 21=Campolina, 24=Sem Raça Definida. |
| `coat_color` | string | No | Coat color filter as numeric ID from site catalog (e.g. '1'=Alazã, '0'=all). |
| `female` | string | No | Filter for females only. Set to '1' to include. |
| `homozygous` | string | No | Filter for homozygous horses. Set to '1' to include. |
| `male` | string | No | Filter for males only. Set to '1' to include. |
| `max_age` | string | No | Maximum age filter as integer string (e.g. '10' for 10 years, '0' for up to 30 years). |
| `max_price` | string | No | Maximum price filter as decimal string (e.g. '50000.00'). |
| `min_age` | string | No | Minimum age filter as integer string (e.g. '2' for 2 years, '0' for newborn). |
| `min_price` | string | No | Minimum price filter as decimal string (e.g. '5000.00'). |
| `page` | integer | No | Page number for pagination. |
| `registered` | string | No | Filter for registered horses. Set to '1' to include. |
| `sort_order` | string | No | Sort order for results. |
| `with_video` | string | No | Filter for listings with video. Set to '1' to include. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-mercadodecavalos-com-br-api-680af85f/search_horses_for_sale \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"breed":"<string>","coat_color":"<string>","female":"<string>","homozygous":"<string>","male":"<string>","max_age":"<string>","max_price":"<string>","min_age":"<string>","min_price":"<string>","page":"<integer>","registered":"<string>","sort_order":"<string>","with_video":"<string>"}'
```
