# Kleinanzeigen Scraper (`ivanvs/kleinanzeigen-scraper`) Actor

Extract data from classified advertisements on Kleinanzeigen. Scrape details from jobs, housing, items wanted, items for sale, services, cars and trucks listed on Kleinanzeigen. Download listings data in JSON, XML, Excel, and other versatile

- **URL**: https://apify.com/ivanvs/kleinanzeigen-scraper.md
- **Developed by:** [Gen First](https://apify.com/ivanvs) (community)
- **Categories:** E-commerce, Lead generation, Real estate
- **Features:** Limited permissions
- **Stats:** 130 total users, 7 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 listings

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 Scraper

Scrape listings from [Kleinanzeigen.de](https://www.kleinanzeigen.de/) easily with Kleinanzeigen Scraper.

### About

Kleinanzeigen.de is Germany’s largest online classified ads marketplace, where individuals and businesses can buy and sell second-hand and new goods across a wide range of categories — from electronics and furniture to cars and real estate. It has become one of the most visited websites in the German internet market with tens of millions of listings and users every month.

The platform began on 9 September 2009 under the name eBay Kleinanzeigen, evolving out of eBay’s earlier classifieds brand Kijiji in Germany. From launch it rapidly gained popularity as a free and simple local marketplace for private sales.

A major turning point came in June 2021, when eBay sold its global classifieds division — including the German site eBay Kleinanzeigen and car-listing site mobile.de — to the Norwegian online-classifieds group Adevinta in a US $9.2 billion deal. As part of this transaction, eBay received US $2.5 billion in cash plus Adevinta shares valued around US $6.7 billion, making eBay the largest shareholder in Adevinta after the sale.

Following the acquisition, the business continued to grow and develop. In May 2023 the company rebranded from “eBay Kleinanzeigen” to simply “Kleinanzeigen” with a new name and identity, reflecting its independence of the eBay brand while remaining part of Adevinta’s global classifieds portfolio.

### Why should you use it?

It provides the latest ads data from Kleinanzeigen.de, without requiring login or session cookies.

### How to use

Kleinanzeigen.de Scraper has number of input parameters that can be used.

| Input parameter | Description                                    | Required | Default value                                        |
| --------------- | ---------------------------------------------- | -------- | ---------------------------------------------------- |
| urls            | Kleinanzeigen.de urls that needs to be scraped | `true`   | `{url: "https://www.kleinanzeigen.de/s-autos/c216"}` |
| maxRecords      | Maximum number of records to be scraped        | `false`  | 100                                                  |

Valid Kleinanzeigen.de links:

- https://www.kleinanzeigen.de/s-autos/c216
- https://www.kleinanzeigen.de/s-anzeige/mini-countryman-1-6-tuev-und-service-frisch/3279018066-216-9367

#### Examples

##### Input

Scrape 20 search results from given search URL:

```json
{
  "urls": ["https://www.kleinanzeigen.de/s-autos/c216"],
  "maxRecords": 20
}
```

##### Output

```json
{
  "id": "3311453099",
  "url": "https://www.kleinanzeigen.de/s-anzeige/apple-magic-keyboard-tastatur-mxqt2d-a-model-a2261-qwertz-black-gebraucht-rechnung-garantie-mobilfunkshop-sofort-verfuegbar-art-nr-4021/3311453099-173-3196",
  "title": "Apple Magic Keyboard Tastatur MXQT2D/A Model A2261 QWERTZ [Black] • Gebraucht • Rechnung • GARANTIE • Mobilfunkshop • sofort verfügbar • Art.-Nr:4021",
  "description": "\nBESCHREIBUNG\n\n\n\n\n\n\n**✨ Willkommen beim Pantech Store Hannover – seit 2010 Ihr Spezialist für neue & gebrauchten",
  "descriptionHtml": "\n    <h2 class=\"sectionheadline-underlined text-title-4\">\n                Beschreibung</h2>\n    <div class=\"l-container*",
  "images": ["https://img.kleinanzeigen.de/api/v1/prod-ads/images/a4/a40af767-c337-4d56-bda7-12dd424aad67?rule=$_59.AUTO"],
  "inputUrl": "https://www.kleinanzeigen.de/s-handy-telekom/seite:3/c173",
  "price": 119,
  "currency": "EUR",
  "shipping": "Nur Abholung",
  "attributes": {
    "Art": "Apple",
    "Farbe": "Schwarz",
    "Gerät & Zubehör": "Gerät & Zubehör",
    "Zustand": "Sehr Gut"
  },
  "location": "30451 Hannover - Linden-Limmer",
  "viewNumber": 0,
  "publishingDate": "01.02.2026",
  "seller": {
    "name": "PANTECH – Niedersachsens bestbewerteter Re-Commerce Store bei Google!",
    "contactName": "Pantech Store",
    "profileUrl": "/pro/Pantech-Store",
    "userId": "",
    "userType": "Gewerblicher Nutzer",
    "activeSince": "Aktiv seit 21.05.2014",
    "badges": ["TOP Zufriedenheit", "Besonders freundlich", "Besonders zuverlässig"],
    "adsOnline": 421
  },
  "legalInformation": "Impressum\nPantech Store\nGeschäftsinhaber: Hosan Mazul\nAnschrift: Limmerstr. 88-90, 30451 Hannover\n\nTelefon: +49 511 21908423\nE-Mail: info@pantec",
  "legalInformationHtml": "Impressum<br>Pantech Store<br>Gesch&#xe4;ftsinhaber: Hosan Mazul<br>Anschrift: Limmerstr. 88-90, 30451 Hannover<br><br>Telefon: +49 511 21908423<br>E-Mail: info@pantech-store.de<br><br>Steuerrechtliche Angaben<br><br>Zust&#xe4;ndige Finanzbeh&#xf6;rde:"
}
```

### Kleinanzeigen.de Scraper data output

The output from Kleinanzeigen.de Scraper is stored in the dataset. After the run is finished, you can download the dataset in various data formats (JSON, CSV, XML, RSS, HTML Table).

### ❓FAQ

#### Do I need proxies to scrape ads from Kleinanzeigen.de?

Proxy for this scraper is already preconfigured for optimal performance.

### Support

For more custom/simplify outputs or Bug report please contact the developer (support (at) getmediumdata.com) or report an issue.

# Changelog

This Actor's version history is a separate document: https://apify.com/ivanvs/kleinanzeigen-scraper/changelog.md

# Actor input Schema

## `maxRecords` (type: `integer`):

Maximum number of records to be scraped

## `urls` (type: `array`):

List of URLs from Kleinanzeigen.de (https://www.kleinanzeigen.de/) that needs to be scraped

## Actor input object example

```json
{
  "maxRecords": 10,
  "urls": [
    {
      "url": "https://www.kleinanzeigen.de/s-autos/c216"
    }
  ]
}
```

# 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 = {
    "maxRecords": 10,
    "urls": [
        {
            "url": "https://www.kleinanzeigen.de/s-autos/c216"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("ivanvs/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 = {
    "maxRecords": 10,
    "urls": [{ "url": "https://www.kleinanzeigen.de/s-autos/c216" }],
}

# Run the Actor and wait for it to finish
run = client.actor("ivanvs/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 '{
  "maxRecords": 10,
  "urls": [
    {
      "url": "https://www.kleinanzeigen.de/s-autos/c216"
    }
  ]
}' |
apify call ivanvs/kleinanzeigen-scraper --silent --output-dataset

```

## MCP server setup

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