# Kleinanzeigen Scraper - Listings, Prices & Details (Germany) (`randy-tools/kleinanzeigen-scraper`) Actor

Scrape Kleinanzeigen.de listings by keyword, category, location + radius, price, seller type, condition or search URL. Get price, location, date, shipping and images; optionally full description, attributes, all photos and seller type. Fast HTTP-only, pay per result.

- **URL**: https://apify.com/randy-tools/kleinanzeigen-scraper.md
- **Developed by:** [AICORP Tools](https://apify.com/randy-tools) (community)
- **Categories:** E-commerce
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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 — Listings, Prices & Details (Germany)

Extract **listings from Kleinanzeigen.de**, Germany's largest classifieds site (formerly eBay Kleinanzeigen). Search by keyword with the site's own filters: category, location and radius, price range, private or commercial seller, offers or wanted ads, condition and "Direkt kaufen". You can also paste any Kleinanzeigen search URL. Each listing comes with its price, price type (fixed, VB, free), postal code, location, posting date, seller type, shipping option and images. Turn on **listing details** to also get the full description, all attributes (mileage, first registration, size, condition...), feature tags, every photo, coordinates, shipping cost and the seller's display name and type.

Built for **reliability**: it reads the structured data behind Kleinanzeigen's own result pages over plain HTTP (no browser). Requests are paced, retried and spread across fresh sessions, so scheduled runs keep succeeding.

### What you can do with it

- **Price research:** track asking prices for used phones, bikes, cars or furniture by region
- **Deal alerts:** run every hour with *Newest first* and `postedSince` to catch new listings the moment they appear
- **Dealer and market mapping:** count commercial versus private supply per category and city
- **Used car data:** mileage, first registration, fuel, gearbox, power and equipment from every car listing
- **Real estate and rentals:** rents, sizes and locations from the Immobilien categories
- **Resale and sourcing:** find underpriced items within a radius of your warehouse

### Features

- 🔎 **Keyword search** with all main Kleinanzeigen filters: 160 categories and subcategories, location (city, district or postal code) with radius, min and max price, seller type, offers or wanted ads, condition, "Direkt kaufen" only
- 🔗 **Any search URL:** set filters on kleinanzeigen.de (including category-specific ones like car brand or bike type), copy the URL and paste it
- ↕️ **Sort orders:** newest, lowest price, highest price, nearest
- 📄 **Automatic pagination** up to the site's 50-page limit per search
- 🧾 **Listing details (optional):** full description, attribute table, machine-readable attribute codes (e.g. `km: 189637`), feature tags, all images, posting date, coordinates, shipping cost, seller type, seller display name, member-since date and number of active listings
- 📌 **Single listings** by URL
- 🕒 **Cheap monitoring:** with *Newest first* plus `postedSince`, a run stops as soon as it reaches older listings
- 🚫 **Top ads** can be excluded to get organic results only
- 🧹 Listings are de-duplicated across pages and searches

### Input example

```json
{
  "searchQueries": ["iphone 13", "ipad"],
  "category": "161",
  "location": "Berlin",
  "radiusKm": "20",
  "minPrice": 100,
  "maxPrice": 600,
  "sellerType": "private",
  "sort": "newest",
  "maxItemsPerSearch": 200,
  "includeDetails": true,
  "startUrls": ["https://www.kleinanzeigen.de/s-autos/bmw/c216+autos.marke_s:bmw"]
}
```

### Output

One record per listing. Without details:

```json
{
  "id": "3525647376",
  "url": "https://www.kleinanzeigen.de/s-anzeige/garmin-edge-830/3525647376-217-7702",
  "title": "Garmin Edge 830",
  "descriptionSnippet": "Garmin Edge 830 – sehr guter Zustand ...",
  "price": 215.0,
  "priceType": "NEGOTIABLE",
  "priceText": "215 € VB",
  "currency": "EUR",
  "postalCode": "97080",
  "location": "Würzburg",
  "distanceKm": null,
  "postedAt": "2026-09-28T13:59+02:00",
  "sellerType": "PRIVATE",
  "adType": "OFFERED",
  "shippingAvailable": true,
  "buyNowEnabled": true,
  "tags": [],
  "isTopAd": false,
  "imageUrl": "https://img.kleinanzeigen.de/api/v1/prod-ads/images/9b/9bbe5921-...?rule=$_59.AUTO",
  "searchQuery": "fahrrad",
  "page": 1
}
```

With `includeDetails` the record also has:

```json
{
  "description": "Garmin Edge 830 – sehr guter Zustand\n\nGarmin Edge 830 in sehr gutem Zustand. ...",
  "postedDate": "2026-09-28",
  "locality": "97080 Bayern - Würzburg",
  "city": "Würzburg",
  "state": "Bayern",
  "latitude": 49.8158268,
  "longitude": 9.9102608,
  "categoryId": "217",
  "categoryName": "Fahrraeder",
  "details": { "Art": "Zubehör", "Typ": "Andere Fahrräder", "Zustand": "Sehr Gut" },
  "features": [],
  "attributeCodes": { "versand": "t", "condition": "like_new", "art": "zubehoer", "type": "sonstiges" },
  "shippingCost": 0.99,
  "imageUrls": ["...5 images..."],
  "imageCount": 5,
  "sellerType": "PRIVATE",
  "sellerName": "Max Mustermann",
  "sellerActiveSince": "2016-11-13",
  "sellerBadges": ["TOP Zufriedenheit", "Sehr zuverlässig"],
  "sellerActiveListings": 13,
  "detailsScraped": true
}
```

Car listings add fields such as `Marke`, `Modell`, `Kilometerstand`, `Erstzulassung`, `Kraftstoffart`, `Leistung` and `Getriebe` under `details`, plus equipment in `features`.

Export results as JSON, CSV, Excel or HTML, or pull them via the Apify API, webhooks, Make, Zapier, n8n or MCP.

### Pricing

Pay only for what you get: a small fee per run start and a fee **per listing**. Listings with details cost a little more, because each one needs its own page request. Proxy costs are included.

### FAQ

**How many listings can I get per search?** Kleinanzeigen shows at most 50 pages (about 1,250 listings) for any search. To collect more, split the search by category, location or price range; each search gets its own 50 pages.

**Why do some listings have an old date at the top?** Those are paid "TOP" ads, which Kleinanzeigen pins above the results. Set `includeTopAds` to false to skip them.

**Do I get phone numbers or email addresses?** No. The Actor collects only the public listing and the seller's public display name and type (private or commercial). It never reads contact details.

**Is this legal?** The Actor collects only publicly visible listings, without logins. You are responsible for handling the data in line with applicable laws (such as GDPR) and the website's terms.

**Something broke?** Open an issue on the Issues tab. We monitor the Actor daily and usually respond within 24 hours.

# Actor input Schema

## `searchQueries` (type: `array`):

Keywords to search for, e.g. "iphone 13", "e-bike", "sofa". Each term is a separate search that uses the filters below.

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

Search or category result URLs copied from kleinanzeigen.de (any filters you set on the site are kept), and/or single listing URLs (/s-anzeige/...). The filters below do not apply to search URLs.

## `maxItemsPerSearch` (type: `integer`):

Kleinanzeigen shows at most 50 pages (about 1,250 listings) per search. Split big searches by category, location or price range to get more.

## `includeDetails` (type: `boolean`):

Open every listing for the full description, all attributes (e.g. mileage, first registration, size), features, all images, posting date, coordinates, shipping cost and the seller's display name, type and member-since date. One extra request per listing.

## `includeTopAds` (type: `boolean`):

Paid 'TOP' listings are pinned above the results on every page and are often older. Turn off to get organic results only.

## `postedSince` (type: `string`):

YYYY-MM-DD. With 'Newest first' the run stops as soon as it reaches older listings, which keeps daily monitoring cheap.

## `category` (type: `string`):

Limit the search to a category or subcategory.

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

City, district or postal code, e.g. "Berlin", "München", "80331". Leave empty for all of Germany.

## `radiusKm` (type: `string`):

Only used together with a location.

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

Lowest asking price in euros.

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

Highest asking price in euros.

## `sellerType` (type: `string`):

Private sellers or commercial dealers.

## `adType` (type: `string`):

Offers (Angebote) or wanted ads (Gesuche).

## `condition` (type: `string`):

Item condition. Works in categories that have a condition field (most goods categories).

## `buyNowOnly` (type: `boolean`):

Only listings that can be bought directly with payment and shipping handled by Kleinanzeigen.

## `sort` (type: `string`):

Order of the results. 'Nearest first' needs a location.

## `maxConcurrency` (type: `integer`):

How many listing pages are fetched at once when details are on.

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

Datacenter proxy (the default) is fast and included in the price. A residential proxy is pinned to Germany.

## Actor input object example

```json
{
  "searchQueries": [
    "fahrrad"
  ],
  "maxItemsPerSearch": 100,
  "includeDetails": false,
  "includeTopAds": true,
  "category": "0",
  "radiusKm": "0",
  "sellerType": "all",
  "adType": "all",
  "condition": "any",
  "buyNowOnly": false,
  "sort": "newest",
  "maxConcurrency": 5,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (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 = {
    "searchQueries": [
        "fahrrad"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("randy-tools/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 = {
    "searchQueries": ["fahrrad"],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("randy-tools/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 '{
  "searchQueries": [
    "fahrrad"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call randy-tools/kleinanzeigen-scraper --silent --output-dataset

```

## MCP server setup

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