# Kleinanzeigen Scraper: Ads, Prices, Sellers (kleinanzeigen.de) (`ksvan/kleinanzeigen-scraper`) Actor

Scrape kleinanzeigen.de ads (ex eBay Kleinanzeigen) from any search, category, keyword or location: price, VB flag, postal code, city, date, km, year, m², rooms, seller type, images. Optional details: full description, all attributes, street, seller name and badges.

- **URL**: https://apify.com/ksvan/kleinanzeigen-scraper.md
- **Developed by:** [K.S. Van](https://apify.com/ksvan) (community)
- **Categories:** E-commerce, Lead generation, Automation
- **Security:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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 Scraper: Ads, Prices, Sellers (kleinanzeigen.de)

Scrape **classified ads from kleinanzeigen.de** (formerly eBay Kleinanzeigen), Germany's largest marketplace for cars, flats, electronics, bikes, furniture and more. Paste any search or category page with your filters, or just type keywords. Each ad comes with its **title, price, negotiable (VB) flag, postal code, city, region, date, attributes (mileage, first registration, m², rooms...), seller type, shop and images**. Turn on **Ad details** to add the **full description, every attribute, features, street, shipping, seller name, seller badges and member since**.

No login, no browser. You pay per ad delivered.

### What you can paste

- **Category pages**: `https://www.kleinanzeigen.de/s-autos/c216`, `https://www.kleinanzeigen.de/s-fahrraeder/c217`
- **Searches with filters and location**: set keyword, city, radius, price or attributes on the site and paste the URL, e.g. `https://www.kleinanzeigen.de/s-wohnung-mieten/berlin/c203l3331`, `https://www.kleinanzeigen.de/s-berlin/iphone/k0l3331`
- **Keywords** (all of Germany): `iphone 15`, `e-bike`, `sofa`
- **Single ads**: `https://www.kleinanzeigen.de/s-anzeige/...` (always with details)

### What you get

| Field | Example |
|---|---|
| `adId`, `url`, `title`, `description` | 3548035526, Hyundai i20 Pure Kamera PDC Assistenz |
| `price`, `priceValue`, `priceType`, `currency` | 26.500 € VB, 26500, NEGOTIABLE, EUR |
| `postalCode`, `city`, `region` | 24941, Flensburg, Schleswig-Holstein |
| `date`, `dateText` | 2026-10-21T20:30:00+02:00, Heute, 20:30 |
| `attributes` | \["33.000 km", "EZ 06/2023"] or \["60 m²", "2 Zi."] |
| `sellerType`, `userId`, `storeName`, `storeUrl` | Commercial, 156745261 |
| `isTopAd`, `isHighlight`, `hasVideos`, `shipping` | true, false |
| `images`, `mainImage`, `imageCount` | image URLs |
| `categoryId`, `position`, `input` | 216, rank in the search |

With **Ad details**: full `description`, `details` (e.g. {"Zustand": "Neu", "Typ": "Tandems", "Kilometerstand": "33.000 km"}), `features`, `street`, `state`, `shipping`, `published`, `sellerName`, `sellerAccountType`, `sellerActiveSince`, `sellerBadges`, `category`, `subcategory`, `adType` and all `images`.

### Use cases

- **Car and real estate dealers**: find private sellers and price-check listings by model, mileage, size and location.
- **Resellers**: track bargains for phones, consoles, bikes or furniture and get new ads first.
- **Market research**: average prices, supply and demand by region and category.
- **Lead generation**: shops and commercial sellers with their Kleinanzeigen store pages.

### How to use

1. Open kleinanzeigen.de, search and set filters (city, radius, price, attributes), then copy the URL. Or type keywords.
2. Set **Max ads per search**.
3. Optional: turn on **Ad details** and **Skip top ads**.
4. Run and open the **Ads** view, or export to JSON, CSV or Excel.

#### Example input

```json
{
  "startUrls": ["https://www.kleinanzeigen.de/s-wohnung-mieten/berlin/c203l3331"],
  "searchQueries": ["e-bike"],
  "maxAdsPerSearch": 200,
  "includeDetails": true,
  "skipTopAds": true
}
```

### Pricing

- **Ad**: charged per ad from search or category pages.
- **Ad with details**: a higher price per ad when **Ad details** is on (one extra page per ad).

No start fee. Pages that fail are reported as `error` records and are **not charged**.

### Tips and limits

- Kleinanzeigen shows about 25 ads per page and up to 50 pages per search. Split big searches by city or price to get more.
- TOP ads are paid placements and can repeat across pages; they are counted once per run.
- `region` is the state or the larger city that Kleinanzeigen shows next to the district.
- The actor starts on datacenter proxy and switches to residential automatically when a request is blocked.

### FAQ

**Do I need a Kleinanzeigen account?** No.

**Do I get phone numbers?** No. Kleinanzeigen shows them only after login.

**Is it legal?** The actor reads publicly visible ads. Use personal data in line with GDPR and Kleinanzeigen's terms.

# Actor input Schema

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

Search or category pages with any filters set on kleinanzeigen.de (https://www.kleinanzeigen.de/s-wohnung-mieten/berlin/c203l3331, https://www.kleinanzeigen.de/s-berlin/iphone/k0l3331) or single ads (https://www.kleinanzeigen.de/s-anzeige/...).

## `searchQueries` (type: `array`):

One search per keyword across Germany, e.g. iphone 15, e-bike, sofa. For a city or radius, set it on the site and paste the URL above.

## `maxAdsPerSearch` (type: `integer`):

About 25 ads per page; Kleinanzeigen shows up to 50 pages per search.

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

Open each ad for the full description, all attributes (condition, type, rooms, mileage...), features, street, shipping, seller name, seller badges and member since, plus all images. Charged as an ad with details.

## `skipTopAds` (type: `boolean`):

Leave out paid TOP ads that Kleinanzeigen repeats on many pages.

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

0 = no limit.

## `maxConcurrency` (type: `integer`):

How many ad pages are opened at the same time (ad details only).

## `maxRetries` (type: `integer`):

Each retry uses a new proxy IP.

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

Leave the default: datacenter first, residential automatically when Kleinanzeigen blocks a request. Pick a group only to force it.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.kleinanzeigen.de/s-autos/c216"
  ],
  "maxAdsPerSearch": 100,
  "includeDetails": false,
  "skipTopAds": false,
  "maxItems": 0,
  "maxConcurrency": 8,
  "maxRetries": 6,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

One record per ad; failed inputs appear as error records and are not charged.

# 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 = {
    "startUrls": [
        "https://www.kleinanzeigen.de/s-autos/c216"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("ksvan/kleinanzeigen-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 = {
    "startUrls": ["https://www.kleinanzeigen.de/s-autos/c216"],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("ksvan/kleinanzeigen-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 '{
  "startUrls": [
    "https://www.kleinanzeigen.de/s-autos/c216"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call ksvan/kleinanzeigen-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,ksvan/kleinanzeigen-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/4jRrx3eCOYxB59Pb3/builds/kX7ceu7gKm0WebK0S/openapi.json
