# Kleinanzeigen Listings Scraper · Full ad details · $1.2/1K (`mlg14/kleinanzeigen-scraper`) Actor

Collect Kleinanzeigen listings from search, category or ad URLs for price research, resale sourcing and local market analysis. Prices, full descriptions, locations, images, shipping options and specifications, with pagination. $1.2/1K listings.

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

## Pricing

$1.20 / 1,000 results

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 Listings Scraper

Scrape Kleinanzeigen search results, category pages, and individual public listings with automatic pagination. Export Kleinanzeigen listing data to JSON, CSV, or a spreadsheet, including prices, full descriptions, locations, shipping, specifications, and image galleries. This is a practical Kleinanzeigen data export for price research, inventory tracking, and local market analysis.

### What data can you extract from Kleinanzeigen?

Each dataset row represents one unique public ad. A result page provides the listing preview; with detail collection enabled, the scraper opens the ad and adds the fields visible on its public page. The table shows every output field. Empty values reflect information the listing does not publish, a field that does not apply to that category, or a detail page that could not be opened.

| Field | Description | Example |
| --- | --- | --- |
| `title` | Public listing headline | `Iphone 12 64 GB` |
| `price` | Price exactly as displayed, including negotiation wording | `240 € VB` |
| `priceValue` | Numeric amount from the detail page, when available | `240` |
| `currency` | Currency code shown by the detail page | `EUR` |
| `description` | Full public description when details are enabled; otherwise the search preview | `Ich verkaufe mein ...` |
| `location` | Public postal area and locality | `52080 Aachen - Aachen-Haaren` |
| `datePosted` | Date shown on the ad; preview mode may use relative time | `26.09.2026` |
| `itemId` | Stable numeric ad identifier | `3524060898` |
| `itemUrl` | Direct public link to the ad | `https://www.kleinanzeigen.de/s-anzeige/...` |
| `imageUrl` | Main gallery image | `https://img.kleinanzeigen.de/api/v1/prod-ads/images/...` |
| `imageCount` | Number of image URLs collected | `4` |
| `hasShipping` | Whether the visible shipping label offers shipping | `false` |
| `shipping` | Shipping or pickup wording on the public ad | `Nur Abholung` |
| `metaDescription` | Public page summary or search preview | `Ich verkaufe mein ...` |
| `metaImageUrl` | Preview image in public page metadata | `https://img.kleinanzeigen.de/...` |
| `viewCount` | Public view count if the site exposes one | `null` |
| `specifications` | Category-specific labels and values | `{"Zustand":"Gut"}` |
| `images` | All collected gallery image URLs | `[...]` |
| `sellerType` | Public private or commercial account classification | `Privater Nutzer` |
| `buyNowEnabled` | Direct purchase flag from search previews | `false` |

Prices can be negotiable, fixed, free, or absent. Keep `price` when presenting an ad to a person because it preserves the site's wording. Use `priceValue` for calculations only when it is present. `specifications` varies by category: a phone can expose model, color, and condition, while a vehicle or property exposes different labels. The scraper preserves the original visible German labels rather than guessing a universal schema.

The scraper does not open a login session, request private messages, collect contact details, or infer information beyond the public listing. The output is intended for listing analysis, not for building personal contact lists.

### How to scrape Kleinanzeigen

1. Open a public search, category, or individual ad on kleinanzeigen.de and copy its URL. A narrow search usually produces a more useful dataset than a broad home page.
2. Paste one or more URLs into **Search, category, or listing URLs**. Each search or category URL is paginated separately. A single-ad URL produces at most one row.
3. Set **Maximum listings** to the number of unique ads needed. Leave **Include full listing details** on for descriptions, numeric prices, attributes, and complete image galleries.
4. Run the scraper. It follows public pagination links, removes duplicate listing IDs across start URLs, and stops at the item limit, page limit, site boundary, or run budget.
5. Open the dataset and download JSON, CSV, or a spreadsheet-compatible export. Keep `itemId` with your records so later exports can be compared by listing identity.

For an initial check, request 30 to 100 listings from a search with enough results. A single listing URL is useful when checking how a particular category presents its attributes. Multiple start URLs can cover separate cities, price ranges, or categories in one run, with duplicate ads emitted once.

### Input

