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

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-kleinanzeigen-de-api-d59bf3e0/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## 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.paywithlocus.com/api/wrapped/parse-kleinanzeigen-de-api-d59bf3e0/details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-kleinanzeigen-de-api-d59bf3e0/search \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"category":"<string>","exclude_images":"<string>","max_price":"<string>","min_price":"<string>","page":"<integer>","query":"<string>","sort":"<string>"}'
```
