# Kleinanzeigen.de Scraper: German Classifieds, Prices & Sellers (`hyperbach/kleinanzeigen-scraper`) Actor

Scrape Kleinanzeigen.de, Germany's classifieds marketplace: listings by search words in a city or postcode with a radius, by search or category URL, or by listing URL. Ad id, title, price and price type, postcode, city, date posted, seller name and type, images, category. No login. Misses free.

- **URL**: https://apify.com/hyperbach/kleinanzeigen-scraper.md
- **Developed by:** [Hyperbach](https://apify.com/hyperbach) (community)
- **Categories:** Automation, Real estate, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.75 / 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.de Scraper: German Classifieds, Prices & Sellers

**Kleinanzeigen.de listings, logged out: search words in a city or postcode with a radius, Kleinanzeigen search or category URLs, or listing URLs in, one row per listing out — the ad id and URL, the title, the price in euros with its type (fixed, negotiable, free), the postcode, city and district, the date posted, the seller's name and type (private or commercial), shipping, every image URL, the category and the seller's attributes — several searches in one run, a max per search.** One free `query` row per input carries a completeness verdict: COMPLETE (the search's end), CAPPED (your limit), TRUNCATED (the site's own depth limit, with its count) or PARTIAL. No login, no API key, no browser, proxies handled for you.

**$1.50 per 1,000 `listing` rows on the Free plan, $1.275 on Starter.** A run start is $0.005. The default input returns about 50 rows for about $0.08. A value that names nothing is a free row that says why.

![A kleinanzeigen.de listing in a browser: a green armchair with its price, place and seller box. Beside it, the row this Actor returns, with seller_name, seller_type and seller_since highlighted, next to the price, price type, city, date posted, shipping and attributes.](https://api.apify.com/v2/key-value-stores/dcLLNGq99686o2A4v/records/hero-kleinanzeigen-scraper.webp)

### Why this Kleinanzeigen scraper

- **Searches, categories and listings in one run.** Give search words with a postcode or a city and a radius (`lastenrad` in `10115`, 20 km), search URLs from your browser with every filter you set there, category URLs (`/s-handy-telekom/c173`), or listing URLs and ad ids. Each search gets its own cap (`maxItemsPerQuery`), and the run's cap sits on top (`maxItems`).
- **The seller on every row.** The site's search cards show no seller, so each listing is read on its own page: the seller's public name and type (private or commercial) and the date the seller joined, the full description, every photo's URL, the category with its path, the attributes the seller filled in (brand, model, condition …), the coordinates, the shipping line and the date posted.
- **Prices you can sort.** The price as a number in euros, the site's text (`1.400 € VB`), the price type fixed, negotiable or free (`Zu verschenken`), the struck old price, and offer or wanted ad (`Gesuch`).
- **Every listing of a search, checked.** The site's own order, 25 listings a page, until the search's end: the free `query` row says COMPLETE with the site's count. The site shows a reader 50 pages (1,250 listings) of a search, whatever its count (measured 2026-10-29); a run that reaches that end says TRUNCATED with the count. A paid top ad that repeats on every page and a listing another search already delivered are delivered and charged once.
- **Honest runs.** A place the site does not know is a free `invalid` row, never a silent search of all of Germany; a listing the site no longer has is a free `not_found` row, checked twice; a search with no match a free `no_results` row. Every input gets a row.

### Who it's for

- **Resellers and price analysts** — the prices of a model or a category around a postcode, private and commercial sellers apart, read again every day to see what is new and what moved.
- **Car, bike and real estate market researchers** — the listings of a category URL with its filters (cargo bikes in Berlin, flats in a district), with the price type, the place, the date and the attributes.
- **Lead generation for B2B sellers** — the commercial sellers of a category or a place: their names, the date they joined and what they list.

### Quick start

**The first 100 listings of a search URL**

```json
{
  "startUrls": [
    "https://www.kleinanzeigen.de/s-aachen/iphone/k0l1921"
  ],
  "maxItemsPerQuery": 100
}
```

**Search words around a postcode**

```json
{
  "searchTerms": [
    "lastenrad",
    "fahrradanhänger"
  ],
  "location": "10115",
  "radiusKm": 20,
  "maxItemsPerQuery": 200
}
```

**Two listings by URL and by id**

```json
{
  "startUrls": [
    "https://www.kleinanzeigen.de/s-anzeige/iphone-15-pro-max-512-gb-schwarz/3554217147-173-1926",
    "3555303417"
  ]
}
```

### Output

One row per listing (and one free query row per input):

| field | meaning |
|---|---|
| `row_type` | `listing` (one listing, charged) or `query` (the input's row with the walk's verdict; free). |
| `input_index` | The 1-based position of the input this row answers: `startUrls` first, then `searchTerms`. |
| `input_value` | The input as you gave it (the URL, the ad id or the search words). |
| `input_kind` | Which input it came from: `url` (`startUrls`) or `query` (`searchTerms`). |
| `search_url` | The search (on a query row: the canonical search URL the site resolved it to) or the listing on kleinanzeigen.de, as a URL you can open. |
| `status` | A query row: `ok`, `no_results`, `not_found`, `invalid`, `duplicate`, `failed` or `not_read` (see the FAQ). A listing row: `ok`. |
| `status_detail` | Why a query row is not `ok`, in a sentence. |
| `scraped_at` | When the row was read (UTC). |
| `position` | The listing's place among this input's delivered listings (1 = first); 1 for a listing URL. |
| `page` | The search page the listing was on (empty for a listing URL). |
| `top_ad` | A paid top ad the site puts on top of the search's pages (delivered once). |
| `listing_page` | `read` (the listing's own page was read), `gone` (deleted since the search) or `failed` (not served): see the FAQ. |
| `ad_id` | The site's ad id (the number in the listing URL). |
| `url` | The listing on kleinanzeigen.de. |
| `title` | The listing's title. |
| `price` | The price in euros, as a number (0 for an item given away; empty when the listing names no amount, such as `VB` alone). |
| `price_text` | The price as the site writes it (`1.400 € VB`, `Zu verschenken`). |
| `price_type` | `fixed`, `negotiable` (`VB`) or `free` (`Zu verschenken`); empty when the listing names no price. |
| `old_price` | The struck old price in euros, when the search card shows one. |
| `currency` | `EUR`. |
| `offer_type` | `offer` (Angebot) or `wanted` (Gesuch: the poster looks for the item). |
| `postcode` | The listing's German postcode. |
| `city` | The listing's city or town. |
| `district` | The district of the city, when the site names one. |
| `latitude` | The listing's latitude as the site places it (the postcode area, not the address). |
| `longitude` | The listing's longitude as the site places it. |
| `date_posted` | The date the listing shows (YYYY-MM-DD; the site's `Heute` and `Gestern` read as dates in Germany). |
| `seller_name` | The seller's public name as the listing shows it (a shop's name, or a private seller's chosen name). |
| `seller_type` | `private` (Privater Nutzer) or `commercial` (Gewerblicher Nutzer). |
| `seller_since` | The date the seller joined the site (`Aktiv seit`). |
| `shipping_offered` | Whether the seller ships the item (`Versand möglich`); false for pickup only (`Nur Abholung`). |
| `shipping_text` | The shipping line as the site writes it (`Nur Abholung`, `+ Versand ab 3,99 €`). |
| `image_urls` | The URL of every photo of the listing. |
| `images_count` | The number of photos. |
| `category_id` | The site's category id (`173` Smartphones, `217` Fahrräder & Zubehör). |
| `category` | The category's name. |
| `category_path` | The category path from the top (`Elektronik > Smartphones`). |
| `attributes` | The attributes the seller filled in, as the site labels them (`Marke`: Apple, `Zustand`: Sehr Gut …). |
| `description` | The listing's full description (the search card's first lines when the listing page was not read). |
| `listings_count` | A query row: the site's own count of listings in this search. |
| `listings_delivered` | A query row: the listings delivered for this input in this run. |
| `pages_read` | A query row: the search pages read. |
| `repeats_skipped` | A query row: listings met again (a top ad on a later page, or delivered by another input) and skipped. |
| `verdict` | A query row: COMPLETE, CAPPED, TRUNCATED or PARTIAL. |
| `verdict_detail` | A query row: the verdict in a sentence, with the counts. |

Example record:

```json
{
  "row_type": "listing",
  "input_index": 1,
  "input_value": "lastenrad",
  "input_kind": "query",
  "search_url": "https://www.kleinanzeigen.de/s-suchanfrage.html?keywords=lastenrad&categoryId=&locationStr=Berlin&locationId=&radius=0&sortingField=SORTING_DATE&adType=&posterType=&pageNum=1&action=find&maxPrice=&minPrice=",
  "status": "ok",
  "status_detail": null,
  "scraped_at": "2026-10-29T04:10:36Z",
  "position": 29,
  "page": 2,
  "top_ad": false,
  "listing_page": "read",
  "ad_id": "2942881554",
  "url": "https://www.kleinanzeigen.de/s-anzeige/tern-e-kompaktrad-hsd-p5i-riemen-2025-bosch-smart-system-sale/2942881554-217-3343",
  "title": "TERN e-Kompaktrad HSD P5i Riemen 2025 BOSCH Smart System SALE",
  "price": 4299.0,
  "price_text": "4.299 €",
  "price_type": "fixed",
  "old_price": null,
  "currency": "EUR",
  "offer_type": "offer",
  "postcode": "10627",
  "city": "Berlin",
  "district": "Charlottenburg",
  "latitude": 52.507,
  "longitude": 13.2986,
  "date_posted": "2026-10-27",
  "seller_name": "Just Bikes",
  "seller_type": "commercial",
  "seller_since": "2014-05-29",
  "shipping_offered": true,
  "shipping_text": "Versand möglich",
  "image_urls": [
    "https://img.kleinanzeigen.de/api/v1/prod-ads/images/06/0664470c-7815-44b8-ae43-35d3a36b4ed6?rule=$_59.JPG",
    "https://img.kleinanzeigen.de/api/v1/prod-ads/images/26/26df6805-ab9d-4d7c-813e-bf0e2bc6f2f7?rule=$_59.JPG",
    "https://img.kleinanzeigen.de/api/v1/prod-ads/images/f4/f49a3652-194b-433d-8041-cc24a6bed25c?rule=$_59.JPG",
    "https://img.kleinanzeigen.de/api/v1/prod-ads/images/51/51474a1b-59a5-4ea3-953b-fda681d96f44?rule=$_59.JPG",
    "https://img.kleinanzeigen.de/api/v1/prod-ads/images/f3/f3877949-a5ea-4725-88a7-25a62a68b91e?rule=$_59.JPG",
    "https://img.kleinanzeigen.de/api/v1/prod-ads/images/b1/b143c33a-78ab-45b9-bfea-28ef529cd334?rule=$_59.JPG",
    "https://img.kleinanzeigen.de/api/v1/prod-ads/images/7d/7dc4a303-43ae-4148-a54a-942146ddb51a?rule=$_59.JPG",
    "https://img.kleinanzeigen.de/api/v1/prod-ads/images/0e/0ef4f853-602c-424a-acfa-bd0cc872ee37?rule=$_59.JPG",
    "https://img.kleinanzeigen.de/api/v1/prod-ads/images/bc/bcdfe31f-b6de-4043-9b9e-47bda83a48f1?rule=$_59.JPG",
    "https://img.kleinanzeigen.de/api/v1/prod-ads/images/67/670afd38-8ec6-4c99-9911-01bd31c2b49c?rule=$_59.JPG",
    "https://img.kleinanzeigen.de/api/v1/prod-ads/images/44/44289f3a-7128-4e3e-a29c-361c953e47e9?rule=$_59.JPG"
  ],
  "images_count": 11,
  "category_id": "217",
  "category": "Fahrräder & Zubehör",
  "category_path": "Auto, Rad & Boot > Fahrräder & Zubehör",
  "attributes": {
    "Art": "Weitere Fahrräder & Zubehör",
    "Typ": "Lastenräder",
    "Zustand": "Neu"
  },
  "description": "Aktionspreis! SALE!\n4.999€, jetzt nur 4.299€\n\nTERN e-Kompaktrad 2025 HSD P5i Riemenantrieb 5-Gang SHIMANO Nexus Inter 5-E Nabenschaltung\nmit BOSCH Smart System, Performance Line Ge …(truncated for display)",
  "listings_count": null,
  "listings_delivered": null,
  "pages_read": null,
  "repeats_skipped": null,
  "verdict": null,
  "verdict_detail": null
}
```

### Pricing

**Pay for the listings a run delivers**, plus one run start; no platform usage is billed to you. The listing price falls with your Apify plan.

| event | unit | Free | Starter | Scale | Business |
|---|---|---|---|---|---|
| Listing (`listing`) | per 1,000 | $1.50 | $1.275 | $1.05 | $0.75 |
| Run start (`start`) | per run | $0.005 | $0.005 | $0.005 | $0.005 |

A listing is **$1.50 per 1,000** on the Free plan ($0.0015 a listing), with the seller's name and type, every image and the attributes included. Each run that delivers a charged listing also pays the **run start, $0.005 once**; a run that delivers no charged listing pays nothing at all. So one search of 100 listings costs $0.155 on the Free plan, and several searches in one run share one start. The free `query` row of every input, a value that is not a kleinanzeigen.de search, category or listing URL or a place the site does not know (`invalid`), a listing the site no longer has (`not_found`), a search with no match (`no_results`), a repeated input (`duplicate`), an input left at the cap or the time limit (`not_read`) and a refusal the run could not pass (`failed`) are never charged. A listing is charged once a run, also when several searches list it. A run that stops early (a timeout, an abort) is charged for the listings it delivered. `maxItems` counts the charged rows; before the first request the log names the price of each row at your plan and the most the run can cost. Enterprise plans have their own rates: the Actor's Pricing tab shows the price for your plan.

### Usage patterns

- **Searches, categories and listings** — `searchTerms` takes words, one search a line, searched in `location` (a German postcode or a city; empty = all of Germany) within `radiusKm` (0, 5, 10, 20, 30, 50, 100, 150 or 200 km). The site's own search form resolves the place. `startUrls` takes search URLs as your browser shows them (their place, radius, price, seller-type and category filters are kept), category URLs (`/s-<category>/c<id>`) and listing URLs (`/s-anzeige/<name>/<id>-<category>-<place>`) or bare ad ids. kleinanzeigen.de only.
- **What a row is** — `row_type` = `listing`: one listing, in the site's order (`position`, and the `page` it was on; `top_ad` marks a paid placement on top of a search; `listing_page` says whether the listing's own page was read). `row_type` = `query`: the free row of one input value — `listings_count` (the site's own count), `listings_delivered`, `pages_read`, `repeats_skipped`, the `verdict` with its `verdict_detail`, and the `status` with its reason.
- **How far a search goes** — `maxItemsPerQuery` (default 100; 0 = every listing the site shows) stops each search after that many new listings. The site shows a reader 50 pages (1,250 listings) of a search, whatever its count; a run that reaches that end says TRUNCATED with the count, and a category, a place, a price band or other words in the URL read more of it. `maxItems` caps the charged rows of the whole run.

### Input configuration

| field | type | default | what it does |
|---|---|---|---|
| `startUrls` | `array` |  | Kleinanzeigen pages to read, one a line: a search URL as your browser shows it (`https://www.kleinanzeigen.de/s-aachen/iphone/k0l1921`, with every filter you set there: place, radius, price, seller type, category), a category URL (`https://www.kleinanzeigen.de/s-handy-telekom/c173`), or a listing URL (`https://www.kleinanzeigen.de/s-anzeige/<name>/<id>-<category>-<place>`, or the ad id alone). A URL that is not a kleinanzeigen.de search, category or listing gets a free `invalid` row; a URL given twice a free `duplicate` row. |
| `searchTerms` | `array` |  | Words to search on kleinanzeigen.de, one search a line (`iphone 15`, `lastenrad`, `3 zimmer wohnung`), as you would type them in the site's search box. Each line is one search in the location below (all of Germany when the location is empty), read page after page. Words the site matches with nothing give a free row with no listing. |
| `location` | `string` | `""` | Where the search words search: a German postcode (`10115`) or a city as the site writes it (`Berlin`, `München`, `Hamburg`). Empty = all of Germany. The site itself resolves the place; a place it does not know gives the search a free `invalid` row (never a search of all of Germany). URLs in `startUrls` keep their own place. |
| `radiusKm` | `integer` | `0` | The distance around the location, in km: one of the site's radii 0 (the place only), 5, 10, 20, 30, 50, 100, 150, 200; another value takes the next larger one. Needs a location. |
| `maxItemsPerQuery` | `integer` | `100` | Stop each search or category after this many new listings. 0 = every listing the site shows a reader of it: 50 pages, 1,250 listings, whatever its count says. Listing URLs are not counted here. |
| `maxItems` | `integer` | `0` | Stop the whole run after this many listing rows (the charged rows). 0 = no run cap; each search still stops at its own limit above. |
| `feedback` | `string` |  | A note to the people who maintain this Actor: what you needed and did not get. For example a missing field, a wrong or empty result, or the Actor you switch from or to, and why. The run does not read it: the rows and the charges stay the same. A person reads every note. |

### Errors

**A run does not fail because of your input.** When an input cannot be used — a date that is not a date, an id in the wrong form, two settings that contradict each other — the run ends **Succeeded**, charges nothing, and says what to change:

- the status message starts with `INPUT REJECTED`;
- the dataset holds one row, `{"error": true, "code": "…", "message": "…"}`, and no results;
- the key-value store record `ERROR` holds the same object.

From code, check `error` on the first row before reading results.

A URL that is not a kleinanzeigen.de search, category or listing URL (a seller's page, the home page, another site) is not an error: it gets one free `query` row with `status` invalid that says why, and the run goes on with the others. A run that ends **Failed** is a fault on our side, never your input; it charges nothing, and we are alerted.

### FAQ

**Which status is which?**

A query row's `status` is `ok` (listings served), `no_results` (the site lists nothing for it; read on two connections), `not_found` (the site sends the listing's URL to a search page: the listing is gone; checked on two connections), `invalid` (an empty value, a URL that is not a kleinanzeigen.de search, category or listing URL, or a place the site does not know), `duplicate` (the same search or listing again in the input: read once; or a listing another input already delivered), `failed` (the site refused every try; free) or `not_read` (left at `maxItems`, the charge limit or the run's time limit). A listing row's `status` is `ok`.

**What does `listing_page` gone or failed mean?**

Each listing is read on its own page for the seller and the full record. `gone`: the site deleted the listing between the search and the read (sold or removed); `failed`: the site did not serve the page after six tries. Both rows carry the search card's fields (the title, the price, the place, the date, one image) and no seller.

**Does it give phone numbers or view counts?**

No. The site shows a seller's number only to a logged-in visitor, and the view count comes from a separate call per listing; this actor reads the public pages logged out.

**Does it need a Kleinanzeigen account or API key?**

No. Everything is read from kleinanzeigen.de's public pages, logged out.

**Do I need Apify Proxy or my own proxy?**

No. The Actor uses its own connections, at no extra cost to you.

### Integration

#### JavaScript

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_TOKEN' });
const run = await client.actor('hyperbach/kleinanzeigen-scraper').call({"startUrls": ["https://www.kleinanzeigen.de/s-aachen/iphone/k0l1921"], "maxItemsPerQuery": 100});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

#### Python

```python
from apify_client import ApifyClient
client = ApifyClient('YOUR_TOKEN')
run = client.actor('hyperbach/kleinanzeigen-scraper').call(run_input={'startUrls': ['https://www.kleinanzeigen.de/s-aachen/iphone/k0l1921'], 'maxItemsPerQuery': 100})
items = client.dataset(run['defaultDatasetId']).list_items().items
```

#### CLI

```bash
apify call hyperbach/kleinanzeigen-scraper --input '{"startUrls": ["https://www.kleinanzeigen.de/s-aachen/iphone/k0l1921"], "maxItemsPerQuery": 100}'
```

#### REST

```bash
curl -X POST "https://api.apify.com/v2/acts/hyperbach~kleinanzeigen-scraper/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H 'Content-Type: application/json' -d '{"startUrls": ["https://www.kleinanzeigen.de/s-aachen/iphone/k0l1921"], "maxItemsPerQuery": 100}'
```

#### AI agents and MCP

Apify's MCP server offers this Actor as a tool to Claude, Cursor, VS Code and any other MCP client. Connect `https://mcp.apify.com?tools=hyperbach/kleinanzeigen-scraper` and ask, for example: "Get the first 100 Kleinanzeigen listings for iphone in Aachen with prices and sellers". The agent fills the input from the table above and reads the rows from the run's dataset. The input names are the ones in the table above. An agent or a person can add `feedback` to any run and say what was needed and not delivered: a missing field, a wrong or empty result, the Actor switched from or to, and why. The run returns the same rows at the same price, and a person reads every note.

#### n8n, Make and Zapier

The Apify node in n8n, the Apify app in Make and the Apify integration in Zapier run this Actor on a schedule or from a trigger and read its dataset. A webhook on the run's end (Integrations on the Actor page) sends the rows on to your own endpoint. Nothing to install on our side.

### Support

**Disagree with a charge?** Write to apify@hyperbach.com with the run ID. We will ask Apify to compensate you, and the charge comes back to your Apify account as platform credit.

**Did it do the job?** A short [review on the Store](https://apify.com/hyperbach/kleinanzeigen-scraper/reviews), at any rating, helps the next buyer choose.

### See also

- **[Facebook Marketplace Scraper](https://apify.com/hyperbach/facebook-marketplace-scraper)** — Marketplace listings by search, category and city: the price, the date listed and the seller, and on request the description and the vehicle facts.
- **[Avito Scraper](https://apify.com/hyperbach/avito-scraper)** — Avito.ru listings by search words, category or URL, with the price, the city, the seller type and the images.
- **[AutoScout24 Scraper](https://apify.com/hyperbach/autoscout24-scraper)** — AutoScout24 car listings in eight European markets by make, model and place, with the price, mileage, first registration and the dealer.
- **[Leboncoin Scraper](https://apify.com/hyperbach/leboncoin-scraper)** — Leboncoin.fr listings by search words, category and place or by URL, with the price, the postcode, the seller type and the images.
- **[AutoTrader.ca Scraper](https://apify.com/hyperbach/autotrader-ca-scraper)** — AutoTrader.ca car listings by search URL, make and model around a Canadian city or listing URL, with the price, mileage, year, trim, the VIN where shown and the dealer or private seller.
- **[Mercari Japan Scraper](https://apify.com/hyperbach/mercari-scraper)** — Mercari Japan items by search URL, keyword or item link: the price in yen, sold or on sale, the condition, shipping, likes, the seller and the photos.

*This page is generated from the Actor's schemas and a live sample — it cannot describe a field the Actor does not have.*

# Actor input Schema

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

Kleinanzeigen pages to read, one a line: a search URL as your browser shows it (`https://www.kleinanzeigen.de/s-aachen/iphone/k0l1921`, with every filter you set there: place, radius, price, seller type, category), a category URL (`https://www.kleinanzeigen.de/s-handy-telekom/c173`), or a listing URL (`https://www.kleinanzeigen.de/s-anzeige/<name>/<id>-<category>-<place>`, or the ad id alone). A URL that is not a kleinanzeigen.de search, category or listing gets a free `invalid` row; a URL given twice a free `duplicate` row.

## `searchTerms` (type: `array`):

Words to search on kleinanzeigen.de, one search a line (`iphone 15`, `lastenrad`, `3 zimmer wohnung`), as you would type them in the site's search box. Each line is one search in the location below (all of Germany when the location is empty), read page after page. Words the site matches with nothing give a free row with no listing.

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

Where the search words search: a German postcode (`10115`) or a city as the site writes it (`Berlin`, `München`, `Hamburg`). Empty = all of Germany. The site itself resolves the place; a place it does not know gives the search a free `invalid` row (never a search of all of Germany). URLs in `startUrls` keep their own place.

## `radiusKm` (type: `integer`):

The distance around the location, in km: one of the site's radii 0 (the place only), 5, 10, 20, 30, 50, 100, 150, 200; another value takes the next larger one. Needs a location.

## `maxItemsPerQuery` (type: `integer`):

Stop each search or category after this many new listings. 0 = every listing the site shows a reader of it: 50 pages, 1,250 listings, whatever its count says. Listing URLs are not counted here.

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

Stop the whole run after this many listing rows (the charged rows). 0 = no run cap; each search still stops at its own limit above.

## `feedback` (type: `string`):

A note to the people who maintain this Actor: what you needed and did not get. For example a missing field, a wrong or empty result, or the Actor you switch from or to, and why. The run does not read it: the rows and the charges stay the same. A person reads every note.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.kleinanzeigen.de/s-aachen/iphone/k0l1921"
  ],
  "location": "",
  "radiusKm": 0,
  "maxItemsPerQuery": 50,
  "maxItems": 50
}
```

# Actor output Schema

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

All scraped records in the default dataset. One row per listing (and one free query row per input):

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

How the run went: listing rows charged, free rows, inputs by status, the listing pages read, the walk per search (listings delivered, pages read, repeated listings skipped, the site's count, the verdict), the source counters (calls, served, refused, exits, rotations, bytes) and the memory watch.

# 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 = {
    "startUrls": [
        "https://www.kleinanzeigen.de/s-aachen/iphone/k0l1921"
    ],
    "maxItemsPerQuery": 50,
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("hyperbach/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 = {
    "startUrls": ["https://www.kleinanzeigen.de/s-aachen/iphone/k0l1921"],
    "maxItemsPerQuery": 50,
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("hyperbach/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 '{
  "startUrls": [
    "https://www.kleinanzeigen.de/s-aachen/iphone/k0l1921"
  ],
  "maxItemsPerQuery": 50,
  "maxItems": 50
}' |
apify call hyperbach/kleinanzeigen-scraper --silent --output-dataset

```

## MCP server setup

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