| Parameter | Type | Default | Description |
| --- | --- | --- | --- |
| `startUrls` | URL list | Required | Public search results, categories, or single-ad URLs. |
| `maxItems` | Integer | `100` | Maximum unique output rows across all URLs; `0` removes this limit. |
| `maxPages` | Integer | `20` | Maximum search result pages per start URL; the site can impose a smaller boundary. |
| `includeDetails` | Boolean | `true` | Open every selected public ad for its complete fields. |
| `proxyConfiguration` | Object | Automatic | Optional custom proxy configuration. The default starts with a datacenter route and escalates when blocked. |

Example input for a local phone search:

```json
{
  "startUrls": [
    {"url": "https://www.kleinanzeigen.de/s-aachen/iphone/k0l1921"}
  ],
  "maxItems": 100,
  "maxPages": 5,
  "includeDetails": true
}
```

The URL carries the site's own filters, such as keyword, location, category, sorting, and price range. Set those filters on the site, then paste the resulting URL. This keeps the scraper aligned with the results a visitor sees. The actor does not translate separate keyword or location inputs into a search URL, so the copied URL is the source of truth.

`maxPages` applies independently to each search or category start URL. It does not restrict a single-ad URL. `maxItems` applies to the combined output, and an ad appearing on two result pages or two start URLs is counted once. If you set `maxItems` to `0`, use a sensible `maxPages` and focused URLs to bound the run. The item cap is also observed when the run's event budget is reached.

### Output example

The following item is from a public Aachen phone listing collected with full details. Long URLs and description text are shortened here for readability; the dataset contains the full values.

```json
{
  "title": "Iphone 12 64 GB",
  "price": "240 € VB",
  "priceValue": 240,
  "currency": "EUR",
  "description": "Ich Verkaufe mein schwarzes iPhone 12 mit kleinen Gebrauchsspuren wie auf den Bildern zu sehen. Das Handy funktioniert einwandfrei.",
  "location": "52080 Aachen - Aachen-Haaren",
  "datePosted": "26.09.2026",
  "itemId": 3524060898,
  "itemUrl": "https://www.kleinanzeigen.de/s-anzeige/iphone-12-64-gb/3524060898-173-16879",
  "imageUrl": "https://img.kleinanzeigen.de/api/v1/prod-ads/images/dc/dc8f5ed3-639f-46c7-bcee-ded1cf60ec1b?rule=$_59.AUTO",
  "imageCount": 4,
  "hasShipping": false,
  "shipping": "Nur Abholung",
  "metaDescription": "Ich Verkaufe mein schwarzes iPhone 12 mit kleinen Gebrauchsspuren wie auf den Bildern zu sehen.",
  "metaImageUrl": "https://img.kleinanzeigen.de/api/v1/prod-ads/images/dc/dc8f5ed3-639f-46c7-bcee-ded1cf60ec1b?rule=$_59.JPG",
  "viewCount": null,
  "specifications": {
    "Modell": "iPhone 12",
    "Farbe": "Schwarz",
    "Gerät & Zubehör": "Gerät",
    "Zustand": "Gut"
  },
  "images": [
    "https://img.kleinanzeigen.de/api/v1/prod-ads/images/dc/dc8f5ed3-639f-46c7-bcee-ded1cf60ec1b?rule=$_59.AUTO"
  ],
  "sellerType": "Privater Nutzer",
  "buyNowEnabled": false
}
```

The real gallery for this ad contained four image URLs; only one is shown in the shortened example. Values such as condition and model are ad attributes, so they remain inside `specifications`. They should not be assumed to exist for every listing or category. The `datePosted` string is the site's displayed date. Parse it using the expected German day-month-year order if you need a date object downstream.

### Use cases

- **Used-goods price research:** Compare asking prices for a specific model and location. Keep the displayed price label alongside the numeric amount so negotiable listings are distinguishable from fixed ones.
- **Local inventory snapshots:** Save periodic exports for one city or postal area, then compare `itemId` values to see which public listings appeared, remained, or disappeared.
- **Category analysis:** Measure the mix of condition, model, and other visible attributes in a narrow category without treating missing attributes as negative answers.
- **Shipping availability research:** Compare local pickup and shipping offers for a product group. The shipping fields reflect the wording shown on each public ad.
- **Image coverage checks:** Use `imageCount` and `images` to identify public ads with no image, one image, or a larger gallery.
- **Single-listing capture:** Record a public ad's description, price, location, image URLs, and specifications from its direct URL for a structured internal record.

For trend work, collect at a consistent time and keep the input URL, run time, and `itemId`. Ads can be edited or removed, so separate snapshots are more informative than treating one export as permanent history. A listing's displayed price is an asking price, not a confirmed sale price.

### How much does it cost to scrape Kleinanzeigen?

