# Kleinanzeigen Scraper — Germany Ads, Cars & Prices (`yugenox/kleinanzeigen-scraper`) Actor

Scrape Kleinanzeigen.de (Germany's biggest classifieds) by keyword, category and city: title, price + VB, PLZ, city, state, date, photos, shipping, seller type, mileage and first registration. Optional ad pages for full text and car specs. Deep search beyond 5 pages. No login.

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

## Pricing

from $1.00 / 1,000 ads

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 — Germany Ads, Cars & Prices

Scrape **Kleinanzeigen.de** (formerly eBay Kleinanzeigen), Germany's biggest classifieds site, by search term, category and
city or state. Every ad comes back as one clean row: title, price and price type (VB / fixed / free), postcode (PLZ),
place, state, date, photos, shipping, private or commercial seller, and on cars the mileage and first registration.
Turn on **Include ad details** for the full description, every photo, the complete spec table (brand, model, km, power,
fuel, gearbox, HU/TÜV, condition, storage …) and the equipment list.

Kleinanzeigen shows only 5 results pages (about 125 ads) per search. **Deep search** goes further: when a search has more
ads and you ask for more, it is read again per state and per city, so you can collect thousands of ads for one search.

No login, no cookies, no browser.

### What you can use it for

- **Car trading and price research** — every Golf 7, Tesla Model 3 or BMW 3er in a city or state with price, km, first
  registration, power, fuel and HU date, ready for a spreadsheet.
- **Reselling and sourcing** — find under-priced phones, consoles, bikes or furniture as soon as they are posted
  (combine **Only new ads** with an hourly or daily schedule).
- **Price monitoring** — track asking prices and price drops (`oldPrice`) for a product across Germany.
- **Market studies** — how many ads, at what prices, private vs. dealers, by region.
- **Lead lists of shops** — commercial sellers' shop names and shop pages per category.

### Input

| Field | What it does |
|---|---|
| **Search terms** | Words as you would type them on kleinanzeigen.de, e.g. `iphone 15`, `golf 7`, `kinderwagen`. Each term is its own search. |
| **Category** | One category by name or id: `Autos` (216), `Smartphones` (173), `Fahrräder & Zubehör` (217), `Mietwohnungen` (203) … English words such as `cars`, `phones`, `bikes` work too. |
| **City or state** / **More cities or states** | `Berlin`, `München`, `Stuttgart`, `Leipzig`, `Lüneburg`, `Bayern`, `NRW` … about 6,000 German cities, towns and districts are known. If a name exists in several states, add the state: `Neustadt, Hessen`. |
| **Kleinanzeigen links** | Paste search/category links or ad links copied from the site. |
| **Max ads** | Ads for the whole run, shared fairly between your searches (0 = as many as the site gives). |
| **Include ad details** | Also read each ad's own page (full text, all photos, spec table, features, shipping price). |
| **Deep search** | Read big searches per state and city to get past the 5-page limit (on by default). |
| **Only new ads** | Skip ads an earlier run with the same input already saved — they are not charged. |
| **Include top ads** | Keep or drop the paid "Top" placements shown at the top of every results page. |
| **Filters** | Min / max price, private or commercial sellers, offers or wanted ads, shipping possible, postcode starts with …, posted within N days. |

Example — newest iPhone 15 ads in Berlin and Hamburg under 600 €, from private sellers:

```json
{
  "searchTerms": ["iphone 15"],
  "locations": ["Berlin", "Hamburg"],
  "maxPrice": 600,
  "sellerType": "private",
  "maxItems": 200
}
```

Example — cars in Bavaria with full specs:

```json
{ "category": "Autos", "location": "Bayern", "includeDetails": true, "maxItems": 500 }
```

### Output

One row per ad. A real row (trimmed), from a run with **Include ad details** on:

```json
{
  "adId": "3523638340",
  "url": "https://www.kleinanzeigen.de/s-anzeige/renault-clio-tce-75-limited/3523638340-216-9653",
  "title": "Renault Clio TCe 75 Limited",
  "description": "… Wir haben den Clio vor zwei Jahren aus Erstbesitz gekauft …",
  "descriptionIsFull": true,
  "price": 8990,
  "priceText": "8.990 € VB",
  "priceType": "NEGOTIABLE",
  "oldPrice": 9450,
  "currency": "EUR",
  "adType": "OFFER",
  "sellerType": "PRIVATE",
  "categoryName": "Autos",
  "categoryPath": "Auto, Rad & Boot > Autos",
  "postalCode": "13505",
  "city": "Reinickendorf",
  "state": "Berlin",
  "postedDate": "2026-09-26",
  "imageCount": 18,
  "images": ["https://img.kleinanzeigen.de/api/v1/prod-ads/images/a6/a63b9e76-25ac-4b40-b9c3-b9706c263490?rule=$_59.AUTO", "…"],
  "shippingAvailable": false,
  "isTopAd": true,
  "tags": ["49.850 km", "EZ 03/2019"],
  "brand": "Renault",
  "model": "Clio",
  "condition": "Unbeschädigtes Fahrzeug",
  "color": "Rot",
  "mileageKm": 49850,
  "firstRegistration": "2019-03",
  "fuel": "Benzin",
  "powerHp": 76,
  "gearbox": "Manuell",
  "vehicleType": "Kleinwagen",
  "inspectionUntil": "2028-08",
  "features": ["Einparkhilfe", "Klimaanlage", "Navigationssystem", "Sitzheizung", "Tempomat", "Scheckheftgepflegt"],
  "detailsScraped": true,
  "searchQuery": "Autos in Berlin",
  "page": 1,
  "position": 2,
  "scrapedAt": "2026-10-29T13:52:24.456Z"
}
```

Every row has every field (empty ones are `null` or `[]`), so the dataset exports cleanly to CSV, Excel or JSON. The
dataset has three views: **Overview**, **Cars & vehicles** and **Details**. Each run also saves a `RUN_REPORT` record
(how the run ended, counts per search, pages read) in its key-value store.

### Pricing

Pay per event — you only pay for what you get:

| Event | Price |
|---|---|
| Ad saved | **$1.00 per 1,000 ads** |
| Ad details (ad page read and merged, only with "Include ad details" or pasted ad links) | **$0.50 per 1,000 ads** |
| Results page read (up to ~27 ads) | $0.20 per 1,000 pages |
| Run start | $0.003 per run |

So 1,000 ads cost about **$1.01** (the ads plus about $0.008 for the ~40 results pages read), or about **$1.51** with full ad details.
Ads skipped by **Only new ads**, ads your filters leave out, and failed or refused requests are never charged as ads.
Set a spending limit on the run and the scraper stops cleanly before it — every ad in your dataset is a paid ad,
nothing is cut off half-way.

### Tips

- **Big searches:** keep **Deep search** on and raise **Max ads**. A search for a whole category (e.g. all cars in Germany)
  is read state by state and city by city.
- **Monitoring:** use **Only new ads** with a schedule (hourly / daily). Results are newest first, so a run stops at the first
  page whose ads were all saved before — cheap and fast.
- **Narrow on the site's side first.** Price, seller and postcode filters are applied to the ads the site returns; a category
  and a city make every results page count.
- **Postcodes:** Kleinanzeigen's postcode + radius search isn't available to this scraper. Use the city (or state) as the
  location and **Postcodes** to keep e.g. `["10", "12"]` (Berlin's 10xxx and 12xxx areas).
- **Pasted links** keep their search, category and place; a price range or private/commercial setting in the link is applied
  as a filter, a radius is dropped.

### FAQ

**Is it legal to scrape Kleinanzeigen?**
The scraper reads only public pages that anyone can open without an account, follows the site's robots.txt (which, for
example, limits crawlers to the first 5 results pages and excludes price-sorted and radius URLs — the scraper never requests
those), and sends requests at a modest pace. Whether your use of the data is lawful depends on what you do with it and where
you are; under the GDPR, personal data needs a legal basis. If in doubt, ask a lawyer.

**Does it access any private data?**
No. It never logs in and never reads seller names, user profiles, phone numbers or chat. For private sellers only the item is
collected (title, price, place, photos, description). Phone numbers and e-mail addresses that sellers type into titles or
descriptions are replaced with `[phone removed]` / `[email removed]`. For commercial sellers the public shop name and shop
page are included.

**Which proxies does it use?**
Kleinanzeigen turns away most datacenter IPs, so the scraper switches to Apify's residential proxies by itself when your
account has them (Apify Console → Proxy). That traffic is covered by the prices above — you don't pay for it separately.
If your account has no residential access, the run stops with a short message and 0 ads instead of charging you for nothing.

**My run stopped early with a note about filters — why?**
Price, seller and postcode filters are applied to the ads Kleinanzeigen returns. When a search returns page after page of ads
that your filters throw away, the run stops instead of reading pages that bring you nothing. Put the selection into the search
itself (a more precise search term, a category, a city) and keep the filters for fine-tuning.

**Why do I get fewer ads than the site's total?**
Kleinanzeigen shows at most 5 pages per search. Deep search reaches much further by splitting the search per state and city,
but very large searches (hundreds of thousands of ads) can't be read completely — ask for what you need with **Max ads**.

**Are the ads sorted?**
Newest first, as on the site. The site's own price sort can't be used by crawlers; sort the dataset after the run.

**Can I search by postcode and radius?**
Not directly (see Tips) — use a city or state plus the **Postcodes** filter.

**What does "VB" mean?**
"Verhandlungsbasis" — the price is negotiable. `priceType` is `NEGOTIABLE`; `price` holds the amount when one is given.

# Actor input Schema

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

Words to search for, as you would type them on kleinanzeigen.de, e.g. "iphone 15", "golf 7", "kinderwagen", "e-bike". Each term is a separate search. Leave empty to list a whole category or city.

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

Optional: one Kleinanzeigen category by name or id, e.g. "Autos" (216), "Smartphones" (173), "Fahrräder & Zubehör" (217), "Motorräder & Motorroller" (305), "Mietwohnungen" (203), "Haus & Garten" (80), "Notebooks" (278). English words like "cars", "phones" or "bikes" work too. Combine it with search terms or use it alone.

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

Optional: a German city, town or state, e.g. "Berlin", "München", "Stuttgart", "Leipzig", "Lüneburg", "Bayern", "NRW". If a town name exists in several states, add the state: "Neustadt, Hessen". A postcode alone can't be searched (use "Postcodes" under Filters to keep only some postcodes).

## `locations` (type: `array`):

Run the same searches in several places, e.g. \["Berlin", "Hamburg", "München"].

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

Optional: search or category links copied from kleinanzeigen.de (e.g. https://www.kleinanzeigen.de/s-autos/berlin/golf/k0c216l3331) and/or ad links (https://www.kleinanzeigen.de/s-anzeige/…/3529454569-216-7620). Price, private/commercial and offer/wanted settings in a link are applied as filters; a radius in a link is dropped (the whole city is searched).

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

Maximum number of ads for the whole run, shared fairly between your searches. 0 = as many as the site gives.

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

Also open each ad's own page: the full description, every photo, the detail table (brand, model, km, first registration, power, fuel, gearbox, HU/TÜV, condition, storage …), equipment features and shipping price. Charged per ad page (see Pricing). Off = the data shown on the results pages.

## `deepSearch` (type: `boolean`):

Kleinanzeigen shows at most 5 results pages (about 125 ads) per search. When a search has more and you ask for more, the run reads it again per state and per city to reach deeper. Each results page read is charged (see Pricing).

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

Skip ads that an earlier run with the same input already saved (not charged). Results are newest first, so a search stops at the first results page whose ads were all saved before — ideal for hourly or daily monitoring.

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

Top ads are paid placements Kleinanzeigen shows at the top of every results page (marked isTopAd). They can be older than the regular results or come from sellers outside the searched area. Turn off to keep only the regular results.

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

Keep only ads with a price of at least this much. Ads without an amount (just "VB") are left out when set.

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

Keep only ads with a price of at most this much. Ads without an amount are left out when set.

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

Private sellers, commercial sellers (dealers, shops) or both.

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

Kleinanzeigen has offers (Angebote) and wanted ads (Gesuche, people looking for something).

## `shippingOnly` (type: `boolean`):

Keep only ads that offer shipping ("Versand möglich").

## `postalCodes` (type: `array`):

Keep only ads whose postcode (PLZ) starts with one of these, e.g. \["10", "12", "80331"]. Works best together with a city or state above.

## `postedWithinDays` (type: `integer`):

Keep only ads dated within the last N days (1 = today). The search stops once the results get older.

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

Keep the default (Apify Proxy). Kleinanzeigen turns away most datacenter IPs, so the run switches to residential proxies by itself when your account has them; that traffic is covered by the event prices.

## `_noResidential` (type: `boolean`):

Internal (canaries): behave exactly like an account without the RESIDENTIAL proxy group.

## Actor input object example

```json
{
  "searchTerms": [
    "iphone 15"
  ],
  "maxItems": 20,
  "includeDetails": false,
  "deepSearch": true,
  "onlyNew": false,
  "includeTopAds": true,
  "sellerType": "all",
  "adType": "all",
  "shippingOnly": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "_noResidential": false
}
```

# Actor output Schema

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

All scraped ads.

## `run` (type: `string`):

Status and statistics for this run.

## `report` (type: `string`):

RUN_REPORT: how the run ended, counts per search, requests and proxy use.

# 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 = {
    "searchTerms": [
        "iphone 15"
    ],
    "maxItems": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("yugenox/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 = {
    "searchTerms": ["iphone 15"],
    "maxItems": 20,
    "proxyConfiguration": { "useApifyProxy": True },
}

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

```

## MCP server setup

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