# Kleinanzeigen Scraper (`ayen-data/kleinanzeigen-scraper`) Actor

Scrapes listings from Kleinanzeigen.de, extracting title, price, seller info, contact details, and company data.

- **URL**: https://apify.com/ayen-data/kleinanzeigen-scraper.md
- **Developed by:** [Anyx Solutions](https://apify.com/ayen-data) (community)
- **Categories:** Automation, Lead generation, E-commerce
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.88 / 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/platform/actors/running/actors-in-store#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

![banner](https://i.ibb.co/JjyCVJMf/kleinanzeigen.png)

## Kleinanzeigen Scraper

**Collect classified-ad listings from Kleinanzeigen.de at scale — by search query or direct URL.**

The Kleinanzeigen Scraper extracts structured listing data from [Kleinanzeigen.de](https://www.kleinanzeigen.de), Germany's largest classifieds marketplace: titles, prices, item attributes, locations, images, seller details, and company information. It's built for market researchers, price analysts, resellers, and anyone tracking the German classifieds market. A built-in monitoring mode returns only new and updated ads across scheduled runs.

### ⚡ Quick start

Search by query:

```json
{
  "query": "nike",
  "maxItems": 5
}
```

Or start from a specific Kleinanzeigen URL:

```json
{
  "startUrls": [{ "url": "https://www.kleinanzeigen.de/s-bau-handwerk-produktion/c111" }],
  "maxItems": 5
}
```

### 🧩 Input

| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| `query` | string | one of `query`/`startUrls` | — | Search term, e.g. an item name like `nike`. |
| `location` | string | no | — | Kleinanzeigen location code to restrict results by area (e.g. `3386` for Neukölln). Leave empty for nationwide. |
| `startUrls` | array | one of `query`/`startUrls` | — | Kleinanzeigen URLs: home, category/search, or single-listing pages. |
| `maxItems` | integer | no | `5` | Maximum listings per start URL. |
| `monitoringMode` | boolean | no | `false` | Return only new or changed ads across runs. Ideal for scheduled runs. |
| `monitoringFields` | array | no | — | Fields watched for changes (e.g. `price`, `title`, `date`, `address`). Empty returns only ads that were never seen before. |
| `includeViewsCount` | boolean | no | `true` | Fetch the view count of every ad. Adds one request per listing. |
| `proxy` | object | no | `{ "useApifyProxy": false }` | Apify proxy settings. |

#### 🔄 Monitoring mode

- **First run** saves all scraped ads to persistent storage and returns all results.
- **Subsequent runs** compare current results with the previous run and return only ads that are new or whose `monitoringFields` changed. Every returned record carries a `monitoringStatus` of `NEW` or `UPDATED`.

```json
{
  "startUrls": [{ "url": "https://www.kleinanzeigen.de/s-auto-rad-boot/c210" }],
  "maxItems": 10,
  "monitoringMode": true,
  "monitoringFields": ["price", "date"]
}
```

### 📤 Output

Each scraped listing is pushed to the dataset as one record.

#### Fields

| Field | Type | Description |
|---|---|---|
| `url` | string | Public listing URL. |
| `id` | string | null | Listing ID. |
| `title` | string | null | Listing title. |
| `price` | string | null | Listing price. |
| `priceCurrency` | string | null | Currency code. |
| `art` | string | null | Item type/kind. |
| `brand` | string | null | Brand. |
| `color` | string | null | Color. |
| `size` | string | null | Size. |
| `condition` | string | null | Item or vehicle condition. |
| `details` | object | null | All attribute rows of the listing, e.g. `{ "Marke": "BMW", "Kilometerstand": "91.000 km" }`. |
| `shippingPrice` | string | null | Shipping price. |
| `kauferschutzPrice` | string | null | Buyer-protection fee. |
| `address` | string | null | Listing location. |
| `date` | string | null | Posting date. |
| `viewsCount` | number | null | Number of views. |
| `primaryImageURL` | string | null | First image URL. |
| `imageURLs` | string\[] | null | All image URLs. |
| `categoryURLs` | string\[] | null | Breadcrumb category URLs. |
| `descriptionText` | string | null | Listing description. |
| `sellerName` | string | null | Seller display name. |
| `sellerURL` | string | null | Seller profile URL. |
| `sellerPhone` | string | null | Seller phone number. |
| `sellerEmailFromDescription` | string | null | Email parsed from the description. |
| `sellerPhoneFromDescription` | string | null | Phone parsed from the description. |
| `companyInfo` | object | null | Company details for professional sellers. |
| `monitoringStatus` | string | null | `NEW` or `UPDATED` in monitoring mode, `null` otherwise. |

<details><summary>Example output</summary>

```json
{
  "url": "https://www.kleinanzeigen.de/s-anzeige/trek-checkpoint-sl5-carbon/3472567810-217-9018",
  "id": "3472567810",
  "title": "Trek checkpoint SL5 Carbon",
  "price": "2100.00",
  "priceCurrency": "EUR",
  "art": "Herren",
  "brand": null,
  "color": null,
  "size": null,
  "condition": "Sehr Gut",
  "details": {
    "Art": "Herren",
    "Typ": "Rennräder",
    "Zustand": "Sehr Gut"
  },
  "shippingPrice": "1.99",
  "kauferschutzPrice": null,
  "address": "21129 Hamburg - Hamburg Finkenwerder",
  "date": "31.07.2026",
  "viewsCount": 143,
  "primaryImageURL": "https://img.kleinanzeigen.de/api/v1/prod-ads/images/13/133579ca-b3f5-4508-a89d-897f2faf243d?rule=$_59.AUTO",
  "imageURLs": [
    "https://img.kleinanzeigen.de/api/v1/prod-ads/images/13/133579ca-b3f5-4508-a89d-897f2faf243d?rule=$_59.AUTO"
  ],
  "categoryURLs": [
    "https://www.kleinanzeigen.de/",
    "https://www.kleinanzeigen.de/s-fahrraeder/c217"
  ],
  "descriptionText": "Hallo,\n\nich verkaufe mein sehr gepflegtes Trek Checkpoint SL 5 Gravel bike mit Carbonrahmen.",
  "sellerName": "Luca Beiermeister",
  "sellerURL": "https://www.kleinanzeigen.de/s-bestandsliste.html?userId=74313409",
  "sellerPhone": null,
  "sellerEmailFromDescription": null,
  "sellerPhoneFromDescription": null,
  "companyInfo": {
    "companyName": "Autoteile AF",
    "companyAddress": "Kreyenfeldstr. 60-70 44894 Bochum - Bochum-Ost",
    "companyUrl": "https://autoteile-af.de/",
    "companyPhone": "023492725490",
    "openingHours": "Mo - Fr:09:00 - 17:30 | Sa:09:00 - 12:30",
    "companyDescription": "Autoteile AF hat sich auf deutsche Automarken spezialisiert.",
    "companyEmails": []
  },
  "monitoringStatus": "NEW"
}
```

</details>

### 💡 Use cases

- **Market research** — understand trends and demand across categories and regions.
- **Price comparison** — compare prices of similar items across areas.
- **Reseller sourcing** — find and track deals worth flipping.
- **Competitor analysis** — monitor professional sellers' listings and pricing.
- **Price alerts** — combine with monitoring mode for scheduled change tracking.

### ❓ FAQ

- **What is Kleinanzeigen?** Germany's largest online classifieds marketplace, with millions of ads across many categories.
- **What can be scraped?** Any public Kleinanzeigen listing, plus category/search and home pages.
- **How does monitoring work?** On the first run all ads are saved; later runs return only ads that are new or that changed in the fields you choose to watch.
- **What if Kleinanzeigen changes its site?** We maintain the scraper and update it when major site changes affect functionality.

### 🔗 More scrapers by Anyx

- [Google Ads Scraper](https://apify.com/anyxsolutions/google-ads-scraper)
- [Bing Ads Scraper](https://apify.com/anyxsolutions/bing-ads-scraper)
- [TikTok Ads Scraper](https://apify.com/anyxsolutions/tiktok-ads-scraper)

### 🤝 Anyx Solutions

We build custom scrapers and data-extraction pipelines.

- Email: tantosthor@gmail.com

### Notice

We are not affilaite with Kleinanzeigen or any of its partners. This scraper is developed by Anyx Solutions for educational and research purposes only. Please use it responsibly and in accordance with Kleinanzeigen's terms of service.

# Actor input Schema

## `query` (type: `string`):

Search term to look up on Kleinanzeigen, such as a product name or keyword. Used when no start URLs are provided.

## `location` (type: `string`):

Kleinanzeigen location code used to restrict search results to a specific area (for example, '3386' for Neukölln). Leave empty to search nationwide.

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

Kleinanzeigen URLs to scrape. Supports home, category, and listing (product) pages.

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

Maximum number of listings to extract per start URL or search query.

## `monitoringMode` (type: `boolean`):

Return only ads that are new or changed compared to the previous run. Ideal for daily scheduled runs.

## `monitoringFields` (type: `array`):

Fields to watch for changes when monitoring mode is enabled (for example, price, title, or address). Leave empty to report only ads that were never seen before.

## `includeViewsCount` (type: `boolean`):

Fetch the number of views for every ad. Costs one extra request per ad and, like any visit to the ad page, counts towards the ad's view counter.

## `proxy` (type: `object`):

Proxy settings used for the run. Use an Apify proxy or provide a custom one.

## Actor input object example

```json
{
  "query": "nike",
  "startUrls": [
    {
      "url": "https://www.kleinanzeigen.de/s-bau-handwerk-produktion/c111"
    }
  ],
  "maxItems": 5,
  "monitoringMode": false,
  "includeViewsCount": true,
  "proxy": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (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 = {
    "query": "nike",
    "startUrls": [
        {
            "url": "https://www.kleinanzeigen.de/s-bau-handwerk-produktion/c111"
        }
    ],
    "proxy": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("ayen-data/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 = {
    "query": "nike",
    "startUrls": [{ "url": "https://www.kleinanzeigen.de/s-bau-handwerk-produktion/c111" }],
    "proxy": { "useApifyProxy": False },
}

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

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

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

```

## CLI example

```bash
echo '{
  "query": "nike",
  "startUrls": [
    {
      "url": "https://www.kleinanzeigen.de/s-bau-handwerk-produktion/c111"
    }
  ],
  "proxy": {
    "useApifyProxy": false
  }
}' |
apify call ayen-data/kleinanzeigen-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=ayen-data/kleinanzeigen-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/aCn8ZR4Rycdh5pZb2/builds/i60iMQU8FqrJudxXN/openapi.json
