# Kleinanzeigen Scraper PREMIUM (`testaccedu/kleinanzeigen-scraper-premium`) Actor

Hol dir strukturierte Daten von kleinanzeigen.de: Erfasst alle Details inkl. Uhrzeit, Verkäufer, Preisarten, Versand, Status (aktiv, reserviert, gelöscht), Bilder und mehr. Ideal für Marktanalyse, Automatisierung & Lead-Generierung – mit Premium-Features!

- **URL**: https://apify.com/testaccedu/kleinanzeigen-scraper-premium.md
- **Developed by:** [Tobias](https://apify.com/testaccedu) (community)
- **Categories:** E-commerce, Other, Automation
- **Stats:** 16 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1,490.00 / 1,000 kleinanzeigen-scrape (bis 3 seiten)s

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-PREMIUM

Automatisiere die Extraktion von Inseraten auf [Kleinanzeigen.de](https://www.kleinanzeigen.de/):\
Ideal für Preisvergleiche, Marktbeobachtung, Analysen oder eigene Recherchen – ohne mühsames Copy\&Paste!

***

### 🚀 Features

- **Schnelle, strukturierte Datenerfassung**\
  Preise, Titel, Beschreibung, Zeitstempel, Standort, Anbieterinfos, Bilder, Status und vieles mehr.
- **Paketauswahl:**\
  Wähle „small“, „medium“ oder „large“ – für 1 bis 20 Seiten je nach Bedarf. --> Achtung bei größer 10 extrem lange Runs!!
- **Parallelisierung:**\
  Bis zu 4 Anzeigen werden gleichzeitig verarbeitet – beschleunigt den Crawl.
- **Fehlertolerant:**\
  Automatische Wiederholungen bei Timeouts oder Fehlern.
- **Proxy-Support:**\
  Optional Nutzung von Apify-Proxies für stabile, blockierungsarme Crawls.
- **Datenstruktur:**\
  Alle Daten als übersichtliche JSON-Objekte, direkt zum Weiterverarbeiten.

***

### ⚙️ Bedienung & Parameter

Du steuerst den Scraper direkt im Apify-UI:

| Feld         | Bedeutung                                                        | Optionen                                         |
|--------------|------------------------------------------------------------------|--------------------------------------------------|
| `package`    | Paketgröße (max. Seiten)                                        | `small` (1–3), `medium` (4–8), `large` (9–20)  |
| `pages`      | Wieviele Ergebnisseiten sollen gecrawlt werden?                  | Ganzzahl (max. je nach Paket)                    |
| `parallel`   | Wieviele Anzeigen werden parallel verarbeitet?                   | 1 bis 4 empfohlen                                |
| `search_url` | Start-URL für die Suche (Kategorie, Filter, Suchbegriff möglich) | Komplette URL von kleinanzeigen.de               |

> **Achtung:** Die Seitenzahl muss zum gewählten Paket passen, sonst gibt’s eine Fehlermeldung.

***

### 📝 Beispiel-Input

```
{
  "package": "medium",
  "pages": 7,
  "parallel": 3,
  "search_url": "https://www.kleinanzeigen.de/s-gebrauchtwagen/bmw/k0"
}
```

***

### 📦 Output-Format

Jedes Inserat erscheint als JSON-Objekt, zum Beispiel:

```
{
  "id": "1234567890",
  "pos": 1,
  "title": "BMW 320d Touring",
  "status": "aktiv",
  "url": "...",
  "listed_time": "17:42",
  "anzeige_date": "04.06.2024",
  "anzeige_date_iso": "2024-06-04",
  "date": "2024-06-04",
  "price": 15900,
  "old_price": 16900,
  "price_type": "VB",
  "description": "Top gepflegt, scheckheft...",
  "location": "Düsseldorf",
  "details": ["..."],
  "features": ["..."],
  "meta": "...",
  "views": 212,
  "shipping": null,
  "financing": false,
  "breadcrumbs": ["..."],
  "seller": "Autohaus Beispiel",
  "seller_id": "998877",
  "seller_slug": "autohaus-beispiel",
  "seller_type": "Gewerblicher Anbieter",
  "seller_badges": ["..."],
  "active_since": "2021",
  "images": ["..."]
}
```

***

### Hinweise & Tipps

- Nutzung auf eigene Verantwortung und im Rahmen der AGB von [Kleinanzeigen.de](https://www.kleinanzeigen.de).
- Die Performance hängt ab von **Paketgröße**, **Parallelisierung**, **Uhrzeit** und **Proxy-Nutzung**.
- Bei sehr vielen Anfragen empfiehlt sich ein **Proxy** – sonst kann es zu **Captchas oder Blockaden** kommen.
- Nicht jede Anzeige ist garantiert erreichbar *(Löschungen, Zeitüberschreitungen etc. sind möglich)*.
- Fehler werden im Hintergrund **erneut versucht**, aber ein kompletter Crawl kann nie zu **100 % garantiert** werden.
- Die **Seitenzahl und Parallelität** werden streng kontrolliert – **kein Missbrauch möglich**.

***

### 🤝 Support & Weiterentwicklung

Wünsche, Ideen, Bugs oder Feedback?\
Melde dich gerne direkt über das Apify-Forum, GitHub oder schreibe mich an!

***

**Kleinanzeigen-Scraper-PREMIUM**\
– Deine effiziente Lösung für strukturierte, automatisierte Datensammlungen auf Kleinanzeigen.de!

# Actor input Schema

## `package` (type: `string`):

Wähle ein Paket: Small (1–3 Seiten), Medium (4–8 Seiten) oder Large (9–20 Seiten). Je nach Auswahl bestimmt sich die maximal mögliche Seitenanzahl für deinen Crawl.

## `search_url` (type: `string`):

Bitte die komplette URL aus dem Browser kopieren (z. B. https://www.kleinanzeigen.de/s-preis:10000:/audi-a6/k0)

## `pages` (type: `integer`):

Wie viele Ergebnisseiten sollen gecrapt werden? (Beachte deine Paketauswahl: Small (1–3 Seiten), Medium (4–8 Seiten) oder Large (9–20 Seiten)!

## `parallel` (type: `integer`):

Wie viele Tabs/Browser gleichzeitig (2 empfohlen, max 4). Je größer dieser Wert destor größer die Gefahr, dass Kleinanzeigen den Zugriff sperrt!

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

Apify-Proxy oder eigene Proxies auswählen

## Actor input object example

```json
{
  "package": "small",
  "search_url": "https://www.kleinanzeigen.de/s-preis:10000:/audi-a6/k0",
  "pages": 1,
  "parallel": 3
}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("testaccedu/kleinanzeigen-scraper-premium").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 = {}

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,testaccedu/kleinanzeigen-scraper-premium"
        }
    }
}
```

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/jscg3x7r3lvTwqvo8/builds/H6VUtsYa3nyZTGCAq/openapi.json
