# Kleinanzeigen.de 🏡 Real Estate Scraper ⚡ (`nogards95/kleinanzeigen-de-real-estate-scraper`) Actor

Scrape kleinanzeigen.de real-estate listings as structured JSON — price, size (m²), rooms, location (PLZ + Ortsteil), and a reliable private-vs-agency seller flag. Flats, houses and plots, rent and sale, any German city. For lead-gen operators, agencies and property investors.

- **URL**: https://apify.com/nogards95/kleinanzeigen-de-real-estate-scraper.md
- **Developed by:** [Nogards](https://apify.com/nogards95) (community)
- **Categories:**
- **Stats:** 2 total users, 1 monthly users, 33.3% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.69 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#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.de Real Estate Scraper

**Track the German private real-estate market on kleinanzeigen.de.** For
lead-gen operators harvesting private-seller listings, agencies watching
competitor stock, and investors comparing €/m² by Stadtteil.

### What you get

- **Every ad on a search as structured JSON** — price, size (m²), rooms,
  location (PLZ + Ortsteil), title, description teaser, image.
- **A reliable private-vs-agency flag** taken from kleinanzeigen's own data, not
  guessed from the text. Filter to private sellers only for lead generation.
- **Flats, houses and plots, rent and sale, any German city** — one schema for
  all of them.

### Sample output

```json
{
  "id": "3475989213",
  "url": "https://www.kleinanzeigen.de/s-anzeige/neubau-eleganz-exklusive-3-zimmer-wohnung-in-friedenau-mit-balkon-und-fahrstuhl/3475989213-203-17085",
  "title": "Neubau-Eleganz: Exklusive 3-Zimmer-Wohnung in Friedenau mit Balkon und Fahrstuhl",
  "descriptionTeaser": "Mit dem FRIEDAS Berlin entsteht auf einem Areal von ca. 24.366 m2 ein modernes Wohnquartier. Der…",
  "category": "wohnung-mieten",
  "listingType": "rent",
  "propertyKind": "flat",
  "price": 1980,
  "priceQualifier": "fixed",
  "priceRaw": "1.980 €",
  "pricePrevious": null,
  "currency": "EUR",
  "sizeSqm": 76.45,
  "rooms": 3,
  "tags": ["Online-Besichtigung"],
  "isWanted": false,
  "location": {
    "zip": "12159",
    "name": "Friedenau",
    "citySlug": "berlin",
    "locationId": "3331"
  },
  "seller": {
    "type": "commercial",
    "id": "150979558",
    "name": "Müller Merkle Immobilien GmbH"
  },
  "features": ["TOP_AD"],
  "has360Tour": false,
  "imageCount": 20,
  "imageUrl": "https://img.kleinanzeigen.de/api/v1/prod-ads/images/dd/dd95346e-91df-4312-88ac-bad5c528b7f3?rule=$_59.AUTO",
  "scrapedAt": "2026-08-29T14:12:03.000Z"
}
```

### Input

| Field | What it does |
|---|---|
| **Search mode** | Build a search from a category + city, or paste kleinanzeigen search URLs. |
| **Property category** | Flat / house / plot / commercial / shared room, rent or buy. |
| **City or region** | A German city or Bundesland (`berlin`, `muenchen`, `nordrhein-westfalen`, …), or `deutschland` for nationwide. Use **Location ID** for anywhere not in the built-in list. |
| **Search URLs** | One or more kleinanzeigen.de real-estate search-result URLs (used in URL mode). |
| **Max results** | Stops after this many matching ads. |
| **Max pages per search** | 1–5. kleinanzeigen serves at most 5 pages (~125 ads) per search. |
| **Min / max price, size, rooms** | Applied to the data after fetching. |
| **Seller type** | Any, private sellers only, or agencies only. |
| **Exclude "wanted" ads** | Drop `Gesuch` listings (people looking for a place). Off by default. |
| **Proxy** | Residential Germany recommended. |

Notes:

- Each search covers **pages 1–5 (~125 ads)**. To go beyond that for a big city,
  run the actor again per Stadtteil (with that Stadtteil's Location ID) or per
  price band.
- Filters are applied **after** fetching a page, so **Max results** counts
  matching ads, not ads fetched.
- kleinanzeigen.de blocks datacenter IPs; a residential-Germany proxy is
  strongly recommended.

### Technical notes

HTTP-only — no headless browser. The actor reads the search-result pages and
their embedded per-ad metadata. If kleinanzeigen changes its page markup the
actor is updated to match. Not affiliated with kleinanzeigen.de or Adevinta.
Detail-page fields (Kaltmiete/Warmmiete breakdown, Baujahr, energy certificate,
GPS) are not included in this version.

# Actor input Schema

## `searchMode` (type: `string`):

Build the search from a category + city, or paste kleinanzeigen search URLs directly.

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

Used in "By category + location" mode.

## `city` (type: `string`):

A German city or Bundesland from the built-in list (e.g. berlin, muenchen, hamburg, nordrhein-westfalen). Use "deutschland" for a nationwide search. For a place not in the list, use "locationId" instead.

## `locationId` (type: `integer`):

kleinanzeigen numeric location id — the number after the "l" in a search URL. Overrides "city" when set.

## `citySlug` (type: `string`):

Cosmetic URL segment used together with a manual locationId (e.g. "muenchen").

## `searchUrls` (type: `array`):

Used in "By pasted search URL" mode. Paste one or more kleinanzeigen.de real-estate search-result URLs. Only pages 1–5 of each are fetched.

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

Stop after this many matching ads. One search URL yields up to ~125 (5 pages × ~25).

## `maxPagesPerSearch` (type: `integer`):

kleinanzeigen only serves pages 1–5 to crawlers.

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

Applied after fetching. Ads with no listed price are excluded when a price bound is set.

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

Applied after fetching.

## `minSizeSqm` (type: `integer`):

Applied after fetching. Ads with no size (e.g. plots) are excluded when a size bound is set.

## `maxSizeSqm` (type: `integer`):

Applied after fetching.

## `minRooms` (type: `number`):

Applied after fetching.

## `maxRooms` (type: `number`):

Applied after fetching.

## `sellerType` (type: `string`):

Filtered from the data after fetching. "Private sellers only" is the lead-gen use case.

## `excludeWanted` (type: `boolean`):

Drop "Gesuch" listings (someone looking for a place, not offering one). Off by default.

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

Residential Germany is strongly recommended — kleinanzeigen.de blocks datacenter IPs.

## Actor input object example

```json
{
  "searchMode": "byLocation",
  "category": "wohnung-mieten",
  "city": "berlin",
  "searchUrls": [
    "https://www.kleinanzeigen.de/s-wohnung-mieten/berlin/c203l3331"
  ],
  "maxItems": 100,
  "maxPagesPerSearch": 5,
  "sellerType": "any",
  "excludeWanted": false,
  "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 = {
    "searchUrls": [
        "https://www.kleinanzeigen.de/s-wohnung-mieten/berlin/c203l3331"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("nogards95/kleinanzeigen-de-real-estate-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 = { "searchUrls": ["https://www.kleinanzeigen.de/s-wohnung-mieten/berlin/c203l3331"] }

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

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

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

```

## CLI example

```bash
echo '{
  "searchUrls": [
    "https://www.kleinanzeigen.de/s-wohnung-mieten/berlin/c203l3331"
  ]
}' |
apify call nogards95/kleinanzeigen-de-real-estate-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,nogards95/kleinanzeigen-de-real-estate-scraper"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

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