# Kleinanzeigen Scraper - eBay Kleinanzeigen Listings & Prices (`santis_hermes/kleinanzeigen-scraper`) Actor

Scrape kleinanzeigen.de (formerly eBay Kleinanzeigen) German classifieds by URL or search term: price, negotiable flag, location, seller type, shipping, description. Splits big searches by price to pass the 1,250-result cap.

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

## Pricing

from $1.50 / 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.

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: eBay Kleinanzeigen listings, prices and sellers

Scrape **kleinanzeigen.de (formerly eBay Kleinanzeigen)**, Germany's biggest classifieds site, by search URL, category URL or search term (Fahrrad, iPhone, Wohnung...). Each listing comes back as clean data: title, price, negotiable (VB) flag, location, posted time, private or commercial seller, shipping, description, attributes and photos. Export to CSV, JSON or Excel, or call it from the API.

Use it for **German price monitoring, resale and arbitrage research, new-listing alerts and market data**. Kleinanzeigen stops serving results after page 50 (about 1,250 listings); this actor splits big searches by price band so you get all of them. Works with AI agents through the Apify MCP server.

### Why this one

Users of other Kleinanzeigen scrapers report getting 25 results out of 1,100. This actor is built to return what you asked for:

- **Walks every result page**, and **Kleinanzeigen stops serving results after page 50 (about 1,250 listings)**: when your search is bigger than that, the actor automatically cuts it into price bands so each band fits, and keeps going. (Set Max listings above 1,250 to use this.)
- **Private vs commercial sellers** as a filter (done by Kleinanzeigen itself), plus min/max price. Rows also carry a shop-badge flag.
- **Only-new mode** for scheduled runs and alerts: listings you already got are skipped and not charged.
- **Posted-in-the-last-N-hours filter**, newest first, stops early when it passes your cut-off.
- **Promoted ads are skipped by default** (they sit out of order at the top of each page).
- **No silent empty runs**: if the site blocks the run before any data arrives it FAILS with the reason and charges nothing.
- **Hard cap**: Max listings is exact; you are never billed beyond it.

### Input (main fields)

Search URLs (copy from your browser with city/category chosen) or search terms; min/max price; seller type; posted within N hours; fetch detail pages; only listings not seen before; split big searches by price; max listings; proxy or custom proxy URL (a German residential proxy helps for large runs).

### Output (one row per listing)

`id, url, title, snippet, price, priceText, negotiable, free, currency, location, postedText, postedAt, directBuy, shippingPossible, isShop, shopName, sellerType (only when you used the seller filter), promoted, thumbnail, imageCount, detailScraped, scrapedAt`. With detail pages: `description, attributes{...}, listedOn, locality, priceDetail, adId, images[], expired`.

### Output example

Three real rows from a run of this Actor (columns trimmed; each row has many more fields, see Output above):

| Title | Price (EUR) | Location | Shipping | Shop | Posted |
|---|---|---|---|---|---|
| Fahrradsattel von Velo mit Sattelstütze | 20 | 49324 Melle | True | False | 2026-10-24T01:20:00Z |
| BLACK COMP HERREN MOUNTAINBIKE, GRÖSSE 26", 27-GANG SHIMANO | 80 | 60599 Oberrad | False | False | 2026-10-24T01:18:00Z |
| crivit Fahrrad drehmomentschlüssel | 10 | 22335 Hamburg Ohlsdorf | False | False | 2026-10-24T01:12:00Z |

### Pricing

Pay per event: **$0.0015 per listing**, plus **$0.003 per detail page** if enabled. No start fee. 1,000 listings = $1.50.

### Notes and limits

- Posted time: Kleinanzeigen shows "Heute, 16:31", "Gestern, ..." or a date, so `postedAt` is exact to the minute for today/yesterday and to the day for older ads.
- Seller names and phone numbers are not extracted. The ad text itself is returned as written; if sellers put personal details in it, treat that as personal data under GDPR.
- Public pages only, no login. Use the data according to Kleinanzeigen's terms and German/EU law.

### FAQ

**How much does it cost?** Pay per event: $0.0015 per listing, plus $0.003 per listing detail page if you switch details on, plus a $0.00005 start event per run (per GB of memory). 1,000 listings = $1.50 before details. You are not charged for items skipped by filters or only-new mode, duplicates, or anything past your max-items limit. Prices are on the Pricing tab and in PRICING.md.

