# Kleinanzeigen Scraper — German Classifieds & Marketplace Data (`studio-amba/kleinanzeigen-scraper`) Actor

Scrape classified listings from Kleinanzeigen.de (formerly eBay Kleinanzeigen), Germany's largest marketplace. Search by keyword, category, price range, and location. Extract titles, prices, descriptions, images, and seller info. No login or cookies required.

- **URL**: https://apify.com/studio-amba/kleinanzeigen-scraper.md
- **Developed by:** [Studio Amba](https://apify.com/studio-amba) (community)
- **Categories:** Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-usage

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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

Scrape classified listings from Kleinanzeigen.de (formerly eBay Kleinanzeigen) — Germany's largest online classifieds marketplace with over 50 million active listings. Extract prices, descriptions, images, locations, and more. No login or cookies required.

### Why use this actor?

Kleinanzeigen.de dominates the German secondhand and classifieds market. Whether you're tracking prices, monitoring competitors, sourcing inventory, or analyzing local markets — this actor gives you structured data from millions of listings without manual browsing.

**Use cases:**
- **Price monitoring** — track market prices for specific products across Germany
- **Market research** — analyze listing volumes, pricing trends, and regional demand
- **Inventory sourcing** — find deals on electronics, furniture, vehicles, and more
- **Competitor analysis** — monitor what sellers are listing and at what prices
- **Academic research** — study secondhand market dynamics and consumer behavior

### Input

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | String | No | Search term (e.g. "laptop", "fahrrad", "iPhone 15") |
| `categoryId` | Integer | No | Category ID from the URL (e.g. 278 for Notebooks). Find it in the URL: `/s-notebooks/k0c278` means categoryId=278 |
| `locationId` | Integer | No | Location ID from the URL (e.g. 3331 for Berlin). Find it in the URL: `/k0l3331` means locationId=3331 |
| `minPrice` | Number | No | Minimum price filter in EUR |
| `maxPrice` | Number | No | Maximum price filter in EUR |
| `sortBy` | String | No | Sort order: "newest", "cheapest", or "most-expensive" |
| `maxResults` | Integer | No | Maximum listings to return (default: 100, max: 10,000) |
| `proxyConfiguration` | Object | No | Proxy settings. Residential proxies recommended |

### Output

Each result contains:

| Field | Type | Example |
|-------|------|---------|
| `itemId` | String | `"2945678901"` |
| `title` | String | `"MacBook Pro 14 M3 Pro - Top Zustand"` |
| `description` | String | Listing description snippet |
| `price` | Number | `1499.00` |
| `currency` | String | `"EUR"` |
| `priceType` | String | `"FIXED"`, `"NEGOTIABLE"`, `"FREE"` |
| `location` | String | `"10115 Berlin Mitte"` |
| `postcode` | String | `"10115"` |
| `date` | String | `"Heute, 14:30"` |
| `tags` | Array | `["Versand möglich"]` |
| `imageUrl` | String | Full-resolution image URL |
| `imageCount` | Number | `5` |
| `isTopAd` | Boolean | `false` |
| `url` | String | Full listing URL on kleinanzeigen.de |
| `scrapedAt` | String | ISO timestamp |

### Example output

```json
{
    "itemId": "2945678901",
    "title": "MacBook Pro 14 M3 Pro - Top Zustand",
    "description": "Verkaufe mein MacBook Pro 14 Zoll mit M3 Pro Chip...",
    "price": 1499.00,
    "currency": "EUR",
    "priceType": "NEGOTIABLE",
    "location": "10115 Berlin Mitte",
    "postcode": "10115",
    "date": "Heute, 14:30",
    "tags": ["Versand möglich"],
    "imageUrl": "https://img.kleinanzeigen.de/api/v1/prod-ads/images/ab/ab123456-1234.jpeg",
    "imageCount": 5,
    "isTopAd": false,
    "url": "https://www.kleinanzeigen.de/s-anzeige/macbook-pro-14-m3-pro/2945678901-278-3331",
    "scrapedAt": "2026-04-08T12:00:00.000Z"
}
````

### How to use the API

Call the actor via the Apify API:

```bash
curl "https://api.apify.com/v2/acts/studio-amba~kleinanzeigen-scraper/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -X POST \
  -d '{"query": "fahrrad", "maxResults": 50}' \
  -H "Content-Type: application/json"
```

### Cost estimate

This actor uses approximately **0.01 compute units per 100 results**. It scrapes HTML pages with CheerioCrawler — no browser overhead.

### Tips

- Use `categoryId` and `locationId` together to get highly targeted results
- Find category and location IDs from the Kleinanzeigen.de URL after performing a manual search
- Residential proxies are recommended due to Akamai bot protection
- Start with a small `maxResults` to test before running large scrapes

### Limitations

- Maximum ~10,000 results per query (Kleinanzeigen pagination limit)
- Listing descriptions are snippets — full text requires visiting individual listing pages
- Prices marked "VB" (Verhandlungsbasis) are returned as `priceType: "NEGOTIABLE"`
- Respect the website's terms of service and use responsibly

# Actor input Schema

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

Search term (e.g. 'laptop', 'fahrrad', 'iPhone 15'). Leave empty to browse all listings.

## `categoryId` (type: `integer`):

Kleinanzeigen category ID to filter results (e.g. 278 for Notebooks, 161 for Auto). Find IDs from the URL: /s-notebooks/k0c278 means categoryId=278.

## `locationId` (type: `integer`):

Kleinanzeigen location ID to filter by area (e.g. 3331 for Berlin, 9228 for Munich). Find IDs from the URL: /k0l3331 means locationId=3331.

## `minPrice` (type: `number`):

Minimum price filter in euros.

## `maxPrice` (type: `number`):

Maximum price filter in euros.

## `sortBy` (type: `string`):

How to sort results.

## `maxResults` (type: `integer`):

Maximum number of listings to scrape. Each page has ~25 results.

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

Proxy settings. Residential proxies recommended for Kleinanzeigen.de (Akamai bot protection).

## Actor input object example

```json
{
  "query": "laptop",
  "sortBy": "newest",
  "maxResults": 100
}
```

# 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": "laptop"
};

// Run the Actor and wait for it to finish
const run = await client.actor("studio-amba/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": "laptop" }

# Run the Actor and wait for it to finish
run = client.actor("studio-amba/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": "laptop"
}' |
apify call studio-amba/kleinanzeigen-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Kleinanzeigen Scraper — German Classifieds & Marketplace Data",
        "description": "Scrape classified listings from Kleinanzeigen.de (formerly eBay Kleinanzeigen), Germany's largest marketplace. Search by keyword, category, price range, and location. Extract titles, prices, descriptions, images, and seller info. No login or cookies required.",
        "version": "0.1",
        "x-build-id": "XFXktZ60BY8XbHQsX"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/studio-amba~kleinanzeigen-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-studio-amba-kleinanzeigen-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/studio-amba~kleinanzeigen-scraper/runs": {
            "post": {
                "operationId": "runs-sync-studio-amba-kleinanzeigen-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/studio-amba~kleinanzeigen-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-studio-amba-kleinanzeigen-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "query": {
                        "title": "Search Query",
                        "type": "string",
                        "description": "Search term (e.g. 'laptop', 'fahrrad', 'iPhone 15'). Leave empty to browse all listings."
                    },
                    "categoryId": {
                        "title": "Category ID",
                        "type": "integer",
                        "description": "Kleinanzeigen category ID to filter results (e.g. 278 for Notebooks, 161 for Auto). Find IDs from the URL: /s-notebooks/k0c278 means categoryId=278."
                    },
                    "locationId": {
                        "title": "Location ID",
                        "type": "integer",
                        "description": "Kleinanzeigen location ID to filter by area (e.g. 3331 for Berlin, 9228 for Munich). Find IDs from the URL: /k0l3331 means locationId=3331."
                    },
                    "minPrice": {
                        "title": "Minimum Price (EUR)",
                        "minimum": 0,
                        "type": "number",
                        "description": "Minimum price filter in euros."
                    },
                    "maxPrice": {
                        "title": "Maximum Price (EUR)",
                        "minimum": 0,
                        "type": "number",
                        "description": "Maximum price filter in euros."
                    },
                    "sortBy": {
                        "title": "Sort By",
                        "enum": [
                            "newest",
                            "cheapest",
                            "most-expensive"
                        ],
                        "type": "string",
                        "description": "How to sort results.",
                        "default": "newest"
                    },
                    "maxResults": {
                        "title": "Max Results",
                        "minimum": 1,
                        "maximum": 10000,
                        "type": "integer",
                        "description": "Maximum number of listings to scrape. Each page has ~25 results.",
                        "default": 100
                    },
                    "proxyConfiguration": {
                        "title": "Proxy Configuration",
                        "type": "object",
                        "description": "Proxy settings. Residential proxies recommended for Kleinanzeigen.de (Akamai bot protection)."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
