# Mobile.de Scraper (`datahamster/mobile-de-scraper`) Actor

Mobile.de scraper for cars, motorbikes, vans and trucks: paste any mobile.de search URL and get price, mileage, first registration, power, fuel, gearbox, mobile.de price rating with its EUR bands and dealer name. Monitor mode alerts on new listings and price drops of X% or more.

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

## Pricing

from $0.80 / 1,000 result items

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

## Mobile.de Scraper

Get told when a car on mobile.de drops in price by at least the percentage you set. Save any mobile.de search as a monitor task and each run returns only new listings and listings whose price fell at least `minPriceDropPercent` below the last price you were told about, with the old price in `previous.price`. Small cuts add up until they cross your line. The same actor also scrapes any search URL into flat rows: price, mileage, first registration, power in kW and PS, fuel, gearbox, owners, inspection date, mobile.de's price rating with its EUR bands, dealer name and rating, zip and city.

**Try it:** the prefilled example returns 20 rows in 40 to 120 seconds (the Unblocker's speed varies) and costs about $0.023: $0.020 in results plus about $0.003 Apify usage for the one search page.

Coverage: mobile.de serves 20 results per page plus up to 4 promoted slots on page 1. A search URL is read up to `maxPagesPerSearch` pages (up to 100). mobile.de is behind Akamai bot protection, so every page goes through Apify's Web Unblocker: a page takes 20 to 80 seconds and about $0.0015 of platform usage, which you pay to Apify on top of the result price.

**Why this one** (compared with the most-used mobile.de actor in the Store, blackfalcondata/mobile-de-scraper, checked 2026-11-06):

- **Price drop alerts with a percentage threshold.** `priceChangeAlerts: "drops"` with `minPriceDropPercent: 5` returns a known car only when its price is at least 5% below the last price you were told about. Cuts of 2% and then 4% are kept quiet and the second one is reported, because together they cross the line. The most-used actor's incremental mode reports changed listings but has no minimum-drop setting.
- **Every monitor run checks the same depth.** Each run reads all `maxPagesPerSearch` pages of the search, so a price cut on page 4 is found as surely as one on page 1. Sort the search on the site (for example by price) and the monitor keeps that order.
- **One switch for "good deals only".** `minPriceRating: "GOOD_PRICE"` keeps only listings mobile.de itself rates "Guter Preis" or "Sehr guter Preis", and dropped listings are not charged.
- **No phone numbers, no private names.** Private sellers come back with zip and city only. Dealers keep the company name, address and rating, and phone numbers and e-mails are removed from every description.

It is not the cheapest option: see Pricing for the real cost with Apify usage.

### What you get

Real rows from the example dataset (BMW 525, page 1):

| title | price | rating | first reg. | km | PS | seller |
|---|---|---|---|---|---|---|
| BMW 525 d xDrive*AUTO*HUD*PANO*BI-XN*NAV*TMP*LED*AHK | 14,599 € | VERY_GOOD_PRICE | 04/2016 | 167,994 | 218 | dealer: Yildiz Automobile |
| BMW 525d xDrive Touring Aut. Bi-Xenon AHK | 9,490 € | REASONABLE_PRICE | 04/2014 | 206,000 | 218 | dealer: CARZIMI |
| BMW 525d xDrive Touring Luxury Line | 15,380 € | GOOD_PRICE | 02/2015 | 128,650 | 218 | private |
| BMW 525d Touring G31 Diesel Scheckheftgepflegt | 18,400 € | GOOD_PRICE | 08/2019 | 82,379 | 231 | private |
| BMW 525 d Limousine Driving+ | 21,400 € | HIGH_PRICE | 07/2015 | 124,995 | 218 | dealer: AUTOHAUS STERN |

One row (shortened):

```json
{
  "id": "49976768049536",
  "url": "https://suchen.mobile.de/fahrzeuge/details.html?id=49976768049536",
  "title": "BMW 525 d xDrive*AUTO*HUD*PANO*BI-XN*NAV*TMP*LED*AHK",
  "make": "BMW", "model": "525", "category": "Kombi",
  "price": 14599, "currency": "EUR", "priceLabel": "14.599 €",
  "priceRating": "VERY_GOOD_PRICE", "priceRatingLabel": "Sehr guter Preis",
  "priceRatingThresholds": [11300, 14700, 15800, 17500, 18800, 20900],
  "firstRegistration": "04/2016", "firstRegistrationYear": 2016, "mileageKm": 167994,
  "powerKw": 160, "powerPs": 218, "fuel": "Diesel", "gearbox": "Automatik", "engineCcm": 1995,
  "previousOwners": 2, "nextInspection": "Neu", "accidentFree": true,
  "zip": "50829", "city": "Köln",
  "sellerType": "dealer", "dealerName": "Yildiz Automobile", "dealerRating": 5, "dealerRatingCount": 31,
  "placement": "regular", "isPromoted": false, "rank": 6
}
```

With `includeDetails: true` rows also get `description` (plain text, phone numbers and e-mails removed), `features` (equipment list), all `images`, `createdAt`, `condition`, `dealerAddress`, CO2 and consumption in `params`. `sellerType` is `dealer`, `private` or `commercial` (a business without a dealer account; treated like a private seller). Every row has `createdAt`, the listing's creation time (read from mobile.de's listing id; null for old short ids). `onlineSince` ("Inserat online seit") is filled on newest-first result pages; a relisted ad shows a later date there.