**Is there a limit on results?** `maxItems` is a hard cap you set per run (default 50). Runs also stop at the paging limit in the input (`maxPagesPerSearch`). The source site may cap how deep its own search goes; see Notes and limits.

**Is it legal?** The Actor collects only publicly visible data from kleinanzeigen.de, with no logins. You remain responsible for using the data in line with the site's terms and data-protection law (GDPR/UK GDPR), especially for personal data.

**Do I need proxies?** Not for normal runs: the default input works without one (no proxy is used). For very large runs you can add an Apify proxy or your own proxy URL in the Proxy configuration field; that cost is then yours.

**Can I schedule it?** Yes: use Apify Schedules or the API; a daily schedule with "only new" mode returns just the listings you have not received before.

**Which export formats are available?** Download the dataset as JSON, CSV, Excel, XML, HTML or RSS from the Console or API, or pull it with the Apify API/clients (Python, JavaScript) and integrations such as Make, Zapier, n8n, Google Sheets.

**Something broke or a field is missing?** Open an issue on the Actor's Issues tab with the run link.

### Use with AI agents / MCP

Agents can call this Actor through the [Apify MCP server](https://mcp.apify.com) (`https://mcp.apify.com`). Add the Actor to the server, or let the agent find it with the `search-actors` tool, then call it by name:

- Actor: `santis_hermes/kleinanzeigen-scraper`
- Example prompt: "Get the 3 newest bicycle listings on Kleinanzeigen with price and location."
- Minimal input:

```json
{
  "searchQueries": [
    "Fahrrad"
  ],
  "maxItems": 3
}
```

Results come back as dataset items (structured JSON), so an agent can read them directly. Keep `maxItems` small for agent calls to control cost. Docs: https://docs.apify.com/platform/integrations/mcp

### Feedback

If this saved you time, a rating on the Store page helps others find it. If it did not work for you, please open an issue on the Issues tab with the run link and I will look at it.

# Actor input Schema

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

Any kleinanzeigen.de results page (search, category or city), e.g. https://www.kleinanzeigen.de/s-berlin/fahrrad/k0l3331 . Set location and category on the website first, then copy the URL.

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

Searches all of Germany, e.g. 'Fahrrad', 'iPhone 15'. For a city or category use a URL above.

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

Lowest price in EUR. Applied by Kleinanzeigen. Leave empty for no minimum.

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

Highest price in EUR. Applied by Kleinanzeigen. Leave empty for no maximum.

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

Private sellers only, commercial (shop/dealer) sellers only, or any. Applied by Kleinanzeigen.

## `maxAgeHours` (type: `integer`):

Checked against the posted time shown on each listing (Kleinanzeigen shows today/yesterday and dates, not exact times for older ads). Leave empty for no limit.

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

Adds the full description, attribute list (condition, type, size...), all photos and ad ID. Slower and billed as an extra event.

## `onlyNew` (type: `boolean`):

Remembers listing IDs between runs (store: kleinanzeigen-seen). Good for scheduled runs and alerts.

## `splitPriceBands` (type: `boolean`):

Kleinanzeigen stops serving results after page 50 (about 1,250 listings). With this on and Max listings above 1,250, the search is cut into price bands so each band fits.

## `skipPromoted` (type: `boolean`):

Promoted (TOP) ads sit at the top of each page out of order and have no posted time.

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

Hard stop. You are never charged for more than this.

## `maxPagesPerSearch` (type: `integer`):

25 listings per page. 50 is the most Kleinanzeigen serves.

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

Apify Proxy (residential, country DE recommended) or your own proxy URLs.

## `customProxyUrl` (type: `string`):

Optional. Example: http://user:pass@host:port . Overrides the proxy setting above.

## Actor input object example

```json
{
  "searchQueries": [
    "Fahrrad"
  ],
  "sellerType": "any",
  "includeDetails": false,
  "onlyNew": false,
  "splitPriceBands": true,
  "skipPromoted": true,
  "maxItems": 50,
  "maxPagesPerSearch": 50,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

All scraped listings as a table with the key columns.

## `results` (type: `string`):

Every scraped listings item with all fields.

## `runSummary` (type: `string`):

Counts for the run: items pushed, skipped, charged events, block status.

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

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

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

```

## MCP server setup

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