# Kleinanzeigen.de Germany Scraper - Real Estate, Cars & Leads (`hoanle0126/kleinanzeigen-germany-classifieds-realestate-scraper`) Actor

Scrape Germany's #1 classifieds marketplace Kleinanzeigen.de across Real Estate, Cars, Electronics, Jobs & Services: prices, VB flags, PLZ locations, structured attributes, images, seller type & commercial Impressum contacts. Pure HTTP, zero proxies.

- **URL**: https://apify.com/hoanle0126/kleinanzeigen-germany-classifieds-realestate-scraper.md
- **Developed by:** [Hoan Le](https://apify.com/hoanle0126) (community)
- **Categories:** Real estate, E-commerce, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.12 / 1,000 dataset items

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?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

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

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Kleinanzeigen.de Germany Scraper (Real Estate, Cars, Electronics & Sellers)

Scrape Germany's #1 classifieds marketplace **Kleinanzeigen.de** across **Real Estate (`Immobilien`), Used Cars (`Autos`), Electronics, Jobs, Services, and Local Deals**: titles, numeric EUR prices, `VB` negotiable flags, `PLZ` postal codes, cities, full descriptions, structured item attributes (sqm, rooms, rent, mileage, first registration, brand), seller type (`commercial` vs `private`), commercial legal **Impressum** details, extracted contact info, and full gallery images.

Built with ultra-lightweight pure HTTP (`got-scraping` browser TLS fingerprinting, `256 MB` RAM), zero headless browsers, and zero residential proxy markups.

### Why Use This Kleinanzeigen.de Scraper?

- **All German Verticals in One Actor:** Scrape apartments for rent/sale (`Wohnung mieten/kaufen`), used cars (`Autos`), refurbished electronics, local services, and B2B liquidation deals using either keywords + city/category filters OR any direct `kleinanzeigen.de/s-...` filtered URL.
- **Commercial (`Gewerblich`) Seller & Impressum Lead Extraction:** Filter specifically for commercial dealers, agencies, and local shops (`sellerTypeFilter: "commercial"`) and extract their public German **Impressum** text plus any listed emails/phone numbers.
- **Clean Structured Attributes:** Automatically parses Kleinanzeigen's detail attribute tables (`Marke`, `Kilometerstand`, `Erstzulassung`, `Wohnfläche`, `Zimmer`, `Kaltmiete`, `Speicher`, etc.) into a clean JSON object.
- **Multi-Page Deep Pagination:** Automatically advances `seite:1`, `seite:2`, `seite:3`... up to your `maxItemsPerTarget` limit with deduplication by `adId`.

### Input Parameters

| Field | Type | Default | Description |
|---|---|---|---|
| `targets` | `string[]` | `["iphone 16"]` | Keywords OR full `kleinanzeigen.de` search, category, or listing URLs. |
| `categorySlug` | `string` | `""` | Optional category (`s-immobilien`, `s-wohnung-mieten`, `s-wohnung-kaufen`, `s-autos`, `s-elektronik`, `s-jobs`, `s-dienstleistungen`) for keyword searches. |
| `locationSlug` | `string` | `"berlin"` | Optional German city (`berlin`, `muenchen`, `hamburg`, `koeln`, `frankfurt-am-main`, `stuttgart`, `duesseldorf`, `leipzig`) for keyword searches; leave empty for nationwide Germany. |
| `sellerTypeFilter` | `string` | `"all"` | `"all"`, `"commercial"` (Gewerblich), or `"private"` (Privat). |
| `minPriceEur` | `number` | `0` | Optional minimum EUR price filter. |
| `maxPriceEur` | `number` | `0` | Optional maximum EUR price filter. |
| `enrichDetails` | `boolean` | `true` | Fetch every `/s-anzeige/...` detail page for full descriptions, structured attributes, seller info, Impressum & gallery images. |
| `maxItemsPerTarget` | `integer` | `25` | Maximum listings per target (`1` to `300`). |

### Example Inputs

#### 1. Berlin Apartments for Rent (Real Estate Arbitrage & Alerts)

```json
{
    "targets": ["https://www.kleinanzeigen.de/s-wohnung-mieten/berlin/c203l3331"],
    "minPriceEur": 700,
    "maxPriceEur": 2000,
    "enrichDetails": true,
    "maxItemsPerTarget": 50
}
```

#### 2. Commercial Used Car & Electronics Dealers in Berlin

```json
{
    "targets": ["iphone 16", "bmw 3er"],
    "locationSlug": "berlin",
    "sellerTypeFilter": "commercial",
    "enrichDetails": true,
    "maxItemsPerTarget": 30
}
```

### Example Output Record

```json
{
    "adId": "3574566021",
    "title": "iPhone 16 | 128GB | inkl. Gewährleistung",
    "priceEur": 629,
    "priceText": "629 €",
    "isNegotiable": false,
    "postalCode": "10317",
    "city": "Berlin - Lichtenberg",
    "sellerName": "itmops GSM GmbH",
    "sellerType": "commercial",
    "attributes": {
        "Marke": "Apple",
        "Speicher (GB)": "128 GB"
    },
    "url": "https://www.kleinanzeigen.de/s-anzeige/iphone-16-i-128gb/3574566021-173-3353"
}
```

### Integrations, MCP & Automation

Connect this Actor to **Apify MCP Server**, **n8n**, **Make.com**, **Zapier**, **Telegram/Slack deal alert bots**, or **Google Sheets** to monitor new German real estate listings, car deals, and commercial seller inventory on autopilot.

### Frequently Asked Questions

**Can I paste a custom filtered URL directly from Kleinanzeigen.de?**
Yes. Copy any search URL with your exact price, radius, room count, or car mileage filters from Kleinanzeigen.de and paste it directly into `targets`.

**Does this Actor require proxies?**
No. It uses lightweight browser-profiled HTTP (`got-scraping`) on `256 MB` RAM with zero proxy surcharges.

# Actor input Schema

## `targets` (type: `array`):

Search keywords (e.g., 'iphone 16', '2 zimmer wohnung', 'bmw 3er') OR full Kleinanzeigen.de category/search/listing URLs (e.g., 'https://www.kleinanzeigen.de/s-wohnung-mieten/berlin/c203l3331').

## `categorySlug` (type: `string`):

Optional Kleinanzeigen category for keyword searches (ignored for direct URLs).

## `locationSlug` (type: `string`):

Optional German city slug for keyword searches (e.g., 'berlin', 'muenchen', 'hamburg', 'koeln', 'frankfurt-am-main'). Leave empty for all of Germany.

## `sellerTypeFilter` (type: `string`):

Filter listings by private or commercial (gewerblich) sellers.

## `minPriceEur` (type: `number`):

Optional minimum price filter in EUR (0 disables filter).

## `maxPriceEur` (type: `number`):

Optional maximum price filter in EUR (0 disables filter).

## `enrichDetails` (type: `boolean`):

Visits each listing page (/s-anzeige/...) to extract full descriptions, structured attributes (sqm, rooms, mileage, year, brand), seller profile, commercial Impressum contacts, and all gallery images.

## `maxItemsPerTarget` (type: `integer`):

Maximum Kleinanzeigen listings to scrape per keyword or URL (1 to 300).

## Actor input object example

```json
{
  "targets": [
    "iphone 16"
  ],
  "categorySlug": "",
  "locationSlug": "berlin",
  "sellerTypeFilter": "all",
  "minPriceEur": 0,
  "maxPriceEur": 0,
  "enrichDetails": true,
  "maxItemsPerTarget": 25
}
```

# Actor output Schema

## `dataset` (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 = {
    "targets": [
        "iphone 16"
    ],
    "locationSlug": "berlin",
    "maxItemsPerTarget": 25
};

// Run the Actor and wait for it to finish
const run = await client.actor("hoanle0126/kleinanzeigen-germany-classifieds-realestate-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 = {
    "targets": ["iphone 16"],
    "locationSlug": "berlin",
    "maxItemsPerTarget": 25,
}

# Run the Actor and wait for it to finish
run = client.actor("hoanle0126/kleinanzeigen-germany-classifieds-realestate-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 '{
  "targets": [
    "iphone 16"
  ],
  "locationSlug": "berlin",
  "maxItemsPerTarget": 25
}' |
apify call hoanle0126/kleinanzeigen-germany-classifieds-realestate-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,hoanle0126/kleinanzeigen-germany-classifieds-realestate-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/FMVexsfcNZs5aq9Cc/builds/5TT3pu2eAcbXS5WRj/openapi.json