### Input

| Field | Meaning | Default |
|---|---|---|
| `startUrls` | mobile.de search URLs (set filters on the site, copy the URL) and listing URLs | the BMW 525 example |
| `maxPagesPerSearch` | Result pages per search URL, 20 listings each | `5` |
| `minPriceRating` | Keep only this price rating or better | `any` |
| `includeDetails` | Open every listing page for description, equipment, photos | `false` |
| `includePromoted` | Keep the paid slots above page 1 results | `true` |
| `maxItems` | Stop the run after this many rows, shared between search URLs | `100` |
| `mode` | `scrape`, or `monitor` for new listings and price drops | `scrape` |
| `priceChangeAlerts` | Monitor: `drops`, `any` or `off` | `drops` |
| `minPriceDropPercent` | Monitor: smallest drop to report, in percent | `0` |
| `monitorStateId`, `webhookUrl`, `telegramBotToken`, `telegramChatId` | Monitor state key and alert targets | empty |

### Monitor mode

Save the input as a task and set:

```json
{
  "mode": "monitor",
  "monitorStateId": "golf-berlin",
  "startUrls": ["https://suchen.mobile.de/fahrzeuge/search.html?isSearchRequest=true&ms=25200%3B%3B%3B&s=Car&vc=Car"],
  "maxPagesPerSearch": 3,
  "minPriceDropPercent": 5,
  "telegramBotToken": "...", "telegramChatId": "..."
}
```

Put the task on a schedule, for example every 2 hours.

- Every run reads `maxPagesPerSearch` pages of each search URL, in the URL's own sort order (price, mileage, ...), or newest first when the URL has no sort. A run costs that many pages of Apify usage (about $0.003 each) plus $0.005 for the monitor check.
- A listing is new when its id is not in the task's history and it was created no more than 3 hours before the newest listing the previous run saw in that search. The creation time comes from the listing id (exact to the second), so this holds for any sort: an older car that slides into the pages you read (because a pricier one sold, say) is recorded silently, not alerted.
- A known listing comes back with `changeType: "changed"` and `previous.price` when its price is below the last reported price by at least `minPriceDropPercent` (or on any change, with `priceChangeAlerts: "any"`).
- The reference price only moves when you are told about a change. If a car goes up from 10,000 to 12,000 € (not reported in `drops` mode) and later down to 11,000 €, that is still 10% above the last price you were told, so nothing is reported until it falls below 10,000 € (minus your threshold). Use `priceChangeAlerts: "any"` if you need every move.
- The first run of a search is a free baseline: it records and returns nothing (one monitor-check, `emptyReason: "baseline"`). Changing the URL or the depth starts a new baseline.
- Promoted slots are skipped in monitor mode: they rotate between runs and would look new every time.
- If a run dies, later runs of the same task end as `overlapping_run` without charging until that run's timeout passes; or give the task a new `monitorStateId`.

### Pricing

| Event | Price |
|---|---|
| result | $0.001 per listing ($1.00 per 1,000) |
| monitor-check | $0.005 per monitor run |
| change | $0.001 per new listing or price drop in monitor mode |

Apify Store discounts: SILVER -10%, GOLD and higher -20%. You pay only for pushed rows; listings dropped by the rating filter or found twice are free.

Apify platform usage is billed by Apify on top, and on this site it is not small. mobile.de is behind Akamai, so every page goes through Apify's Web Unblocker: about $0.003 per search page (20 to 24 rows) and about $0.002 to $0.003 more per row with `includeDetails`. All in, 1,000 rows cost about $1.15 without details and about $3.50 to $4 with details. The most-used actor's $0.59 per 1,000 includes its usage, so it is about 2 times cheaper without details and about 6 times cheaper with details. Choose this actor for the drop-threshold monitor, not for price.

**Found it useful?** A short review on the Store page helps other people find this actor.

### Related actors

