# 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 for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/credits/mercadodecavalos/`
**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 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/credits/mercadodecavalos/get-contact-info \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/mercadodecavalos/get-featured-animals \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/mercadodecavalos/get-horse-details \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/mercadodecavalos/get-news-article \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/mercadodecavalos/list-embryos-and-mares \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/mercadodecavalos/list-news-articles \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/mercadodecavalos/list-stallions-and-coverings \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/mercadodecavalos/search-horses-for-sale \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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>"}'
```

## Next steps

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