The current result event price is **$0.0012 per emitted listing**, or **$1.20 per 1,000 results**. The charge depends on output rows, not on the number of search and detail pages requested. Your run settings still matter for duration: full details open an additional public page for each selected ad, while preview mode uses search results only.

| Output rows | Result event calculation | Result event cost |
| ---: | ---: | ---: |
| 100 | `100 × $0.0012` | `$0.12` |
| 1,000 | `1,000 × $0.0012` | `$1.20` |
| 5,000 | `5,000 × $0.0012` | `$6.00` |

These are event-price examples at the current rate; check the pricing shown for the actor before a large run. Some searches expose fewer reachable results than requested, so the number of emitted rows can be lower than `maxItems`. For example, a search returning 70 unique accessible ads with `maxItems` set to 100 emits 70 rows. A single-ad URL normally emits one row if the ad is public and available.

Preview-only mode can shorten a large run, but it does not change the per-result event rate. If full specifications and description are central to your analysis, leave detail collection enabled. If you only need title, displayed price, preview text, location, and images, turn it off to reduce page fetches.

### Tips for best results

Use a filtered result URL that already shows the items you want. A search for a model in a city is easier to interpret than a national search with mixed categories. If you need more coverage, use several focused URLs, such as separate locations or price ranges. This also helps when a broad result set reaches the site's pagination boundary.

Start with a modest `maxItems` value to check the field mix for your category. Once the first sample looks right, raise the limit or add more start URLs. A category can have attributes that differ from the phone example above, and some categories do not publish a numeric price for every ad.

The scraper follows the result page's visible pagination links rather than fabricating page numbers. This avoids repeated final pages and redirects. It removes duplicate IDs across pages and URLs. If a listing disappears between the search preview and detail request, the preview can still be emitted with the fields available there.

For repeated snapshots, keep the same URL and limits. Sort order, promoted placements, and newly posted ads can change between runs. Compare by `itemId`; row order is not a stable listing identity. The first page may contain sponsored entries as well as ordinary results, consistent with the public result page.

### Limits

The site's own pagination cap can stop a search before every matching ad is reachable. In the tested Aachen phone search, a request for page 50 redirected to page 21. The scraper follows available page links and does not claim to retrieve listings hidden beyond that boundary. Split a broad search by location, category, or another site filter when you need wider coverage.

Public pages can change layout, move attributes, or show a temporary access challenge. The fetch layer retries and can switch proxy routes when blocked, but an unavailable ad may still be skipped or emitted from its preview. The default route is the lower-cost datacenter route; a residential route is used only after repeated blocks. Results can vary with site availability and the filters in the start URL.

`description`, `specifications`, `priceValue`, and the exact posting date depend on the detail page. In preview-only mode, the description is a short search summary, `priceValue` is empty, specifications are empty, and the date can be relative text such as “Heute.” `viewCount` is normally empty because the visible count is not populated in the public response used by the scraper.

Some ads have no price, no shipping label, or no images. A missing shipping label should not be read as a promise that shipping is impossible. The scraper reports what the public page presents. Seller classification is a public account label; the scraper does not export seller names or contact information. It does not access login-only pages or private conversations.

### Automation

A recurring run can save a dataset at a chosen interval. A downstream process can request the dataset in JSON or CSV, match rows by `itemId`, and compute changes. For example, run the same local search every morning, retain the date of each snapshot, and report new IDs or changed asking prices. The actor itself deduplicates within a run; historical comparison belongs in the system storing multiple run results.

For a workflow that needs only newly seen listings, keep a table of IDs from previous exports and filter the latest dataset against it. This explicit history avoids confusing edits, reorders, and promoted placements with newly posted ads. When a listing is removed, it will simply be absent from later public search results; absence alone does not prove a sale.

### Use with AI agents (MCP)

Add this actor to any MCP client (Claude, Cursor, VS Code, n8n and others) with one URL:

`https://mcp.apify.com?tools=mlg14/kleinanzeigen-scraper`

The actor returns one dataset item per Kleinanzeigen listing (title, price, description, location, posting date, images, shipping, specifications). Pass a search URL copied from kleinanzeigen.de and keep `maxItems` at 20-50.

**Prompt 1:** "Get 30 iPhone listings in Aachen from Kleinanzeigen with prices and descriptions."

```json
{
  "startUrls": [
    {
      "url": "https://www.kleinanzeigen.de/s-aachen/iphone/k0l1921"
    }
  ],
  "maxItems": 30,
  "maxPages": 2,
  "includeDetails": true
}
```

