# Ebay Kleinanzeigen Scraper (`lexis-solutions/ebay-kleinanzeigen`) Actor

The eBay Kleinanzeigen Scraper retrieves public listings and data based on specific search criteria or direct URLs. / Der eBay Kleinanzeigen Scraper ruft öffentliche Anzeigen und Daten basierend auf spezifischen Suchkriterien oder direkten URLs ab.

- **URL**: https://apify.com/lexis-solutions/ebay-kleinanzeigen.md
- **Developed by:** [Lexis Solutions](https://apify.com/lexis-solutions) (community)
- **Categories:** E-commerce, Lead generation
- **Features:** Full permissions
- **Stats:** 650 total users, 29 monthly users, 78.1% runs succeeded, 30 bookmarks
- **User rating**: 4.66 out of 5 stars

## Pricing

from $0.80 / 1,000 listings

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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

## Ebay Kleinanzeigen Scraper

![banner](https://lexis-solutions-apify.fra1.cdn.digitaloceanspaces.com/banners/ebay-kleinanzeigen.png)

### 🔎 What is the Ebay Kleinanzeigen Scraper?

Ebay-Kleinanzeigen is a classified advertising platform in Germany. It is one of the largest classified advertising websites in Germany, with millions of ads posted daily.

The Ebay Kleinanzeigen Scraper is a web scraping tool that allows you to scrape Ebay-Kleinanzeigen search results. This actor uses the provided search query to fetch relevant listings and extracts specific fields of interest.

### 🧾 What data can the Ebay Kleinanzeigen Scraper extract?

The Ebay Kleinanzeigen Scraper can extract the following data from Ebay-Kleinanzeigen search results:

- Title
- Price
- Price history (Monitoring Mode)
- Previous price (Monitoring Mode)
- Price changed flag (Monitoring Mode)
- First seen date (Monitoring Mode)
- Last seen date (Monitoring Mode)
- Days on market observed by this actor (Monitoring Mode)
- Changed fields (Monitoring Mode)
- Size
- Color
- Brand
- Condition
- PriceCurrency
- Address
- Date
- View count (only when **Fetch view count** is enabled; otherwise `null`)
- Image URLs
- Category URLs
- Description
- Seller Name
- Seller URL
- Seller Phone
- Seller Email (from description)
- Seller Phone (from description)
- Company Info

### 💼 What use cases does the Ebay Kleinanzeigen Scraper?

The Ebay Kleinanzeigen Scraper is a web scraping tool used for collecting data from classified ads on Germany's largest classified advertising website. It allows users to scrape data like title, price, location, date of posting, condition, mileage or other details based on the user's need and according to predefined queries.

Use Cases:

- **Market Research**: The tool can be used for conducting market research by scraping ad data from Ebay-Kleinanzeigen to understand what's currently trending, where your competitors are focusing their efforts etc. This information can be useful in making business decisions.
- **Price Comparisons**: It can help users compare prices of similar items or services across different regions on the website.
- **Inventory Management**: With data scraped from Ebay-Kleinanzeigen, businesses can keep track of their inventory and manage when to take actions like buying, selling or delaying based on the information available in the ads.
- **Price Optimization**: By understanding how certain items or services are priced relative to one another, business owners can optimize their pricing strategy.
- **Competitor Analysis**: Businesses can use this tool to analyze competitors' advertising activities and price strategies. This includes understanding how they advertise their products/services on Ebay-Kleinanzeigen and what target demographics they are likely focusing on.
- **Training & Development**: It serves as a great tool for training purposes where one can learn about web scraping, HTML parsing, REST API usage etc., before applying them in real-life projects.

### 📖 How to use the Ebay Kleinanzeigen Scraper?

1. Create a free Apify account
2. Open Ebay Kleinanzeigen Scraper
3. Add either a search URL or a search query
4. Click Start and wait for the results
5. Download the results in JSON, XML or CSV format or connect the actor to your backend via API

### 📥 Input

To run the actor, simply enter either a:

- **Search URL** - the URL of the search you want to scrape (e.g. https://www.kleinanzeigen.de/s-berlin/basecap/k0l3331)

- **Search Query** - the name of the object you want to search for (e.g. Basecap)

- **Maximum number of items** - the maximum number of items to scrape. The actor will stop when it reaches this limit (e.g. 10)

- **Fetch view count** (`fetchViewsCount`) - when enabled, the actor makes an extra request per listing to populate `viewsCount` (how many times the ad was viewed on Kleinanzeigen). When disabled (**default**), `viewsCount` is always `null`.

- **Proxy configuration** - choose between default proxy settings, Apify's RESIDENTIAL proxy or a custom proxy URL

You can customize the search further by using a startURL from a search you did directly on Ebay-Kleinanzeigen. This will also allow you to filter based on location.
If you enter both a start URL and a search query, the actor will use perform both actions.

#### 🔄 Monitoring Mode

The scraper includes a powerful monitoring feature that tracks changes across multiple runs:

- **Monitoring Mode** - Enable to track new, updated, and delisted ads across runs
- **Monitoring Fields** - Specify which fields to monitor for changes (e.g., `["price", "title", "descriptionText"]`)

**How Monitoring Works:**

- **First Run**: Saves all scraped ads to persistent storage and returns all results
- **Subsequent Runs**: Compares current results with previous runs and returns only:
  - **New ads**: Items that didn't exist in previous runs
  - **Updated ads**: Existing items with changes in monitored fields
  - **Delisted ads**: Items that existed before but are no longer available

When Monitoring Mode is enabled, returned dataset items also include observed history fields:

- `firstSeenAt` - The first time this actor observed the listing.
- `lastSeenAt` - The latest time this actor observed the listing.
- `daysOnMarket` - Days since `firstSeenAt`; this is based on actor observations, not an official Kleinanzeigen listing age.
- `previousPrice` - The previously stored price before the current run updated the item.
- `priceChanged` - `true` when the current price differs from the previously stored price.
- `priceHistory` - The prices observed by this actor, with a timestamp for each observed price change.
- `changedFields` - Fields whose current value differs from the previously stored item.

These history fields are generated by comparing the current scrape with data stored from previous actor runs. Kleinanzeigen does not expose complete price history or official first-seen dates on the listing page, so changes that happen between scheduled actor runs may not be detected.

**Monitoring Use Cases:**

- **Price Alerts**: Get notified when prices change on items you're tracking
- **New Listings**: Be the first to know about new items matching your criteria
- **Market Changes**: Track when items are removed or updated
- **Automated Monitoring**: Set up scheduled runs to continuously monitor specific searches

**Example Monitoring Configuration:**

```json
{
  "startUrls": [
    {
      "url": "https://www.kleinanzeigen.de/s-auto-rad-boot/c210"
    }
  ],
  "maxItems": 10,
  "monitoringMode": true,
  "monitoringFields": ["price", "date", "id"]
}
```

### 📤 Output

The results are stored in the default dataset associated with the actor. Each item is an ad, having the following format.

Note: `viewsCount` is only populated when **Fetch view count** (`fetchViewsCount`) is set to `true`. With the default (`false`), it is always `null`.

```json
{
  "url": "https://kleinanzeigen.de/s-anzeige/drykorn-damenpullover-oversized-mit-alpaka-gr-s/2910159582-154-19706",
  "id": "2910159582",
  "title": "Drykorn, Damenpullover Oversized mit Alpaka Gr. S",
  "price": "59.00",
  "priceCurrency": "EUR",
  "art": "Pullover",
  "brand": "Drykorn",
  "color": "Schwarz",
  "condition": "Sehr gut",
  "size": "S (36)",
  "shippingPrice": "5.00",
  "kauferschutzPrice": "3.00",
  "address": "74579 Baden-Württemberg - Fichtenau",
  "date": "02.11.2024",
  "viewsCount": 534,
  "primaryImageURL": "https://img.kleinanzeigen.de/api/v1/prod-ads/images/8a/8a9d30b6-4c49-456b-9798-cd562c688f86?rule=$_59.JPG",
  "imageURLs": [
    "https://img.kleinanzeigen.de/api/v1/prod-ads/images/8a/8a9d30b6-4c49-456b-9798-cd562c688f86?rule=$_59.JPG",
    "https://img.kleinanzeigen.de/api/v1/prod-ads/images/83/8343cc66-a74e-41d0-8911-c08dc130fd98?rule=$_59.JPG",
    "https://img.kleinanzeigen.de/api/v1/prod-ads/images/14/14704c0f-eebc-4240-b122-3fc63f6f261a?rule=$_59.JPG"
  ],
  "categoryURLs": [
    "https://kleinanzeigen.de/",
    "https://kleinanzeigen.de/s-mode-beauty/c153",
    "https://kleinanzeigen.de/s-kleidung-damen/c154"
  ],
  "descriptionText": "Beschreibung\n\nWunderschöner Damenpullover mit Alpaka der Marke Drykorn und Gr. S...\n\nContact:\nRobert Fink\n07420 / 920086 - 15\nfink@zweiradtechnik-zepf.de",
  "sellerName": "Rose St.",
  "sellerURL": "https://kleinanzeigen.de/s-bestandsliste.html?userId=141166157",
  "sellerPhone": "0742092008615",
  "sellerEmailFromDescription": "fink@zweiradtechnik-zepf.de",
  "sellerPhoneFromDescription": "07420 / 920086 - 15",
  "firstSeenAt": "2026-07-28T06:56:50.270Z",
  "lastSeenAt": "2026-07-28T06:56:50.416Z",
  "daysOnMarket": 0,
  "previousPrice": "69.00",
  "priceChanged": true,
  "priceHistory": [
    {
      "price": "69.00",
      "seenAt": "2026-07-27T06:56:50.270Z"
    },
    {
      "price": "59.00",
      "seenAt": "2026-07-28T06:56:50.416Z"
    }
  ],
  "changedFields": ["price"],
  "companyInfo": {
    "companyName": "SanTec GmbH & Co. KG",
    "companyAddress": "Österwieher Str. 274\n33415 Nordrhein-Westfalen - Verl",
    "companyUrl": "http://www.santec-verl.de",
    "companyPhone": "05246503210",
    "openingHours": "Mo - Do:07:30 - 17:30",
    "companyEmails": ["info@unique-personal.de"]
  }
}
```

### How many results can I scrape?

The search uses a pagination system. This means that the actor will keep adding new pages until it reaches the last page of results or it reaches the maximum number of results specified on the input.

### Why use the Ebay Kleinanzeigen Scraper?

- ⚡️ **Fast** - The scraper is fast and efficient, allowing you to scrape items in a programmatic way.

- 🤙 **Easy to use** - The scraper is easy to use and requires no coding knowledge. All you need to do is input the query you want to scrape and the scraper will do the rest.

- ☑️ **Well-Maintained** - The scraper is maintained by the Lexis Solutions team, ensuring that it is always up-to-date and working properly.

- 🔄 **Smart Monitoring** - Built-in monitoring capabilities to track changes across multiple runs, perfect for price alerts and new listing notifications.

### Need to scrape ads from other platforms?

👉 Scrape Google ads with [Google Ads Scraper](https://apify.com/lexis-solutions/google-ads-scraper)

👉 Scrape Bing ads with [Bing Ads Scraper](https://apify.com/lexis-solutions/bing-ads-scraper)

👉 Scrape TikTok ads with [TikTok Ads Scraper](https://apify.com/lexis-solutions/tiktok-ads-scraper)

### FAQ

- **Is Scraping Ebay-Kleinanzeigen Legal?**

  The current scraper only scrapes public data from Ebay-Kleinanzeigen. This means that the data is publicly available and can be accessed by anyone. However, we recommend that you check Ebay-Kleinanzeigen's Terms of Service before using the scraper.

- **How much does it cost?**

  The cost for using the Ebay Kleinanzeigen Scraper is shown on the top of this page. You can also check the Apify Store page for more information.

- **How does the monitoring feature work?**

  The monitoring feature uses persistent storage to track ads across multiple runs. On the first run, it saves all scraped ads. On subsequent runs, it compares the current results with the stored data and returns only new, updated, or delisted items based on your monitoring configuration.

***

👀 p.s.

Got feedback or need an extension?

Lexis Solutions is a [certified Apify Partner](https://apify.com/partners/find/lexis-solutions/review). We can help you with custom solutions or data extraction projects.

Contact us over [Email](mailto:scraping@lexis.solutions) or [LinkedIn](https://www.linkedin.com/company/lexis-solutions)

### Support Our Work 💝

If you're happy with our work and scrapers, you're welcome to leave us a company review [here](https://apify.com/lexis-solutions#reviews) and leave a review for the scrapers you're subscribed to. It will take you less than a minute but it will mean a lot to us!

# Actor input Schema

## `query` (type: `string`):

Search parameter to use.

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

Kleinanzeigen location code to restrict search results by area (e.g. '3386' for Neukölln). Leave empty to search nationwide.

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

URLs to start with.

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

Maximum number of items that will be extracted.

## `fetchViewsCount` (type: `boolean`):

When enabled, the actor makes an extra request per listing to populate viewsCount (how many times the ad was viewed on Kleinanzeigen). When disabled (default), viewsCount is always null.

## `monitoringMode` (type: `boolean`):

Enable monitoring mode to only return new/delisted/updated ads based on previous run outcome. Perfect for daily scheduled runs.

## `monitoringFields` (type: `array`):

List of fields to monitor for changes (e.g., price, title, address). Leave empty to only detect new/delisted ads.

## `debugMode` (type: `boolean`):

Enable debug logging

## `proxy` (type: `object`):

Specify the proxy provider. You can use an Apify proxy, or provide a custom one.

## Actor input object example

```json
{
  "query": "nike",
  "startUrls": [
    {
      "url": "https://www.kleinanzeigen.de/s-bau-handwerk-produktion/c111"
    }
  ],
  "maxItems": 5,
  "fetchViewsCount": false,
  "monitoringMode": false,
  "debugMode": false,
  "proxy": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (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 = {
    "query": "nike",
    "startUrls": [
        {
            "url": "https://www.kleinanzeigen.de/s-bau-handwerk-produktion/c111"
        }
    ],
    "proxy": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("lexis-solutions/ebay-kleinanzeigen").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 = {
    "query": "nike",
    "startUrls": [{ "url": "https://www.kleinanzeigen.de/s-bau-handwerk-produktion/c111" }],
    "proxy": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("lexis-solutions/ebay-kleinanzeigen").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 '{
  "query": "nike",
  "startUrls": [
    {
      "url": "https://www.kleinanzeigen.de/s-bau-handwerk-produktion/c111"
    }
  ],
  "proxy": {
    "useApifyProxy": false
  }
}' |
apify call lexis-solutions/ebay-kleinanzeigen --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,lexis-solutions/ebay-kleinanzeigen"
        }
    }
}
```

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/SwhBn0fFKKWBVaqyO/builds/CqG6CCWjo4pmLkgUn/openapi.json
