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

> Search and browse available dogs for sale across the UK's largest pet classifieds marketplace, filtering by breed, location, price, and other criteria to find your ideal pet. View detailed listings with photos, descriptions, and seller information to compare dogs and make informed adoption decisions.

**Category:** Marketplaces | **Website:** [pets4homes.co.uk/](https://pets4homes.co.uk/) | **Docs:** [parse.bot/marketplace/86a1f4a7-1b6b-419b-b610-c973ea3c8eeb/pets4homes-co-uk-api](https://parse.bot/marketplace/86a1f4a7-1b6b-419b-b610-c973ea3c8eeb/pets4homes-co-uk-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/pets4homes/`
**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 listing

Get full details of a specific dog listing by its slug. Returns comprehensive information including full description, seller details, location with coordinates, health attributes, images, and individual pets in the litter with their availability status and prices.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `slug` | string | Yes | Listing slug from search_dogs results (e.g. 'cnzviixpd-6-adorable-labrador-retriever-puppies-maldon'). |

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

### Search dogs

Search for dogs/puppies for sale on Pets4Homes. Returns paginated results with breed, price, location, and seller details. Results are sorted by newest first. Keyword search matches breed names, descriptions, and titles. Price filters narrow results by listing price range.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `keyword` | string | No | Search keyword to filter listings (matches breed, title, description). Examples: 'labrador', 'cockapoo', 'small white'. |
| `max_price` | string | No | Maximum price in GBP to filter listings (e.g. '500', '1000'). |
| `min_price` | string | No | Minimum price in GBP to filter listings (e.g. '200', '500'). |
| `page` | integer | No | Page number for pagination (1-based). |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/pets4homes/search-dogs \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"keyword":"<string>","max_price":"<string>","min_price":"<string>","page":"<integer>"}'
```

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