# Kleinanzeigen — 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 retrieve classified ad listings from kleinanzeigen.de. Filter by keyword, category, price range, and sorting order. Supports vehicles, real estate, jobs, electronics, and general products, with full listing details including title, price, description, location, and seller information.

**Category:** Marketplaces | **Website:** [kleinanzeigen.de/](https://kleinanzeigen.de/) | **Docs:** [parse.bot/marketplace/d59bf3e0-b8c9-461c-98e3-d082be7f9163/kleinanzeigen-de-api](https://parse.bot/marketplace/d59bf3e0-b8c9-461c-98e3-d082be7f9163/kleinanzeigen-de-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/kleinanzeigen/`
**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

### Details

Retrieve full details for a specific listing by its ad ID. Includes title, price, description, images, category-specific attributes (e.g. Marke, Kilometerstand for vehicles), location, and seller information. Returns stale_input if the listing no longer exists.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `ad_id` | string | Yes | The unique numeric ID of the listing (e.g. '3418849198'). |
| `exclude_images` | string | No | Set to 'true' to exclude image URLs from the response. |

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

### Search

Search for classified ad listings on kleinanzeigen.de with optional filters for category, price range, and sorting. Returns paginated results with listing summaries including title, price, location, and snippet. At least one of query or category should be provided for meaningful results. Pagination advances via the page parameter. Promoted/top listings may lack date_posted.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category` | string | No | Category name or numeric ID. Known names: 'immobilien', 'mietwohnungen', 'haeuser_mieten', 'eigentumswohnungen', 'haeuser_kaufen', 'autos', 'jobs', 'multimedia_elektronik', 'handy_telekom'. Other category slugs are passed as URL path segments. |
| `exclude_images` | string | No | Set to 'true' to exclude thumbnail URLs from results. |
| `max_price` | string | No | Maximum price filter value. |
| `min_price` | string | No | Minimum price filter value. |
| `page` | integer | No | Results page number. |
| `query` | string | No | Search keyword (e.g. 'laptop', 'fahrrad', 'sofa'). |
| `sort` | string | No | Sorting field. Use 'SORTING_DATE' for most recent first. |

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

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