# Kleinanzeigen Scraper (`northloop-labs/kleinanzeigen-scraper`) Actor

Scrape Kleinanzeigen.de (formerly eBay Kleinanzeigen) by keyword, city, radius and price: title, price, VB, location, distance, posted date, photo, shipping and seller type. No login.

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

## Pricing

from $0.95 / 1,000 ad saveds

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 Scraper: Ads, Prices and Sellers from Kleinanzeigen.de

**Get classified ads from Kleinanzeigen.de (formerly eBay Kleinanzeigen) as clean data.** Type a search such as `e-bike` or `iphone 15`, optionally add a city, a radius and a price range, or paste any Kleinanzeigen search URL with your own filters. You get the title, price, VB (negotiable) flag, location, postal code, distance, posted date, photo, shipping and direct buy flags, and whether the seller is private or commercial.

No Kleinanzeigen account, no API key and no proxy setup needed.

**Try it now:** click **Start** with the ready made input (`fahrrad`, first 5 pages). It takes about 15 seconds and costs about $0.17 for 125 ads.

### Who uses it

- **Resellers and dealers** looking for deals on bikes, phones, consoles, furniture or cars parts.
- **Price research:** see what used items really cost in a city or across Germany.
- **Market and lead research:** list commercial sellers (PRO accounts) in a category and area.
- **Alerts:** schedule the Actor every hour and get only the newest ads for your search.

### How much does it cost?

You only pay for results (pay per event, no monthly fee):

| Event | Price | When it is charged |
|---|---|---|
| Actor start | $0.001 | Once per run |
| Ad saved | $0.00135 | Per ad in the dataset, so **$1.35 per 1,000 ads** |

**Examples:** 125 ads cost about $0.17. 1,000 ads cost about $1.35. 10,000 ads cost about $13.50.

Duplicate ads across pages or searches are skipped and never charged. Apify plan discounts (Bronze, Silver, Gold) lower the price further.

Set **Maximum cost per run** in the run options to cap what a run can cost. The Actor stops cleanly when it gets there and keeps everything saved so far.

### How to scrape Kleinanzeigen

1. Enter **Search terms**, one per line, or paste **Search URLs** copied from your browser (all filters in the URL are kept).
2. Optional: enter a **City or postal code** and a **Radius**.
3. Optional: set a **price range** and the **seller type** (private or commercial).
4. Set **Max pages per search** (about 25 ads per page, Kleinanzeigen shows at most 50 pages).
5. Click **Start**, then export the results as CSV, Excel, JSON or HTML, or read them through the API.

#### Input example

```json
{
  "queries": ["e-bike", "rennrad"],
  "location": "München",
  "radiusKm": 20,
  "priceMin": 100,
  "priceMax": 1500,
  "sellerType": "private",
  "maxPagesPerSearch": 5
}
```

### What data you get

| Field | Description |
|---|---|
| `adId`, `url`, `title` | Kleinanzeigen ad id, link and title |
| `price`, `priceText`, `negotiable`, `free` | Price in euro, the price as shown, VB flag, "zu verschenken" flag |
| `descriptionSnippet` | The first lines of the description, as shown in the results |
| `postalCode`, `location`, `distanceKm` | Postal code, district or town, and distance from your city |
| `postedAt`, `postedText` | Posted date (ISO) and the original text, for example "Heute, 14:05" |
| `imageUrl`, `imageCount` | Main photo and number of photos |
| `shippingPossible`, `directBuy` | "Versand möglich" and "Direkt kaufen" flags |
| `isPro`, `shopName` | Commercial seller flag and shop name |
| `search`, `searchLocation`, `page`, `scrapedAt` | Which search found it and when |

#### Output example

```json
{
  "adId": "3568052645",
  "url": "https://www.kleinanzeigen.de/s-anzeige/kona-lava-dome-vintage-stahl-mtb-custom-build-26-zoll/3568052645-217-16349",
  "title": "Kona Lava Dome Vintage Stahl MTB, Custom Build, 26 Zoll",
  "price": 350,
  "priceText": "350 €",
  "negotiable": false,
  "postalCode": "80469",
  "location": "Ludwigsvorstadt-Isarvorstadt",
  "distanceKm": 1,
  "imageCount": 13,
  "shippingPossible": false,
  "isPro": false,
  "search": "fahrrad",
  "searchLocation": "München - Bayern"
}
```

The dataset has two views: **Ads** and **Sellers**.

### Tips

- For "only new ads" alerts, schedule a run with **Max pages per search** set to 1 or 2. Results come newest first.
- Very broad searches have hundreds of thousands of ads, but Kleinanzeigen shows only 50 pages. Use a city, a radius or a price range to reach more of them.
- Copy a URL from your browser when you need a filter that is not in the input form, like a category or a car brand. The Actor keeps every filter in the URL.
- Top ads (paid placements) are included once, like on the site.

