# Kleinanzeigen Scraper 💚 (`epicscrapers/kleinanzeigen-scraper`) Actor

Collect Kleinanzeigen search listings with prices, images, locations, seller details, and listing attributes. Keep website search filters, set result limits, and export structured data through datasets, API workflows, schedules, and integrations.

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

## Pricing

from $0.90 / 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 Scraper

Collect public Kleinanzeigen search listings and save them as structured data. This Apify Actor helps you research prices, monitor products, analyze local supply, and track German classified ads.

Use a Kleinanzeigen search URL to collect listings with the same filters that you set on the website. The Actor saves results to an Apify dataset, ready for export or automation.

### Why use Kleinanzeigen Scraper?

- Collect Kleinanzeigen listings from one or more searches.
- Keep search filters such as category, location, price, seller type, shipping, and sort order.
- Get structured listing data instead of manual copy and paste.
- Set a clear maximum number of results for each search.
- Use monitor mode to save only listings that a task has not found before.
- Export results as JSON, CSV, Excel, XML, or RSS.
- Use the data in Apify integrations, API workflows, or your own analysis tools.

### How to scrape Kleinanzeigen listings

#### 1. Add a Kleinanzeigen search URL

On [kleinanzeigen.de](https://www.kleinanzeigen.de), create a search with the filters you need. Copy the complete search-result URL and add it to `searchUrls`.

Example URL:

```text
https://www.kleinanzeigen.de/s-notebooks/preis:100:200/thinkpad/k0c278+notebooks.processor_s:intel_core_i5
```

The Actor reads filters from the URL. This can include search keywords, category, price range, location, item attributes, seller type, shipping, and sorting.

#### 2. Set the result limit

Set `maxItems` to the maximum number of listings to save for each search.

#### 3. Run the Actor and export data

After the run, open the default dataset. Export the Kleinanzeigen listings in the format that you need.

### How to use monitor mode

Use an Actor task for monitor mode. Do not start monitor mode directly from the Actor page.

1. Create an Actor task.
2. Add one or more search URLs to `searchUrls`.
3. Set `monitorMode` to `true`.
4. Set `maxItems` to the maximum number of new listings that you want.
5. Save the task.
6. Run the task one time. This first run saves all listings that the Actor finds.
7. Run the same task again, or add a schedule. Each later run saves only new listings.

Each task keeps a separate list of seen listing IDs. For example, a Nike task does not share its list with an Adidas task.

### Input

| Input                | Description                                                                           |
| -------------------- | ------------------------------------------------------------------------------------- |
| `searchUrls`         | One or more complete Kleinanzeigen search-result URLs. This is the recommended input. |
| `keyword`            | Search text. Use it only when `searchUrls` is empty.                                  |
| `minPrice`           | Minimum listing price in EUR for a keyword search.                                    |
| `maxPrice`           | Maximum listing price in EUR for a keyword search.                                    |
| `maxItems`           | Maximum listings to save for each URL or keyword search. Default: `200`.              |
| `monitorMode`        | Save only listings not saved by the same task before. Default: `false`.               |
| `requestIntervalMs`  | Minimum delay between requests in milliseconds. Default: `1000`.                      |
| `maxRetries`         | Retries after a temporary, blocked, or rate-limited request. Default: `3`.            |
| `retryBaseDelayMs`   | Initial retry delay in milliseconds. Default: `1000`.                                 |
| `proxyConfiguration` | Apify proxy settings. German residential proxies are the default.                     |

### Example input

```json
{
    "searchUrls": ["https://www.kleinanzeigen.de/s-notebooks/thinkpad/k0c278"],
    "maxItems": 100,
    "monitorMode": true
}
```

### Output

The Actor saves one item for each Kleinanzeigen ad. Output fields can include:

- Listing ID, title, and URL
- Price, currency, and price type
- Category and location
- Seller type, seller ID, and store title
- Listing date
- Listing attributes
- Images

Use the dataset to compare prices, find listing trends, create reports, or load data into your own system.

### Use cases

- **Price monitoring:** Track prices for used cars, furniture, electronics, tools, or other products on Kleinanzeigen.
- **Product research:** Review available listings for a product, brand, or model.
- **Market research:** Analyze supply, location, seller types, and price ranges in German classified ads.
- **Listing tracking:** Collect new listings from saved Kleinanzeigen searches.
- **Data pipelines:** Export Kleinanzeigen data to a spreadsheet, database, dashboard, or API workflow.

### FAQ

#### Can I scrape Kleinanzeigen search results?

Yes. Add a Kleinanzeigen search URL to `searchUrls`. The Actor collects listings that match the URL filters and saves them to a dataset.

#### Can I scrape Kleinanzeigen by keyword, category, price, or location?

Yes. A Kleinanzeigen search URL can include keyword, category, price, location, and other filters. You can also use `keyword` for a simple search.

#### How many Kleinanzeigen listings can I collect?

Set `maxItems` for each search. The Actor stops when it saves this number of listings or when no more results are available.

#### How does monitor mode work?

Enable `monitorMode` in an Actor task. The Actor stores seen listing IDs in a persistent key-value store that is unique to the task. The first run returns all found listings. Later runs return only new listings. Normal runs do not read or change monitor state.

#### Does this Kleinanzeigen scraper include prices and images?

The output includes listing price data and image data when it is available for the listing.

#### Can I export Kleinanzeigen listing data?

Yes. Apify datasets support export to JSON, CSV, Excel, XML, and RSS.

### Responsible use

Use this Actor in line with Kleinanzeigen terms, applicable law, and Apify terms. Do not use collected data in a way that harms people, violates privacy, or sends unwanted messages.

# Actor input Schema

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

The maximum number of listings to save for each URL or keyword search.

## `monitorMode` (type: `boolean`):

Save only listings that this Actor task has not saved before. The first monitored run saves all found listings. Run this Actor through a task to keep separate state for each monitor.

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

One or more complete kleinanzeigen.de search-result URLs. Set up filters and copy it from the website.

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

The text to search for, for example “ThinkPad”.

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

The minimum listing price in euros.

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

The maximum listing price in euros.

## `requestIntervalMs` (type: `integer`):

The minimum delay between Kleinanzeigen API requests. Increase this value if requests are rate-limited.

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

The number of retries after a blocked, rate-limited, temporary server, or network response. Each retry uses a new proxy session.

## `retryBaseDelayMs` (type: `integer`):

The initial retry delay. Later retries use exponential backoff. A Retry-After response header can increase the delay.

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

Proxy settings used for Kleinanzeigen API requests.

## Actor input object example

```json
{
  "maxItems": 200,
  "monitorMode": false,
  "searchUrls": [
    "https://www.kleinanzeigen.de/s-notebooks/thinkpad/k0c278"
  ],
  "requestIntervalMs": 1000,
  "maxRetries": 3,
  "retryBaseDelayMs": 1000,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "DE"
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

Collected listings with the overview view selected by default.

# 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-notebooks/thinkpad/k0c278"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "DE"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("epicscrapers/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 = {
    "searchUrls": ["https://www.kleinanzeigen.de/s-notebooks/thinkpad/k0c278"],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "DE",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("epicscrapers/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 '{
  "searchUrls": [
    "https://www.kleinanzeigen.de/s-notebooks/thinkpad/k0c278"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "DE"
  }
}' |
apify call epicscrapers/kleinanzeigen-scraper --silent --output-dataset

```

## MCP server setup

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