# Dogs4homes — 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 adoption on Pets4Homes by keyword or breed, then view detailed profiles including photos, descriptions, and adoption information for each dog. Find your perfect canine companion with filtering options tailored to your preferences.

**Category:** Marketplaces | **Website:** [dogs4homes.co.uk/](https://dogs4homes.co.uk/) | **Docs:** [parse.bot/marketplace/afb43f8c-62cd-414c-ba33-a4689078b84a/dogs4homes-co-uk-api](https://parse.bot/marketplace/afb43f8c-62cd-414c-ba33-a4689078b84a/dogs4homes-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-dogs4homes-co-uk-api-afb43f8c/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_dog_details

Retrieve full details for a specific pet profile using its slug identifier. Returns comprehensive information including description, price, location, attributes, images, and seller information. The slug is obtained from search_dogs results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `slug` | string | Yes | The unique slug identifier for the listing, as returned in search_dogs results (e.g. 'ityu6p1wk-bonded-brothers-small-breed-nottingham'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-dogs4homes-co-uk-api-afb43f8c/get_dog_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"slug":"<string>"}'
```

### search_dogs

Search for dogs available for adoption on Pets4Homes. Supports keyword search, breed filtering, size filtering, and children-compatibility filtering. Returns paginated results sorted by date published. Size and children_compatible filters are applied client-side against listing descriptions.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `breed` | string | No | Breed slug to filter by (e.g. 'akita', 'labrador', 'mixed-breed'). Maps to the site's breed category URL segment. |
| `children_compatible` | boolean | No | If true, filters results for dogs whose description mentions children/child compatibility. |
| `page` | integer | No | Page number for pagination. |
| `query` | string | No | Search keyword to filter listings by title/description. |
| `size` | string | No | Desired dog size keyword (e.g. 'small', 'medium', 'large'). Filters by keyword match in the listing description. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-dogs4homes-co-uk-api-afb43f8c/search_dogs \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"breed":"<string>","children_compatible":"<boolean>","page":"<integer>","query":"<string>","size":"<string>"}'
```
