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

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-pets4homes-co-uk-api-86a1f4a7/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## 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.paywithlocus.com/api/wrapped/parse-pets4homes-co-uk-api-86a1f4a7/get_listing \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-pets4homes-co-uk-api-86a1f4a7/search_dogs \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"keyword":"<string>","max_price":"<string>","min_price":"<string>","page":"<integer>"}'
```
