# Kleinanzeigen API Scraper (`rl1987/kleinanzeigen-api-scraper`) Actor

Scrape Kleinanzeigen (Germany) classified-ad listings and full ad details via the official mobile API. Search by keyword, location, category and price; get every field incl. all images, attributes, seller profile and geo.

- **URL**: https://apify.com/rl1987/kleinanzeigen-api-scraper.md
- **Developed by:** [R.L.](https://apify.com/rl1987) (community)
- **Categories:** E-commerce, Lead generation, Real estate
- **Stats:** 2 total users, 1 monthly users, 96.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 plp data rows

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Kleinanzeigen Scraper 🗂️ — Scrape Kleinanzeigen.com Ad ID, Title, Description, Price

**Kleinanzeigen Scraper** — Scrape Kleinanzeigen (Germany) classified-ad listings and full ad details via the official mobile API. Search by keyword, location, category and price; get every field incl. all images, attributes, seller profile and geo. It reads Kleinanzeigen's own API directly, so it's **fast, reliable and complete** — no flaky HTML parsing, no headless browser. Export to **JSON, CSV, Excel, or an API**.

***

### ✨ Why use this Kleinanzeigen Scraper?

- 🟢 **No code required** — set your input, click **Start**, download your data.
- ⚡ **Fast & accurate** — reads Kleinanzeigen's own private API and returns structured JSON, not scraped HTML.
- 🧾 **Rich, structured data** — every field below, clean and ready to use.
- 🔁 **Full pagination** — collects results to your `maxItems` cap.
- 💸 **Transparent pay-per-result pricing** — pay only for the rows you get.
- 📤 **Export anywhere** — JSON, CSV, Excel, XML, or pull it live via the Apify API.

***

### 🎯 What can you do with Kleinanzeigen data?

- **Market & competitor research** — analyse Kleinanzeigen records at scale.
- **Price & availability monitoring** — track changes over time.
- **Data science & trend analysis** — build clean datasets.
- **Lead generation & enrichment** — feed Kleinanzeigen data into your own tools.

***

### 📥 What data does the Kleinanzeigen Scraper extract?

Each row includes: `id`, `title`, `description`, `price_amount`, `price_currency`, `price_type`, `category_id`, `category_name`, `zip_code`, `state`, `latitude`, `longitude`, `ad_type`, `poster_type` …and more. See the full **Data table** below.

***

### 🚀 How to scrape Kleinanzeigen.com (3 steps)

1. **Set your input** — provide `q` or `location` (see the table below; defaults work out of the box).
2. **Pick options** — filters, a `proxyConfiguration`, and a `maxItems` cap.
3. **Run & export** — click **Start**, then download the dataset as JSON/CSV/Excel or fetch it via the API.

***

### ⚙️ Input

| Field | Type | Default | Description |
| --- | --- | --- | --- |
| `q` | string | `fahrrad` | Keyword to search for (e.g. 'fahrrad', 'iphone'). Leave empty to browse a category/location. |
| `location` | string | `Berlin` | A city, postcode or district (e.g. 'Berlin', '10435', 'München'). Resolved to the app's internal location id automatically. |
| `distance` | integer | `20` | Search radius around the location in km. |
| `minPrice` | integer | – | Minimum price filter. |
| `maxPrice` | integer | – | Maximum price filter. |
| `adType` | enum | – | Offered or wanted ads. — one of `OFFERED`, `WANTED` |
| `posterType` | enum | – | Private or commercial sellers. — one of `PRIVATE`, `COMMERCIAL` |
| `sortType` | enum | `DATE_DESCENDING` | Result ordering. — one of `DATE_DESCENDING`, `DISTANCE_ASCENDING`, `PRICE_ASCENDING`, `PRICE_DESCENDING`, `RECOMMENDED` |
| `pictureRequired` | boolean | `false` | Only return ads that have at least one image. |
| `buyNowOnly` | boolean | `false` | Only return ads with direct-buy shipping. |
| `includeDetails` | boolean | `true` | Fetch the full ad detail (complete description, all images, all attributes, phone/contact, geo) for every result. Slower. |
| `includeSellerProfile` | boolean | `false` | Also fetch each ad's public seller profile (ratings, badges, counters, member-since). |
| `maxItems` | integer | `100` | Maximum number of ads to return (0 = as many as possible). |
| `category` | enum | – | Optionally restrict to a Kleinanzeigen category. — one of `210`, `216`, `223`, `211`, `217`, `305`, `306`, `276`, `280`, `220`, `241`, `195`, `199`, `402`, `196`, `275`, `197`, `277`, `207`, `208`, `205`, `203`, `403`, `238`, `198`, `80`, `91`, `93`, `246`, `239`, `89`, `90`, `84`, `86`, `82`, `81`, `88`, `87`, `153`, `224`, `154`, `159`, `160`, `158`, `156`, `157`, `155`, `161`, `172`, `226`, `245`, `173`, `176`, `279`, `278`, `228`, `225`, `285`, `175`, `227`, `405`, `406`, `168`, `130`, `138`, `134`, `136`, `132`, `135`, `139`, `133`, `283`, `243`, `313`, `17`, `236`, `22`, `19`, `258`, `21`, `237`, `25`, `20`, `23`, `18`, `102`, `118`, `111`, `114`, `110`, `105`, `107`, `125`, `123`, `247`, `117`, `109`, `185`, `232`, `248`, `187`, `282`, `240`, `191`, `249`, `233`, `234`, `230`, `250`, `189`, `242`, `73`, `76`, `281`, `284`, `77`, `79`, `78`, `74`, `75`, `231`, `286`, `254`, `287`, `252`, `255`, `257`, `251`, `256`, `297`, `288`, `289`, `290`, `293`, `291`, `292`, `294`, `295`, `296`, `298`, `272`, `273`, `274`, `192`, `235`, `269`, `260`, `265`, `263`, `264`, `262`, `268`, `261`, `271`, `267`, `266`, `270`, `400`, `401` |
| `proxyConfiguration` | object | Apify Proxy | Route requests through a proxy (Apify Proxy by default). |

#### Example input

```jsonc
{
  "q": "fahrrad",
  "location": "Berlin",
  "distance": 20,
  "sortType": "DATE_DESCENDING",
  "pictureRequired": false,
  "buyNowOnly": false,
  "includeDetails": true,
  "includeSellerProfile": false,
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

***

### 📤 Output

Each result is a JSON object like this:

```jsonc
{
  "id": "3430905406",
  "title": "NEUES Gravelbike 28 Zoll Shimano Claris 16 Gänge Originalverpackt",
  "description": "Zum Verkauf stehen zwei Gravelbikes.\n\nRahmenhöhe 52 und 56.\n\nNagelneu und Originalverpackt im Karton.\n\n28 Zoll Räder mit Shimano Claris Gangschaltung und Sch…",
  "price_amount": 350.0,
  "price_currency": "EUR",
  "price_type": "SPECIFIED_AMOUNT",
  "category_id": "217",
  "category_name": "Fahrräder & Zubehör",
  "zip_code": "13585",
  "state": "Spandau",
  "latitude": 52.546677,
  "longitude": 13.206782,
  "ad_type": "OFFERED",
  "poster_type": "PRIVATE",
  "seller_account_type": "PRIVATE",
  "contact_name": "Privat",
  "user_id": "138591497",
  "start_date_time": "2026-07-10T10:02:31.000+0200",
  "image_urls": [
    "https://img.kleinanzeigen.de/api/v1/prod-ads/images/1d/1d13d36b-8cce-40ea-b781-968a879725f9?rule=$_57.JPG",
    "https://img.kleinanzeigen.de/api/v1/prod-ads/images/a1/a1a61c54-ab8a-420a-b2a6-4d15aca19599?rule=$_57.JPG",
    "…+12 more"
  ],
  "attributes": [
    {
      "name": "fahrraeder.art",
      "label": "Art",
      "value": "Herren",
      "values": [
        {
          "…": "2 fields"
        }
      ],
      "unit": null,
      "type": "ENUM"
    },
    {
      "name": "fahrraeder.versand",
      "label": "Versand",
      "value": "Nur Abholung",
      "values": [
        {
          "…": "2 fields"
        }
      ],
      "unit": null,
      "type": "ENUM"
    },
    "…+2 more"
  ],
  "public_url": "https://www.kleinanzeigen.de/s-anzeige/neues-gravelbike-28-zoll-shimano-claris-16-gaenge-originalverpackt/3430905406-217-3438",
  "seller_profile": null,
  "detail": {
    "…": "19 fields"
  }
}
```

***

### 🧾 Data table

| Field | Type | Description |
| --- | --- | --- |
| `id` | text | Ad ID |
| `title` | text | Title |
| `description` | text | Description |
| `price_amount` | number | Price |
| `price_currency` | text | Currency |
| `price_type` | text | Price type |
| `category_id` | text | Category ID |
| `category_name` | text | Category |
| `zip_code` | text | Postcode |
| `state` | text | Location |
| `latitude` | number | Latitude |
| `longitude` | number | Longitude |
| `ad_type` | text | Ad type |
| `poster_type` | text | Poster type |
| `seller_account_type` | text | Seller account type |
| `contact_name` | text | Seller name |
| `user_id` | text | Seller ID |
| `start_date_time` | text | Posted date |
| `image_urls` | array | Images |
| `attributes` | array | Attributes |
| `public_url` | link | URL |
| `seller_profile` | object | Seller profile |
| `detail` | object | Full detail |

***

### 💰 Pricing — pay per result

This actor uses **pay-per-event** pricing: you pay only for the rows it delivers. Full ad detail (PDP) and seller profile data are add-ons, charged *in addition to* the base PLP row charge — only when you request them via `includeDetails` / `includeSellerProfile`.

| Event | Charged when | Price |
| --- | --- | --- |
| **PLP data row** | every search-result-listing row returned | **$1.00 per 1,000 rows** |
| **PDP data row** (add-on) | row enriched with full ad detail (`includeDetails: true`) | **$1.00 per 1,000 rows** |
| **Seller details row** (add-on) | row enriched with seller profile (`includeSellerProfile: true`) | **$1.00 per 1,000 rows** |

Example: 1,000 rows scraped with both `includeDetails` and `includeSellerProfile` on = 1,000 PLP + 1,000 PDP + 1,000 seller charges = **$3.00**.

***

### 🔌 Use the Kleinanzeigen Scraper via API

Run it programmatically with the [Apify API](https://docs.apify.com/api/v2):

```bash
curl -X POST "https://api.apify.com/v2/acts/kleinanzeigen-api-scraper/runs?token=YOUR_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
  "q": "fahrrad",
  "location": "Berlin",
  "distance": 20,
  "sortType": "DATE_DESCENDING",
  "pictureRequired": false,
  "buyNowOnly": false,
  "includeDetails": true,
  "includeSellerProfile": false,
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}'
```

Or with the Apify CLI: `apify call kleinanzeigen-api-scraper -i input.json -o`.

***

### ❓ FAQ

**Do I need an account or API key for Kleinanzeigen?**

No. The actor talks to Kleinanzeigen's public/mobile API for you — you only need an Apify account.

**Do I need a proxy?**

A proxy is recommended for reliable runs; set `proxyConfiguration` (Residential is safest for geo-restricted or bot-protected sites).

**What export formats are supported?**

JSON, CSV, Excel, XML, JSONL, RSS, or live via the Apify API and dataset endpoints.

**Is scraping this legal?**

You are responsible for how you use the data. Scrape only public record data and comply with Kleinanzeigen.com's Terms and applicable law (e.g. GDPR/CCPA for personal data).

***

### 🛠️ How it works

The actor impersonates Kleinanzeigen's official app/site and calls its private API the same way the app does, then normalises each response into the flat record above. No browser, no HTML scraping — just clean, structured data.

***

### 📌 Good to know

- Scrape only public record data and respect Kleinanzeigen.com's Terms of Service and robots policy.
- For personal data, comply with GDPR/CCPA and applicable law — you are the data controller.
- Fields can be `null` when Kleinanzeigen doesn't expose them for a given record.

***

### ⭐ Found this useful?

Give the **Kleinanzeigen Scraper** a star on Apify and check out my other `apify-*-api-scraper` actors.

# Actor input Schema

## `q` (type: `string`):

Keyword to search for (e.g. 'fahrrad', 'iphone'). Leave empty to browse a category/location.

## `location` (type: `string`):

A city, postcode or district (e.g. 'Berlin', '10435', 'München'). Resolved to the app's internal location id automatically.

## `distance` (type: `integer`):

Search radius around the location in km.

## `minPrice` (type: `integer`):

Minimum price filter.

## `maxPrice` (type: `integer`):

Maximum price filter.

## `adType` (type: `string`):

Offered or wanted ads.

## `posterType` (type: `string`):

Private or commercial sellers.

## `sortType` (type: `string`):

Result ordering.

## `pictureRequired` (type: `boolean`):

Only return ads that have at least one image.

## `buyNowOnly` (type: `boolean`):

Only return ads with direct-buy shipping.

## `includeDetails` (type: `boolean`):

Fetch the full ad detail (complete description, all images, all attributes, phone/contact, geo) for every result. Slower.

## `includeSellerProfile` (type: `boolean`):

Also fetch each ad's public seller profile (ratings, badges, counters, member-since).

## `maxItems` (type: `integer`):

Maximum number of ads to return (0 = as many as possible).

## `category` (type: `string`):

Optionally restrict to a Kleinanzeigen category.

## `proxyConfiguration` (type: `object`):

Route requests through a proxy (Apify Proxy by default).

## Actor input object example

```json
{
  "q": "fahrrad",
  "location": "Berlin",
  "distance": 20,
  "sortType": "DATE_DESCENDING",
  "pictureRequired": false,
  "buyNowOnly": false,
  "includeDetails": true,
  "includeSellerProfile": false,
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "DE"
  }
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "q": "fahrrad",
    "location": "Berlin",
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "DE"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("rl1987/kleinanzeigen-api-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "q": "fahrrad",
    "location": "Berlin",
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "DE",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("rl1987/kleinanzeigen-api-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "q": "fahrrad",
  "location": "Berlin",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "DE"
  }
}' |
apify call rl1987/kleinanzeigen-api-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=rl1987/kleinanzeigen-api-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/ethemLLq0N3aaWfBz/builds/g2E8SN7lOeBHL8pEo/openapi.json