- [AutoScout24 Listings](https://apify.com/datahamster/autoscout24-listings) for cars in nine European markets.
- [Kleinanzeigen Listings](https://apify.com/datahamster/kleinanzeigen-listings) for German classifieds.
- [Willhaben Listings](https://apify.com/datahamster/willhaben-at-listings) for Austrian cars and classifieds.

### Limits

- Pages are slow (20 to 80 s through the Unblocker); a 5-page search takes a few minutes, with `includeDetails` longer.
- `priceRatingThresholds` and `onlineSince` exist only where mobile.de shows them; many listings have no price rating.
- Phone numbers are never returned, also not for dealers.
- A price rise is never reported in `drops` mode and does not move the reference price, so a later fall back to a level above the last reported price is not an alert (see Monitor mode).
- More `maxPagesPerSearch` in monitor mode means more usage on every run.

### FAQ

**Do I need a mobile.de account?** No. The actor reads the public search and listing pages.

**Why did a run end as blocked?** mobile.de refused every page even through the Unblocker. `MOBILE_DE_STATS` in the run's key-value store lists refused inputs and the time of each request.

### Changelog

- 0.1: initial release: search and listing URLs, parsed specs, price rating filter and bands, optional listing pages, monitor mode for new listings and price drops with a threshold.

# Actor input Schema

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

Stop after this many results (you are charged only for pushed items)

## `mode` (type: `string`):

scrape = full results; monitor = only new/changed items since the previous run of this task

## `monitorStateId` (type: `string`):

Optional state id when not running as a saved task (monitor mode)

## `webhookUrl` (type: `string`):

POST a change summary here in monitor mode

## `telegramBotToken` (type: `string`):

Optional: bot token for monitor-mode change summaries

## `telegramChatId` (type: `string`):

Optional: chat id that receives monitor-mode summaries

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

Search URLs copied from suchen.mobile.de after setting any filters on the site (make, model, price, year, mileage, fuel, zip and radius, seller type, ...), or single listing URLs (details.html?id=... or /auto-inserat/.../<id>.html). Several URLs run in one go; a car found by two searches is returned once.

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

Result pages to read per search URL, 20 listings each (plus up to 4 promoted slots on page 1). Example: 5 = up to 100 listings. Monitor mode reads all of them on every run (about $0.003 Apify usage per page).

## `minPriceRating` (type: `string`):

Keep only listings whose mobile.de price-rating badge is this good or better. Listings without a rating are dropped when a filter is set. You are not charged for dropped listings.

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

true = also read each listing's own page: full description (phone numbers and e-mails removed), equipment list, all photos, creation date, condition, dealer address, CO2 and consumption. One extra request per listing, so slower and more platform usage.

## `includePromoted` (type: `boolean`):

mobile.de puts up to 4 paid listings above the results of page 1. They match your filters; they are flagged isPromoted. false = skip them. Monitor mode always skips them (they rotate between runs).

## `priceChangeAlerts` (type: `string`):

Monitor mode only. drops = a known listing is returned again when its price falls below the last price you were told about (rises are ignored and do not move that reference); any = every price change; off = new listings only. Monitor mode keeps the sort order of your URL, or reads newest first when it has none.

## `minPriceDropPercent` (type: `integer`):

Monitor mode with price drops: report a drop only when it is at least this many percent below the last reported price. Example: 5. Smaller drops add up until they reach it.

## Actor input object example

```json
{
  "maxItems": 20,
  "mode": "scrape",
  "startUrls": [
    "https://suchen.mobile.de/fahrzeuge/search.html?isSearchRequest=true&ms=3500%3B20%3B%3B&s=Car&vc=Car"
  ],
  "maxPagesPerSearch": 1,
  "minPriceRating": "any",
  "includeDetails": false,
  "includePromoted": true,
  "priceChangeAlerts": "drops",
  "minPriceDropPercent": 0
}
```

# Actor output Schema

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

All pushed rows (dataset, JSON)

## `resultsTable` (type: `string`):

Dataset in the Console viewer

## `runSummary` (type: `string`):

RUN_SUMMARY record

# 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 = {
    "maxItems": 20,
    "startUrls": [
        "https://suchen.mobile.de/fahrzeuge/search.html?isSearchRequest=true&ms=3500%3B20%3B%3B&s=Car&vc=Car"
    ],
    "maxPagesPerSearch": 1
};

// Run the Actor and wait for it to finish
const run = await client.actor("datahamster/mobile-de-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 = {
    "maxItems": 20,
    "startUrls": ["https://suchen.mobile.de/fahrzeuge/search.html?isSearchRequest=true&ms=3500%3B20%3B%3B&s=Car&vc=Car"],
    "maxPagesPerSearch": 1,
}

# Run the Actor and wait for it to finish
run = client.actor("datahamster/mobile-de-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 '{
  "maxItems": 20,
  "startUrls": [
    "https://suchen.mobile.de/fahrzeuge/search.html?isSearchRequest=true&ms=3500%3B20%3B%3B&s=Car&vc=Car"
  ],
  "maxPagesPerSearch": 1
}' |
apify call datahamster/mobile-de-scraper --silent --output-dataset

```

## MCP server setup

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