### Use with AI agents, MCP, Make, Zapier, n8n and the API

#### AI agents and the Apify MCP server

Your AI agent can run this Actor as a tool through the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp). Add this server URL in Claude, Cursor, VS Code or any other MCP client to load only this Actor:

```text
https://mcp.apify.com?tools=northloop-labs/kleinanzeigen-scraper
```

Pass `maxTotalChargeUsd` in `callOptions` to cap what one run may cost. Example prompt: *"Find e-bikes under 800 euro within 20 km of Munich on Kleinanzeigen and list the 10 newest."*

#### Make, Zapier and n8n

Apify has official integrations for [Make](https://docs.apify.com/platform/integrations/make), [Zapier](https://docs.apify.com/platform/integrations/zapier) and [n8n](https://docs.apify.com/platform/integrations/n8n). Use "Run Actor", pick `northloop-labs/kleinanzeigen-scraper`, paste your input as JSON and send the ads to Google Sheets, Airtable, Slack or your database.

#### API

```bash
curl -X POST "https://api.apify.com/v2/acts/northloop-labs~kleinanzeigen-scraper/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"queries": ["iphone 15"], "location": "Berlin", "radiusKm": 10, "maxPagesPerSearch": 2}'
```

Python (`pip install apify-client`):

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("northloop-labs/kleinanzeigen-scraper").call(run_input={"queries": ["thermomix"], "maxPagesPerSearch": 2})
for ad in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(ad["title"], ad["price"], ad["location"])
```

### Data and privacy

The Actor reads only the public search result pages that anyone can open on kleinanzeigen.de without logging in. It does not open seller profiles, does not collect phone numbers and does not contact anyone. Ads can contain personal data, so if you store or process it, make sure you have a legal basis under GDPR.

### Is it legal to scrape Kleinanzeigen?

Collecting public data is generally allowed, but the rules depend on your country and on how you use the data. Use the results for research and analysis, respect Kleinanzeigen's terms and do not republish photos or texts as your own. This is not legal advice.

### FAQ

**Do I need a Kleinanzeigen account?** No.

**Why do I get fewer ads than the site says?** Kleinanzeigen shows at most 50 pages (about 1,250 ads) per search. Narrow the search with a city, radius or price range to get the rest.

**Can I get the full description and seller details?** Not yet. This version reads the result pages only, which keeps it fast and cheap. Tell us on the Issues tab if you need ad detail pages.

**What happens if my budget is too low?** The run stops right away with a clear message and only the start fee is charged.

### More Actors from northloop labs

- [Mercari Japan Scraper](https://apify.com/northloop-labs/mercari-japan-scraper)
- [Best Buy Scraper](https://apify.com/northloop-labs/bestbuy-scraper)
- [Home Depot Scraper](https://apify.com/northloop-labs/home-depot-scraper)
- [Google Maps Leads Scraper](https://apify.com/northloop-labs/google-maps-leads-scraper)
- [Google Trends Scraper](https://apify.com/northloop-labs/google-trends-scraper)

### Feedback

Found a bug or need a field that is missing? Open an issue on the **Issues** tab and we will look at it quickly.

# Actor input Schema

## `queries` (type: `array`):

What to search for, one per line. Example: e-bike, iphone 15.

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

Optional. Kleinanzeigen search or category URLs copied from your browser, with all filters.

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

Optional. Example: Berlin or 80331.

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

Search radius around the city: 0, 5, 10, 20, 30, 50, 100, 150 or 200. 0 = only the city itself.

## `priceMin` (type: `integer`):

Optional minimum price.

## `priceMax` (type: `integer`):

Optional maximum price.

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

Keep all ads, only private sellers or only commercial (PRO) sellers.

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

About 25 ads per page. The site shows at most 50 pages.

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

Stop each search after this many ads.

## `maxResults` (type: `integer`):

Stop the whole run after this many ads.

## `proxyMode` (type: `string`):

Auto uses no proxy and a residential German IP only if Kleinanzeigen blocks.

## Actor input object example

```json
{
  "queries": [
    "fahrrad"
  ],
  "radiusKm": 0,
  "sellerType": "all",
  "maxPagesPerSearch": 5,
  "maxItemsPerSearch": 125,
  "maxResults": 1000,
  "proxyMode": "auto"
}
```

# Actor output Schema

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

No description

## `summary` (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 = {
    "queries": [
        "fahrrad"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("northloop-labs/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 = { "queries": ["fahrrad"] }

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

```

## MCP server setup

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