# Kleinanzeigen Immobilien Scraper - German Real Estate (`benthepythondev/kleinanzeigen-immobilien-scraper`) Actor

Scrape rental & for-sale property listings from Kleinanzeigen (Germany). Parses rooms, m², Kaltmiete/Warmmiete, deposit, type & more into clean fields. Filter by location, rooms, size & price.

- **URL**: https://apify.com/benthepythondev/kleinanzeigen-immobilien-scraper.md
- **Developed by:** [ben](https://apify.com/benthepythondev) (community)
- **Categories:** Real estate
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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 Immobilien Scraper — German Real Estate Listings

Scrape **rental and for-sale property listings from Kleinanzeigen** (formerly eBay
Kleinanzeigen), Germany's largest classifieds site. Unlike a generic listings
scraper, this one is built for real estate: it parses the German property
attributes — **Zimmer (rooms), Wohnfläche (m²), Kaltmiete, Warmmiete, Kaution,
Baujahr, Wohnungstyp** — into clean, structured fields ready for analysis.

### Quick start

Pick an **offer type** (apartments/houses, rent/sale), a **location** (PLZ or city
like `berlin`), and click Run. You'll get structured property listings with price,
rooms, size, and location. Add filters for min rooms, min m², or max price.

### Why this Actor

- **Real-estate-specific output** — rooms, living space, cold/warm rent, deposit,
  property type, year built, energy class — not just a raw title + price.
- **Rent or buy, apartments or houses** — one toggle.
- **Filter where it matters** — by location + radius, min rooms, min size, max price.
- **Reliable access** — runs through residential DE proxies (Kleinanzeigen blocks
  datacenter IPs), the same proven approach behind our Kleinanzeigen scraper.
- **DACH lead-gen & market data** — built for the German market.

### Input

| Field | Type | Description |
|-------|------|-------------|
| `offerType` | enum | rent-apartment, buy-apartment, rent-house, buy-house, all |
| `locationCode` | string | PLZ (e.g. 10115) or city slug (e.g. berlin) |
| `radiusKm` | integer | Search radius around the location |
| `keyword` | string | Optional keyword (e.g. balkon, altbau) |
| `startUrls` | array | Paste exact Kleinanzeigen real-estate search URLs (precise control) |
| `minRooms` / `minSqm` / `maxPrice` | integer | Result filters |
| `fetchDetails` | boolean | Open each listing for full attributes (default true) |
| `maxResults` | integer | Max listings to return |

#### Example input

```json
{
  "offerType": "rent-apartment",
  "locationCode": "berlin",
  "minRooms": 2,
  "maxPrice": 1500,
  "maxResults": 100
}
````

### Output

```json
{
  "ad_id": "2891234567",
  "title": "Helle 3-Zimmer-Wohnung mit Balkon",
  "offer_type": "rent-apartment",
  "rooms": 3,
  "living_space_sqm": 78,
  "cold_rent_eur": 1200,
  "warm_rent_eur": 1450,
  "deposit_eur": 3600,
  "extra_costs_eur": 250,
  "property_type": "Etagenwohnung",
  "year_built": "1998",
  "available_from": "01.08.2026",
  "city": "Berlin",
  "plz": "10115",
  "url": "https://www.kleinanzeigen.de/s-anzeige/...",
  "image_url": "https://...",
  "scraped_at": "2026-06-23T20:00:00Z"
}
```

### Use cases

- **Real-estate lead generation** — find private landlords and sellers in a region.
- **Market & rent analysis** — track asking rents and prices by city/PLZ over time.
- **Property investors** — surface deals across apartments and houses.
- **Relocation & proptech tools** — power a search product with structured listings.

### FAQ

**Which sites does it cover?** Kleinanzeigen.de (Germany), the Immobilien (real estate) section — both rentals and for-sale.

**Do I need an API key?** No. A residential DE proxy is used automatically for reliable access.

**Can I target a specific city or postal code?** Yes — set `locationCode` to a PLZ or city slug and an optional `radiusKm`. For full control, paste exact search URLs in `startUrls`.

**What real-estate fields do I get?** Rooms, living space (m²), cold/warm rent, deposit, extra costs, purchase price, property type, floor, year built, availability, heating, and energy class (when present in the listing).

**Is scraping Kleinanzeigen legal?** It extracts publicly available listing data. Use it responsibly and in line with applicable laws and Kleinanzeigen's terms.

***

**Keywords:** Kleinanzeigen scraper, Kleinanzeigen Immobilien, German real estate scraper, Immobilien scraper, Mietwohnung scraper, Wohnung mieten data, German property listings, real estate leads Germany, DACH real estate data, eBay Kleinanzeigen real estate.

# Actor input Schema

## `offerType` (type: `string`):

What kind of real-estate listings to scrape.

## `locationCode` (type: `string`):

German postal code (e.g. 10115) or city slug (e.g. berlin). Leave empty for all of Germany.

## `radiusKm` (type: `integer`):

Search radius around the location.

## `keyword` (type: `string`):

Optional keyword to narrow results (e.g. 'balkon', 'altbau').

## `startUrls` (type: `array`):

Paste exact kleinanzeigen.de real-estate search URLs (overrides the fields above). This is the most reliable way to target a specific city — search on kleinanzeigen.de and copy the URL.

## `minRooms` (type: `integer`):

Only keep listings with at least this many rooms.

## `minSqm` (type: `integer`):

Only keep listings with at least this living area.

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

Only keep listings at or below this price (rent or purchase).

## `fetchDetails` (type: `boolean`):

Open each listing to extract rooms, m², Kaltmiete/Warmmiete, deposit, etc. (recommended).

## `maxResults` (type: `integer`):

Maximum number of listings to return.

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

Residential DE proxy is strongly recommended (Kleinanzeigen blocks datacenter IPs).

## Actor input object example

```json
{
  "offerType": "rent-apartment",
  "locationCode": "berlin",
  "radiusKm": 0,
  "startUrls": [
    "https://www.kleinanzeigen.de/s-wohnung-mieten/berlin/c203l3331"
  ],
  "fetchDetails": true,
  "maxResults": 100,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "DE"
  }
}
```

# 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 = {
    "offerType": "rent-apartment",
    "locationCode": "berlin",
    "startUrls": [
        "https://www.kleinanzeigen.de/s-wohnung-mieten/berlin/c203l3331"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "DE"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("benthepythondev/kleinanzeigen-immobilien-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 = {
    "offerType": "rent-apartment",
    "locationCode": "berlin",
    "startUrls": ["https://www.kleinanzeigen.de/s-wohnung-mieten/berlin/c203l3331"],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "DE",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("benthepythondev/kleinanzeigen-immobilien-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 '{
  "offerType": "rent-apartment",
  "locationCode": "berlin",
  "startUrls": [
    "https://www.kleinanzeigen.de/s-wohnung-mieten/berlin/c203l3331"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "DE"
  }
}' |
apify call benthepythondev/kleinanzeigen-immobilien-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Kleinanzeigen Immobilien Scraper - German Real Estate",
        "description": "Scrape rental & for-sale property listings from Kleinanzeigen (Germany). Parses rooms, m², Kaltmiete/Warmmiete, deposit, type & more into clean fields. Filter by location, rooms, size & price.",
        "version": "0.1",
        "x-build-id": "V3lkeX6PcXGehqifM"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/benthepythondev~kleinanzeigen-immobilien-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-benthepythondev-kleinanzeigen-immobilien-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/benthepythondev~kleinanzeigen-immobilien-scraper/runs": {
            "post": {
                "operationId": "runs-sync-benthepythondev-kleinanzeigen-immobilien-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/benthepythondev~kleinanzeigen-immobilien-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-benthepythondev-kleinanzeigen-immobilien-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "offerType": {
                        "title": "Offer type",
                        "enum": [
                            "rent-apartment",
                            "buy-apartment",
                            "rent-house",
                            "buy-house",
                            "all"
                        ],
                        "type": "string",
                        "description": "What kind of real-estate listings to scrape.",
                        "default": "rent-apartment"
                    },
                    "locationCode": {
                        "title": "Location (PLZ or city slug)",
                        "type": "string",
                        "description": "German postal code (e.g. 10115) or city slug (e.g. berlin). Leave empty for all of Germany."
                    },
                    "radiusKm": {
                        "title": "Radius (km)",
                        "minimum": 0,
                        "maximum": 200,
                        "type": "integer",
                        "description": "Search radius around the location.",
                        "default": 0
                    },
                    "keyword": {
                        "title": "Keyword (optional)",
                        "type": "string",
                        "description": "Optional keyword to narrow results (e.g. 'balkon', 'altbau')."
                    },
                    "startUrls": {
                        "title": "Start URLs (recommended for a specific city)",
                        "type": "array",
                        "description": "Paste exact kleinanzeigen.de real-estate search URLs (overrides the fields above). This is the most reliable way to target a specific city — search on kleinanzeigen.de and copy the URL.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "minRooms": {
                        "title": "Min rooms",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Only keep listings with at least this many rooms."
                    },
                    "minSqm": {
                        "title": "Min living space (m²)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Only keep listings with at least this living area."
                    },
                    "maxPrice": {
                        "title": "Max price (EUR)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Only keep listings at or below this price (rent or purchase)."
                    },
                    "fetchDetails": {
                        "title": "Fetch detail pages",
                        "type": "boolean",
                        "description": "Open each listing to extract rooms, m², Kaltmiete/Warmmiete, deposit, etc. (recommended).",
                        "default": true
                    },
                    "maxResults": {
                        "title": "Max results",
                        "minimum": 1,
                        "maximum": 5000,
                        "type": "integer",
                        "description": "Maximum number of listings to return.",
                        "default": 100
                    },
                    "proxyConfiguration": {
                        "title": "Proxy",
                        "type": "object",
                        "description": "Residential DE proxy is strongly recommended (Kleinanzeigen blocks datacenter IPs).",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ],
                            "apifyProxyCountry": "DE"
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
