# Kleinanzeigen.de Scraper - German Classifieds (`conversational_kermis/kleinanzeigen-scraper`) Actor

Scrape listings from Kleinanzeigen.de (formerly eBay Kleinanzeigen) by keyword or any search/category URL: title, price and price type (fixed/VB/free), location, date, description, image, shipping and top-ad flags. Optional detail mode adds full description, attributes, all images and seller info.

- **URL**: https://apify.com/conversational_kermis/kleinanzeigen-scraper.md
- **Developed by:** [the anh nguyen](https://apify.com/conversational_kermis) (community)
- **Categories:** E-commerce, Lead generation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.96 / 1,000 ad 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?

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 Scraper - German Classifieds

Scrape ads from **Kleinanzeigen.de** (formerly eBay Kleinanzeigen), Germany's largest classifieds site. Search by keyword or paste any Kleinanzeigen search URL (category, city, radius, price or other filters), and get one clean row per ad: title, price with its price type (fixed, VB, free), postal code and place, date, description, main image, shipping and top-ad flags. Switch on **Fetch ad details** to add the full description, all attributes (e.g. Zustand, Modell, Wohnfläche, Warmmiete), all images, coordinates, shipping cost and the seller's name and type.

Plain HTTP, no browser: fast and cheap.

### What you get

- One row per ad, deduplicated by ad ID (top ads that reappear on later pages are not repeated)
- Paid **TOP ads** are kept and flagged with `is_top_ad: true`, so you can filter them out
- `price` is a number in EUR; `price_type` says how to read it: `fixed`, `negotiable` (VB), `free` (Zu verschenken) and more. A plain "VB" with no amount gives `price: null, price_type: "negotiable"`
- Missing values are `null`. Nothing is guessed or copied from the page onto every row

### Input

| Field | Type | Description |
|---|---|---|
| `searchQuery` | string | Keyword(s) to search across Germany, e.g. `fahrrad`, `iphone 13` |
| `startUrls` | array | Kleinanzeigen search result URLs. Set filters on the website, then paste the URL, e.g. `https://www.kleinanzeigen.de/s-fahrraeder/berlin/c217l3331` |
| `maxItems` | integer | Maximum ads to return in total. Default `100`, `0` = no limit |
| `maxPages` | integer | Maximum result pages per search (25 ads per page, plus up to 2 top ads). Default `5`, max `50` |
| `fetchDetails` | boolean | Open each ad page for the detail fields below. One extra request per ad. Default `false` |
| `proxyConfiguration` | object | Apify Proxy. The default datacenter proxy works |
| `onlyNew` | boolean | Monitor mode: return only ads not returned by earlier runs of the same search. See [Monitor new listings](#monitor-new-listings). Default `false` |
| `reportPriceChanges` | boolean | With `onlyNew`: also return seen ads whose price changed. Default `false` |

Use `searchQuery`, `startUrls`, or both.

```json
{
  "searchQuery": "iphone",
  "startUrls": [{ "url": "https://www.kleinanzeigen.de/s-wohnung-mieten/berlin/c203l3331" }],
  "maxItems": 100,
  "maxPages": 5,
  "fetchDetails": true,
  "proxyConfiguration": { "useApifyProxy": true }
}
```

### Monitor new listings

Turn on **Only new listings** (`onlyNew: true`) and [schedule](https://docs.apify.com/platform/schedules) the Actor with the same input, e.g. every hour. Each run then returns only the ads that no earlier run returned for that search: a feed of new ads. You pay only for the rows returned.

- **First run:** nothing has been seen yet, so the first run with `onlyNew` returns everything up to `maxItems` and remembers it. The feed of new ads starts with the second run.
- **Same search** means the search query and search URLs. `maxItems`, `maxPages`, `fetchDetails` and proxy are not part of it, so changing them keeps the memory; changing the search starts a new, empty one.
- In a search URL, choose the newest-first sort on Kleinanzeigen before copying it, so new ads come first; a low `maxPages` keeps scheduled runs short.
- **Price changes:** also turn on `reportPriceChanges` to get ads seen before whose price has changed since, with `changeType: "price_changed"` and `previousPrice`. Each change is returned once.
- Monitor rows carry `changeType` (`"new"` or `"price_changed"`) and `previousPrice`. With `onlyNew` off, the output is exactly as described below.
- The memory is a key-value store named `kleinanzeigen-scraper-seen` in your own Apify account, one record per search, holding up to the 50,000 most recently seen ads. Delete it to start over.
- A ad is remembered only after it has been returned, so a run that fails midway never hides an unreturned ad; at worst a few rows come again in the next run.

### Output

A real row from a run with `fetchDetails: true` (image list shortened):

```json
{
  "id": "3568007635",
  "url": "https://www.kleinanzeigen.de/s-anzeige/iphone-12-pro-max-pacific-blue-128-gb/3568007635-173-1028",
  "title": "iPhone 12 Pro Max Pacific Blue 128 GB",
  "price": 200,
  "price_type": "fixed",
  "price_raw": "200 €",
  "price_original": null,
  "currency": "EUR",
  "location": "57072 Siegen",
  "zip_code": "57072",
  "place": "Siegen",
  "posted_at": "2026-11-10T23:53:00+01:00",
  "posted_raw": "Heute, 23:53",
  "description": "Ich verkaufe mein iPhone 12 Pro Max in der Farbe Pacific Blue mit 128 GB Speicherplatz. Das Gerät ist 6 Jahre alt und befindet sich in einem gut erhaltenen Zustand.\n\n- Modell: iPhone 12 Pro Max\n- Farbe: Pacific Blue\n- Speicher: 128 GB\n- Akkuzustan...",
  "image_url": "https://img.kleinanzeigen.de/api/v1/prod-ads/images/de/de8a6b23-0282-46e2-af1e-daff32a7ae4a?rule=$_59.AUTO",
  "image_count": 9,
  "shipping_available": true,
  "direct_buy": true,
  "seller_type": "private",
  "is_top_ad": false,
  "is_wanted_ad": false,
  "badges": ["Direkt kaufen", "Versand möglich"],
  "card_attributes": null,
  "category_id": "173",
  "description_full": "Ich verkaufe mein iPhone 12 Pro Max in der Farbe Pacific Blue mit 128 GB Speicherplatz. ...",
  "attributes": {
    "Marke": "Apple",
    "Modell": "iPhone 12 Pro Max",
    "Farbe": "Blau",
    "Zustand": "Sehr Gut",
    "Betriebssystem": "iOS",
    "Akkuzustand": "Schwach (< 80%)"
  },
  "features": null,
  "images": ["https://img.kleinanzeigen.de/api/v1/prod-ads/images/de/de8a6b23-0282-46e2-af1e-daff32a7ae4a?rule=$_59.AUTO", "..."],
  "location_full": "57072 Nordrhein-Westfalen - Siegen",
  "region": "Nordrhein-Westfalen",
  "latitude": 50.8803723,
  "longitude": 7.9844554,
  "category_path": ["Elektronik", "Smartphones"],
  "shipping_info": "+ Versand ab 6,19 €",
  "shipping_cost": 6.19,
  "seller_name": null,
  "seller_id": "6496897",
  "seller_company": null,
  "seller_active_since": "2011-07-10",
  "seller_ads_online": 1,
  "search_url": "https://www.kleinanzeigen.de/s-iphone/k0",
  "scraped_at": "2026-11-10T22:59:10+00:00"
}
```

#### Fields from the result list (always)

`id`, `url`, `title`, `price`, `price_type`, `price_raw`, `price_original` (struck-through earlier price), `currency`, `location`, `zip_code`, `place`, `posted_at`, `posted_raw`, `description` (up to about 250 characters, may end in "..."), `image_url`, `image_count`, `shipping_available`, `direct_buy`, `seller_type` (only when the card says "Von Privat"), `is_top_ad`, `is_wanted_ad` (Gesuch), `badges`, `card_attributes` (e.g. `["55 m²", "2 Zi."]` on real-estate cards), `category_id`, `search_url`, `scraped_at`.

#### Extra fields with `fetchDetails: true`

`description_full`, `attributes`, `features` (e.g. `["Balkon", "Einbauküche"]` on apartments), `images`, `location_full`, `region`, `latitude`, `longitude`, `category_path`, `created_date`, `shipping_info`, `shipping_cost`, `seller_name` (commercial sellers only: a private seller's name is never returned), `seller_id`, `seller_type` (private or commercial), `seller_company` (commercial sellers with a shop page), `seller_active_since`, `seller_ads_online`. Without `fetchDetails` these are `null`.

### Good to know

- **`place` is what the result card shows.** In big cities that is the district (`12169 Steglitz`); `location_full` with details gives `12169 Berlin - Steglitz`.
- **`posted_at`** is the date the result list shows, which moves when a seller bumps an ad. Today's and yesterday's ads come with a time. Top ads and real-estate cards show no date, so for them `posted_at` is filled only with `fetchDetails`. `created_date` (details) is when the ad was first created, when Kleinanzeigen provides it.
- **`shipping_available`** is `true` when the ad offers shipping. It is `false` only when the ad page says "Nur Abholung" (needs `fetchDetails`); otherwise unknown is `null`.
- **Free items:** "Zu verschenken" ads get `price: null, price_type: "free"`, both when the card says so and in the "Zu verschenken" category, whose cards show no price at all.
- **Phone numbers are never collected.** Seller names are the public display names shown on the ad.
- **Limits:** Kleinanzeigen shows 25 ads per result page. Very broad searches are capped by Kleinanzeigen's own pagination; narrow the search (category, city, price) to reach more ads. Kleinanzeigen occasionally answers with HTTP 403; the Actor retries on a fresh proxy session.

### Common uses

- Price research for used goods, cars, bikes and electronics
- Rental market monitoring by city (Warmmiete, Wohnfläche, Zimmer)
- Resellers and dealers watching new listings in their category
- Lead lists of commercial sellers

### Notes

This Actor reads publicly visible ad pages. Check Kleinanzeigen's terms of use and the GDPR before you store or process personal data such as seller names.

# Actor input Schema

## `searchQuery` (type: `string`):

Keyword(s) to search across all of Germany, e.g. "fahrrad" or "iphone 15". Leave empty if you use Start URLs.

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

Kleinanzeigen.de search result URLs, e.g. https://www.kleinanzeigen.de/s-fahrraeder/berlin/c217l3331. Set category, location, radius, price and other filters on the website, then paste the URL. Single ad pages (/s-anzeige/...) are ignored.

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

Maximum number of ads to return across all searches. 0 = no limit (bounded by Max pages).

## `maxPages` (type: `integer`):

Maximum result pages to read per search (25 ads per page, plus up to 2 top ads).

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

Open every ad page for the full description, attributes (e.g. Zustand, Typ, Wohnfläche), all images, coordinates, shipping info and seller name/type. One extra request per ad: slower and more expensive.

## `onlyNew` (type: `boolean`):

Monitor mode: on repeat runs with the same search, return only listings not seen before. Schedule the Actor to get a feed of new listings. The first run with this on returns everything and remembers it. Memory is per search and per Apify account; maxItems, proxy and detail options are not part of the search.

## `reportPriceChanges` (type: `boolean`):

Only with Only new listings. When a listing seen in an earlier run is back with a different price, return it again with changeType "price_changed" and previousPrice.

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

Apify Proxy. The default datacenter proxy works for Kleinanzeigen.

## Actor input object example

```json
{
  "searchQuery": "fahrrad",
  "maxItems": 20,
  "maxPages": 5,
  "fetchDetails": false,
  "onlyNew": false,
  "reportPriceChanges": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# 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 = {
    "searchQuery": "fahrrad",
    "maxItems": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("conversational_kermis/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 = {
    "searchQuery": "fahrrad",
    "maxItems": 20,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("conversational_kermis/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 '{
  "searchQuery": "fahrrad",
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call conversational_kermis/kleinanzeigen-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,conversational_kermis/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/8Q88XhMI5I7W3NcXW/builds/fmfmiaPA6mUjgCKdx/openapi.json
