# Kleinanzeigen.de Scraper – Ads by Keyword, Price & Location (`everydata/kleinanzeigen-search-scraper`) Actor

Scrape Kleinanzeigen.de (formerly eBay Kleinanzeigen) ads by keyword or category around a city or ZIP, with price range, seller type and sorting: title, price, location, distance, posting time, image and URL. Up to 50 pages per run.

- **URL**: https://apify.com/everydata/kleinanzeigen-search-scraper.md
- **Developed by:** [everydata.io](https://apify.com/everydata) (community)
- **Categories:** E-commerce
- **Security:** 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.de Scraper – Ads by Keyword, Price & Location

Scrape Kleinanzeigen.de (formerly eBay Kleinanzeigen) ads by keyword or category around a city or ZIP, with price range, seller type and sorting: title, price, location, distance, posting time, image and URL. Up to 50 pages per run.

### What does it do?

Searches **Kleinanzeigen.de** like the website does: by keyword or category, around a city or ZIP code with a radius,
with price range, private or commercial sellers, offer or wanted ads, and sorting. Every ad comes with title, price,
price type, location, distance, posting time, image and URL.

### Use cases

- Get the newest ads for what you buy or resell, e.g. scheduled every hour
- Analyse second-hand prices for a product in Germany
- Watch a category in your region for new offers

### How to use it

1. Enter your keyword or category ID, location and radius (one run can take many).
2. Start the run and download the results as JSON, CSV or Excel, or get them through the Apify API.
3. Schedule the Actor for daily monitoring, or connect it to Make, Zapier, n8n or Google Sheets.

### Input example

```json
{
  "keyword": "fahrrad",
  "location": "Berlin",
  "radius": "10",
  "maxPages": 1
}
```

### Output example

One result (shortened):

```json
{
  "productDescription": "AHOOGA A-MAX ALFINE 8 • Klapprad • Faltrad • Stadtfahrrad • Citybike • Alltagsfahrrad ideal auch für Wohnmobil • Ruby RED / ROT",
  "price": 1799,
  "priceType": "Festpreis",
  "zip": "13088",
  "location": "Weissensee",
  "distanceKm": 8,
  "postedAt": null,
  "sellerType": "commercial",
  "dpUrl": "https://www.kleinanzeigen.de/s-anzeige/ahooga-a-max-alfine-8-klapprad-faltrad-stadtfahrrad-citybike-alltagsfahrrad-ideal-auch-fuer-wohnmobil-ruby-red-rot/349..."
}
```

### Pricing

Pay per result, no monthly fee:

- **$1.20 per 1,000 ads**

Failed searches are free. Set a maximum cost per run in the run options and the Actor stops there.

### FAQ

**Do I need proxies or an account?** No. Blocking, retries and proxies are handled for you.

**How fresh is the data?** It is fetched live when the Actor runs.

**Is it legal?** The Actor only reads publicly visible pages. You are responsible for how you use the data,
including the site's terms and data protection law such as the GDPR.

**Something is missing or broken?** Open an issue on the Issues tab or write to support@everydata.io.

### Prefer a REST API?

The same data is available as a plain JSON API at [everydata.io](https://everydata.io), with a free plan.

# Actor input Schema

## `keyword` (type: `string`):

Search term, e.g. fahrrad. Keyword or category is required.

## `categoryId` (type: `integer`):

Kleinanzeigen category id, e.g. 217 = Fahrräder & Zubehör

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

City or zip code, e.g. Berlin or 80331

## `radius` (type: `string`):

Radius around the location

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

Minimum price in EUR

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

Maximum price in EUR

## `sortBy` (type: `string`):

Sort order of the results

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

Only private or only commercial sellers

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

Offers or wanted ads

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

25 ads per page. Each page is one billed event.

## Actor input object example

```json
{
  "keyword": "fahrrad",
  "sortBy": "newest",
  "maxPages": 3
}
```

# Actor output Schema

## `results` (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 = {
    "keyword": "fahrrad"
};

// Run the Actor and wait for it to finish
const run = await client.actor("everydata/kleinanzeigen-search-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 = { "keyword": "fahrrad" }

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

```

## MCP server setup

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