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

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/credits/dogs4homes/`
**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 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/credits/dogs4homes/get-dog-details \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/dogs4homes/search-dogs \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"breed":"<string>","children_compatible":"<boolean>","page":"<integer>","query":"<string>","size":"<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.