**Prompt 2:** "Quickly list 50 ads from this Kleinanzeigen search page, titles and prices only."

```json
{
  "startUrls": [
    {
      "url": "https://www.kleinanzeigen.de/s-aachen/iphone/k0l1921"
    }
  ],
  "maxItems": 50,
  "maxPages": 3,
  "includeDetails": false
}
```

**Prompt 3:** "Get the full details of one Kleinanzeigen ad."

```json
{
  "startUrls": [
    {
      "url": "https://www.kleinanzeigen.de/s-aachen/iphone/k0l1921"
    }
  ],
  "maxItems": 1,
  "maxPages": 1,
  "includeDetails": true
}
```

### FAQ

#### Can I use a search URL, a category URL, and a direct ad URL together?

Yes. Add each URL to `startUrls`. Search and category pages paginate independently, and direct ad URLs are opened once. Duplicate ad IDs are emitted once across the whole run. The combined output respects `maxItems`.

#### Is this limited to phones or Aachen?

No. Those are sample inputs. The scraper reads the public structure used by Kleinanzeigen result pages and detail pages, so other cities and categories can be used. Category-specific attributes remain in `specifications` under their visible labels. Verify a short sample before relying on a new category at scale.

#### Do I need to set a proxy?

Usually no. The default configuration supplies one and can escalate when a route is blocked. Provide a custom configuration only when your account or network arrangement requires it. A blocked page can still fail after retries, and the site can change its access rules.

#### How fast is a run?

Runtime depends on the number of result pages, whether details are enabled, site response times, and retries. A verified 30-listing run with full details completed in roughly half a minute after startup. Large detail-heavy runs take longer because each output row may require another public page request.

#### Why is a field empty?

The site may not show it for that ad, it may not apply to that category, or the detail page may have been unavailable. `viewCount` is usually empty. In preview-only mode, `priceValue` and `specifications` are intentionally empty. Check `itemUrl` to see what the public page currently shows.

#### Can I export the results for analysis?

Yes. The dataset can be downloaded as JSON or CSV, then opened in a spreadsheet or loaded into a database. Numeric calculations should use `priceValue` where available. Preserve `price` for labels such as negotiable offers and free items.

#### Can I schedule runs and compare changes?

Yes. Schedule repeated runs with the same input, then compare exports by `itemId`. The scraper does not maintain a cross-run monitoring database. Store snapshots externally if you need change history, price movement, or alerts for newly seen public ads.

#### Is it appropriate to collect these listings?

The scraper reads public listing pages only. Follow the site's terms and applicable data-protection rules for your use case. Avoid using listing data for personal-data profiling or unwanted contact. The exported fields focus on the ads and omit seller names and direct contact details.

### Integrations

The default dataset can be retrieved through the platform API or downloaded as JSON and CSV. It can feed scheduled reports, database imports, webhooks, or spreadsheet workflows. Use `itemId` as the stable key, `itemUrl` as the source link, and a separate run timestamp for snapshots. Handle nullable fields explicitly because public listings differ by category and by what the advertiser chooses to provide.

### Support

Open an issue on the actor's Issues tab with the public URL, the affected field, and the expected value visible on the page. A small reproducible example makes layout changes and missing category fields easier to investigate.

# Actor input Schema

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

Public kleinanzeigen.de result pages, category pages or single ad URLs, as {"url": ...} objects. Example: \[{"url": "https://www.kleinanzeigen.de/s-aachen/iphone/k0l1921"}]. Use a search URL copied from the site to filter by keyword, city and price.

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

Stop after this many unique listings across all start URLs. Example: 30. Set 0 for no limit; keep it small (20-100) for AI agent calls so the run stays short.

## `maxPages` (type: `integer`):

Maximum search result pages to follow per start URL, 1 to 100. Example: 2. Use a higher value for big categories; the site may cap deep pages.

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

Open each ad to collect the full description, exact price, specifications, date and gallery. Allowed values: true or false. Example: false for a faster preview list. Use true for complete records.

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

Uses proxy access automatically and escalates if blocked. Configure only for a custom proxy setup.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.kleinanzeigen.de/s-aachen/iphone/k0l1921"
    }
  ],
  "maxItems": 100,
  "maxPages": 20,
  "includeDetails": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `listings` (type: `string`):

All collected public listings in the default dataset.

# 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": [
        {
            "url": "https://www.kleinanzeigen.de/s-aachen/iphone/k0l1921"
        }
    ]
};

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

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

```

## MCP server setup

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