# Immowelt.de Real Estate Scraper (Germany) (`stone_jadex/immowelt-de-scraper`) Actor

Public Immowelt.de property listings from search results: price, area, rooms, city, zip, energy, broker, photos, and optional detail enrichment. $0.50 per 1,000 listings, no start fee.

- **URL**: https://apify.com/stone_jadex/immowelt-de-scraper.md
- **Developed by:** [Stone Jade](https://apify.com/stone_jadex) (community)
- **Categories:** Real estate, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.43 / 1,000 list-tier listings

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

## Immowelt.de Real Estate Scraper (Germany)

Extract structured German property listings from **Immowelt.de** directly into JSON, CSV, Excel, or API pipelines. Collect asking rents and sale prices, living space (`area`), room counts (`rooms`), floor, city, ZIP, district, street, energy class, broker/agent details, private-owner flags, photos, and descriptions—with **zero run-start fees** and lightweight 256 MB HTTP execution.

***

### Overview & Key Features

**Immowelt.de Real Estate Scraper (Germany)** decodes Immowelt's server-rendered `__UFRN_FETCHER__` payloads (LZ-String `classified-serp-init-data` and detail payloads) across search result URLs (`/liste/...` or `/suche/...`) and direct property expose URLs (`/expose/<uuid>`).

Because Immowelt's SSR soft-caches search pagination parameters (~30 unique cards per search URL), passing an empty `startUrls` input automatically seeds **45 major German city rental searches** (starting with Berlin, Munich, Hamburg, Cologne, and Frankfurt) so large runs can scale past 1,000 listings without failing on soft-cached page 2 responses.

#### Key Capabilities

- **Half the cost of legacy scrapers, $0.00 start fee**: Both list-tier (`listing`) and detail-tier (`listing-detail`) events cost **$0.0005** per result (**$0.50** per 1,000 listings on the Free tier, dropping to **$0.425**/1k on Gold/Platinum/Diamond), versus `$1.01` per 1,000 results with `$0.01` start fees on competing Actors like `igolaizola`.
- **Rich list tier + optional detail fallback**: List search cards already include `exposeId`, `classifiedId`, `title`, `price`, `currency`, `area`, `rooms`, `floor`, `city`, `zip`, `district`, `street`, `energy`, `broker`, `agent`, `isPrivateOwner`, `photos`, and `description` snippet. When `scrapeDetails` is enabled and a detail page encounters a Cloudflare challenge or HTTP error, the Actor preserves the list row (with `detailError`) and charges only `listing`.
- **Smart ID-stall soft-cache detection**: Pagination only stops when consecutive pages return stalled listing IDs (zero fresh IDs or `>= 90%` overlap with `<= 10%` fresh cards)—never prematurely halting just because SSR metadata reports `page: 1`.
- **Built-in privacy protection & strict `robots.txt` compliance**: Purely private seller phones (`isPrivateOwner: true`) are stripped so only public business brokerage phone numbers are kept. Disallowed `robots.txt` paths (`/classified-search`, `/buchung/`, `/liste/getlistitems`) are refused before requesting.

#### Common Use Cases

- **German rental & purchase price benchmarking**: Track asking rents and purchase prices across Berlin, Munich, Hamburg, Cologne, Frankfurt, Düsseldorf, Stuttgart, and 38 additional German cities.
- **Brokerage vs. private-owner market share**: Segment listings by `broker`, `agent`, and `isPrivateOwner` across districts (`district`, `zip`, `city`).
- **Energy efficiency & stock analysis**: Analyze EPC `energy` ratings alongside `area`, `rooms`, `floor`, and asking price per square metre.
- **Multi-city automated pipelines**: Run scheduled extractions via Apify Schedules or Python/Node.js `ApifyClient` webhooks into BigQuery, PostgreSQL, or Airtable.

***

### Input Configuration

All input fields are optional. Empty `startUrls` seeds 45 major German city apartment-rent searches starting with Berlin (`maxItems: 50` by default).

| Parameter | Type | Default | Constraints | Description |
| --- | --- | --- | --- | --- |
| `startUrls` | `array<object \| string>` | 45 DE city rental seeds | `/liste/...`, `/suche/...`, or `/expose/<uuid>` on `immowelt.de` | Public Immowelt search URLs or expose URLs. Empty input seeds 45 major German cities (Berlin first). |
| `maxItems` | `integer` | `50` | Min `1`, Max `2000` | Maximum number of unique charged listings to store across all seeds before stopping cleanly. |
| `maxPages` | `integer` | `null` | Min `1`, Max `2000` | Optional cap on search pages fetched per seed URL (~30 cards per page; SSR soft-cache typically yields one unique page per URL). |
| `startPage` | `integer` | `1` | Min `1`, Max `2000` | First search page number when a start URL does not already specify `?page=` or `?sp=`. |
| `scrapeDetails` | `boolean` | `false` | `true` / `false` | Visit each listing's `/expose/<uuid>` page for full `description`, `photos`, and public agency `phones`. Charged as `listing-detail` instead of `listing`. Failed detail fetches fall back to `listing` with `detailError`. |
| `requestDelayMs` | `integer` | `1200` | Min `1200` | Minimum interval in milliseconds between HTTP request starts. Raised automatically if `robots.txt` declares a higher `Crawl-delay`. |
| `concurrency` | `integer` | `1` | Min `1`, Max `3` | Number of requests in flight simultaneously (still respects `requestDelayMs` start spacing). |
| `maxRunSeconds` | `integer` | `3600` | Min `30` | Graceful runtime cap in seconds. Writes `OUTPUT` and appends an uncharged `run-notice` row before platform timeout. |
| `proxyConfiguration` | `object` | `{ "useApifyProxy": false }` | Apify Proxy config | Direct connection by default. If a `RESIDENTIAL` proxy group is configured, total proxy traffic is hard-capped at **5 MB per run** (not user-tunable). |
| `useProxyFallback` | `boolean` | `false` | `true` / `false` | Stay on direct connection until repeated `403`/`429` blocks occur, then switch to the configured proxy. Recommended whenever using residential proxies. |
| `allowDetailOnResidential` | `boolean` | `false` | `true` / `false` | Keep `/expose/` detail requests on a direct connection even when a residential proxy is configured; enable only if detail requests should also count against the 5 MB cap. |

#### Example 1: Berlin Rental Apartments (List Tier)

Fast list-tier extraction of up to 50 apartments for rent in Berlin directly from the public search page:

```json
{
  "startUrls": [
    {
      "url": "https://www.immowelt.de/liste/berlin/wohnungen/mieten?d=true&sd=DESC&sf=RELEVANCE&sp=1"
    }
  ],
  "maxItems": 50,
  "maxPages": 2,
  "startPage": 1,
  "scrapeDetails": false,
  "requestDelayMs": 1200,
  "concurrency": 1,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

#### Example 2: Multi-City Searches & Direct Expose URL (Detail Tier)

Combine multiple German city searches with a direct `/expose/<uuid>` URL and `scrapeDetails: true` to gather up to 200 enriched listings:

```json
{
  "startUrls": [
    {
      "url": "https://www.immowelt.de/expose/f0fd93be-188b-4ec9-8823-41aa00c9c922"
    },
    {
      "url": "https://www.immowelt.de/liste/berlin/wohnungen/mieten?d=true&sd=DESC&sf=RELEVANCE&sp=1"
    },
    {
      "url": "https://www.immowelt.de/liste/muenchen/wohnungen/mieten?d=true&sd=DESC&sf=RELEVANCE&sp=1"
    },
    {
      "url": "https://www.immowelt.de/liste/hamburg/wohnungen/mieten?d=true&sd=DESC&sf=RELEVANCE&sp=1"
    }
  ],
  "maxItems": 200,
  "scrapeDetails": true,
  "requestDelayMs": 1500,
  "concurrency": 2,
  "maxRunSeconds": 1800,
  "useProxyFallback": true,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

***

### Output Data & Dataset Schema

#### Preview Table

The table below shows sample rows based on the Actor's `2026-10-26` test fixtures alongside illustrative examples. Actual fields vary by listing.

| Expose ID | Title | Price | Currency | Area (m²) | Rooms | City | Broker |
| --- | --- | ---: | --- | ---: | ---: | --- | --- |
| `f0fd93be-188b-4ec9-8823-41aa00c9c922` | Zentral & voll möbliert - Attraktive 2-Zimmer-Wohnung | `1,255` | `EUR` | `55.7` | `2` | `Berlin` | `Müller Merkle Immobilien GmbH` |
| `aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee` | Private owner sample apartment (illustrative) | `980` | `EUR` | `46` | `2` | `Berlin` | `null` (`isPrivateOwner: true`) |

#### Illustrative JSON Output Example

The JSON record below matches `.actor/dataset_schema.json` using the `f0fd93be-188b-4ec9-8823-41aa00c9c922` Berlin fixture:

```json
{
  "exposeId": "f0fd93be-188b-4ec9-8823-41aa00c9c922",
  "classifiedId": "26FJYQW6W6Q5",
  "title": "Zentral & voll möbliert - Attraktive 2-Zimmer-Wohnung",
  "price": 1255,
  "currency": "EUR",
  "area": 55.7,
  "rooms": 2,
  "floor": "EG",
  "city": "Berlin",
  "zip": "12043",
  "district": "Neukölln",
  "street": "Donaustraße 42",
  "energy": "C",
  "broker": "Müller Merkle Immobilien GmbH",
  "agent": "Frau Leonie Klein",
  "isPrivateOwner": false,
  "phones": [],
  "photos": [
    "https://mms.immowelt.de/7/e/4/4/7e445be7-41cf-44ef-a615-09d29ff5b9cd.jpg",
    "https://mms.immowelt.de/d/b/a/7/dba78b77-9ae3-4dfc-bc96-4ac96daf4f6a.jpg"
  ],
  "description": "Willkommen in Ihrem neuen Zuhause im vielseitigen Objekt \"Alte Post\" - einem modernen Mix aus Wohnen und Gewerbe in urbaner Lage...",
  "url": "https://www.immowelt.de/expose/f0fd93be-188b-4ec9-8823-41aa00c9c922",
  "page": 1,
  "position": 1,
  "listUrl": "https://www.immowelt.de/liste/berlin/wohnungen/mieten?d=true&sd=DESC&sf=RELEVANCE&sp=1",
  "tier": "list",
  "scrapedAt": "2026-11-23T00:00:00.000Z"
}
```

When a run truncates (`maxItems`, `max-charge-reached`, `run-time-limit`, `proxy-budget`, `cloudflare-challenge`, `empty-page`, or `errors`), one uncharged notice row is appended:

```json
{
  "recordType": "run-notice",
  "truncatedAfter": 50,
  "reason": "maxItems"
}
```

#### Full Dataset Field Reference

Every property declared in `.actor/dataset_schema.json` is listed below:

| Field | Type | Tier | Description |
| --- | --- | --- | --- |
| `exposeId` | `string \| null` | List, Detail | Stable Immowelt expose UUID used in `/expose/` URLs (primary deduplication key). |
| `classifiedId` | `string \| null` | List, Detail | Short classified ID from search result cards. |
| `title` | `string \| null` | List, Detail | Listing headline as published. |
| `price` | `number \| null` | List, Detail | Rent or sale price amount as published. |
| `currency` | `string \| null` | List, Detail | Currency code (`"EUR"` by default). |
| `area` | `number \| null` | List, Detail | Living area in square metres (`livingSpace`). |
| `rooms` | `number \| null` | List, Detail | Number of rooms (`numberOfRooms`). |
| `floor` | `string \| null` | List, Detail | Floor label as published (e.g. `"EG"`, `"2. OG"`). |
| `city` | `string \| null` | List, Detail | City name (e.g. `"Berlin"`). |
| `zip` | `string \| null` | List, Detail | German postal code (e.g. `"12043"`). |
| `district` | `string \| null` | List, Detail | City district when published (e.g. `"Neukölln"`). |
| `street` | `string \| null` | List, Detail | Street and house number when published. |
| `energy` | `string \| null` | List, Detail | Energy certificate class (`"A+"`–`"H"`, e.g. `"C"`). |
| `broker` | `string \| null` | List, Detail | Real estate agency / brokerage company name. |
| `agent` | `string \| null` | List, Detail | Contact person name when published. |
| `isPrivateOwner` | `boolean \| null` | List, Detail | `true` for private owners; `false` for commercial agencies; `null` when unknown. |
| `phones` | `array<string> \| null` | List, Detail | Public business/agency phone numbers; always `[]` for private sellers (`isPrivateOwner: true`). |
| `photos` | `array<string> \| null` | List, Detail | Array of public listing photo URLs (`mms.immowelt.de`). |
| `description` | `string \| null` | List, Detail | Listing description from the card or enriched from the expose page. |
| `url` | `string \| null` | List, Detail | Canonical public `/expose/<uuid>` URL. |
| `page` | `integer \| null` | List, Detail (from list) | Declared search page number. |
| `position` | `integer \| null` | List, Detail (from list) | One-based card position on the search page. |
| `listUrl` | `string \| null` | List, Detail | Search URL (with `?sp=N` or `?page=N`) where the card was discovered, or direct expose URL. |
| `tier` | `string \| null` | List, Detail | Extraction tier: `"list"` or `"detail"`. |
| `scrapedAt` | `string \| null` | List, Detail | ISO 8601 UTC timestamp when the listing was parsed. |
| `detailError` | `string \| null` | List (fallback) | Error string (e.g. `"cloudflare-challenge"`) when `scrapeDetails: true` failed and the list row was preserved. |
| `recordType` | `string \| null` | Run-notice | Set to `"run-notice"` on the uncharged truncation row; absent on listing rows. |
| `truncatedAfter` | `integer \| null` | Run-notice | Count of charged listing rows pushed before truncation. |
| `reason` | `string \| null` | Run-notice | Truncation stop reason (`maxItems`, `max-charge-reached`, `run-time-limit`, `proxy-budget`, `cloudflare-challenge`, `empty-page`, or `errors`). |

#### Dataset Views & Key-Value Store Summary

- **Dataset Views**: Includes **Overview** (`overview` — `exposeId`, `title`, `price`, `currency`, `area`, `rooms`, `city`, `zip`, `energy`, `broker`, `tier`, `url`) and **Run notices** (`notices`).
- **Key-Value Store — `OUTPUT`**: Writes a structured `OUTPUT` summary containing `seeds`, `pushed`, `duplicatesSkipped`, `pagesFetched`, `siteTotalEntries`, `softCacheHits`, `unavailableFields`, `http` transfer/proxy counters, `robots`, `robotsDisallowedHits`, `errors`, `stopReason`, and `truncated`.

***

### Pricing & Apify Store Tier Discounts

This Actor uses **Pay-Per-Event (PPE)** billing in **USD** (live pricing verified `2026-11-23`) with **no run-start fee** (`$0.00`). Apify Store subscription tiers automatically apply **5% to 15% discounts** on every event:

| Event | Description | Free | Bronze (5% off) | Silver (10% off) | Gold (15% off) | Platinum (15% off) | Diamond (15% off) |
| --- | --- | ---: | ---: | ---: | ---: | ---: | ---: |
| `listing` *(primary)* | One Immowelt listing parsed from a public search results page (no detail visit) | `$0.0005` (`$0.50`/1k) | `$0.000475` (`$0.475`/1k) | `$0.00045` (`$0.45`/1k) | `$0.000425` (`$0.425`/1k) | `$0.000425` (`$0.425`/1k) | `$0.000425` (`$0.425`/1k) |
| `listing-detail` | One listing enriched from its public detail page (replaces `listing`, never added) | `$0.0005` (`$0.50`/1k) | `$0.000475` (`$0.475`/1k) | `$0.00045` (`$0.45`/1k) | `$0.000425` (`$0.425`/1k) | `$0.000425` (`$0.425`/1k) | `$0.000425` (`$0.425`/1k) |

#### Cost Comparison & Billing Guarantees

- **50% cheaper than `igolaizola`**: At `$0.0005` per listing (`$0.50` per 1,000 results on Free, `$0.425` on Gold/Platinum/Diamond) with `$0.00` start fee, 1,000 Immowelt listings cost **$0.50**—less than half the **$1.01** per 1,000 results charged by `igolaizola` (`$0.001` × 1,000 + `$0.01` start fee).
- **No double-charging**: When `scrapeDetails` succeeds, `listing-detail` replaces `listing`; if a detail request fails or hits a challenge, the list row is saved and charged once at `listing`.
- **Zero charge on non-results**: Duplicate `exposeId`s, uncharged `run-notice` rows, and failed runs with zero scraped listings incur **$0.00**.
- Review the live **Pricing** tab in Apify Console for any separately listed platform compute or storage usage.

***

### API & SDK Quickstart

Run **Immowelt.de Real Estate Scraper (Germany)** (`Stone_JadeX/immowelt-de-scraper`) programmatically using JavaScript or Python.

#### JavaScript (Node.js) — `ApifyClient`

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({
    token: process.env.APIFY_TOKEN,
});

const run = await client.actor('Stone_JadeX/immowelt-de-scraper').call({
    startUrls: [
        { url: 'https://www.immowelt.de/liste/berlin/wohnungen/mieten?d=true&sd=DESC&sf=RELEVANCE&sp=1' },
    ],
    maxItems: 50,
    scrapeDetails: false,
    requestDelayMs: 1200,
    concurrency: 1,
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
const listings = items.filter((row) => row.recordType !== 'run-notice');
console.log(`Collected ${listings.length} Immowelt listings`);
for (const item of listings.slice(0, 5)) {
    console.log(item.exposeId, item.title, item.price, item.currency, item.area, item.city);
}
```

#### Python — `ApifyClient`

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])

run = client.actor("Stone_JadeX/immowelt-de-scraper").call(run_input={
    "startUrls": [
        {"url": "https://www.immowelt.de/liste/berlin/wohnungen/mieten?d=true&sd=DESC&sf=RELEVANCE&sp=1"},
    ],
    "maxItems": 50,
    "scrapeDetails": False,
    "requestDelayMs": 1200,
    "concurrency": 1,
})

items = [
    row for row in client.dataset(run["defaultDatasetId"]).iterate_items()
    if row.get("recordType") != "run-notice"
]
print(f"Collected {len(items)} Immowelt listings")
for item in items[:5]:
    print(item.get("exposeId"), item.get("title"), item.get("price"), item.get("currency"), item.get("city"))
```

***

### FAQ, Compliance & Limitations

#### Is it legal to scrape Immowelt.de?

This Actor collects only publicly visible Immowelt.de real estate listings without logging in or bypassing paywalls or anti-bot challenges. To protect individual privacy, purely private seller phone numbers (`isPrivateOwner: true`) are automatically dropped (`phones: []`), retaining only public brokerage/agency phone numbers published on the page. You remain responsible for ensuring your data usage complies with GDPR, German law, and Immowelt's terms of service. This is an independent tool and is not affiliated with Immowelt.

#### How does the Actor handle `robots.txt`?

At startup, the Actor fetches `https://www.immowelt.de/robots.txt`, parses `User-agent: *` rules, enforces any `Crawl-delay` above `requestDelayMs`, and refuses any disallowed path (such as `/classified-search`, `/buchung/`, or `/liste/getlistitems`) before sending a request, incrementing `OUTPUT.robotsDisallowedHits`. Input validation also permits only public `immowelt.de` `/liste/...`, `/suche/...`, or `/expose/<uuid>` URLs.

#### Why does each search URL yield ~30 cards, and how do multi-city seeds work?

Immowelt.de SSR soft-caches pagination query parameters (`sp=` / `page=`), often returning the same ~30 listings on page 2. The Actor detects stalled listing IDs automatically (`softCacheHits`) without wasting requests, and when `startUrls` is empty it seeds **45 major German city URLs** (~1,350 cards across cities) so high-volume runs do not stall on a single city. For larger datasets in specific regions, supply multiple district or property-type `startUrls`.

#### How do detail fallback, Cloudflare challenges, and the 5 MB residential cap work?

- **Detail-page fallback**: If `/expose/<uuid>` returns HTTP `403` Cloudflare challenge or an error while `scrapeDetails: true`, the Actor preserves the search card data (with `detailError`) and bills only `listing`.
- **Proxy safety**: Connections run directly by default (`useApifyProxy: false`). If a `RESIDENTIAL` proxy group is configured, total proxy transfer is strictly capped at **5 MB** (`RESIDENTIAL_MAX_MB = 5`, not user-configurable), and detail pages stay direct unless `allowDetailOnResidential: true` is explicitly enabled.

***

### Changelog

#### 0.1.5 — 2026-11-23

- Added explicit `prefill` defaults (`startUrls`, `maxItems`, `startPage`, `scrapeDetails`, `requestDelayMs`, `concurrency`, `maxRunSeconds`, `proxyConfiguration`, `useProxyFallback`, `allowDetailOnResidential`) and organized `.actor/input_schema.json` into 4 `sectionCaption` groups.
- Upgraded `README.md` to full Store documentation with an 11-parameter input table, 2 JSON examples, illustrative `f0fd93be-188b-4ec9-8823-41aa00c9c922` JSON output matching `.actor/dataset_schema.json`, full 29-field dataset reference, live PPE + Bronze–Diamond tier discount pricing (`$0.0005` / `$0.50` vs `igolaizola` `$1.01`), JS & Python `ApifyClient` quickstarts, and FAQ/compliance guidance.
- Configured Store SEO metadata, categories (`REAL_ESTATE`, `LEAD_GENERATION`), primary billing event (`listing`), Apify Store subscription tier discounts, and public task `immowelt-berlin-apartments-rent`.

#### 0.1.4 — 2026-10-26

- Expanded `DEFAULT_LIST_URLS` to 45 German city seeds so empty `startUrls` scales past ~1,000 listings under SSR soft-caching (~30 cards/seed).

#### 0.1.3 — 2026-10-26

- Switched soft-cache pagination detection to listing-ID stall checks (`freshVsPrev === 0` or `>= 90%` overlap with `<= 10%` fresh cards) rather than `declaredPage < requestedPage` alone.

#### 0.1.2 — 2026-10-26

- Seeded five major German cities on empty `startUrls` and documented multi-city `startUrls` usage.

#### 0.1.1 — 2026-10-26

- Raised `maxItems` limit from `500` to `2000` to match `maxPages` and `startPage`.

#### 0.1.0 — 2026-10-26

- Initial Immowelt.de scraper supporting list + optional detail tiers via `__UFRN_FETCHER__`, Privacy Policy A contact stripping, `robots.txt` enforcement, fixed 5 MB residential cap, and `$0.0005` PPE pricing with zero start fee.

# Changelog

This Actor's version history is a separate document: https://apify.com/stone_jadex/immowelt-de-scraper/changelog.md

# Actor input Schema

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

Optional. Immowelt search URLs (/liste/... or /suche/...) or expose URLs (/expose/<uuid>). Empty input seeds 45 major DE city apartment-rent searches (Berlin first; ≥35×~30≈1050 under soft-cache). Immowelt SSR soft-caches page/sp params (~30 cards per URL); soft-stop is id-stall based.

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

Stop after this many listings.

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

Optional. Soft-cache usually limits each search URL to one useful page (~30 cards).

## `startPage` (type: `integer`):

First search page when the start URL does not already set ?page= or ?sp=.

## `scrapeDetails` (type: `boolean`):

Optional. Prefer list tier for cost. Detail pages may hit bot challenges; on failure the list row is kept and charged as listing.

## `requestDelayMs` (type: `integer`):

At least 1.2 seconds between request starts. A Crawl-delay in robots.txt can only raise this.

## `concurrency` (type: `integer`):

How many search or detail pages may be requested at once. At least 1.2 seconds still pass between request starts.

## `maxRunSeconds` (type: `integer`):

Stops cleanly and writes the OUTPUT record before this limit.

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

Direct connection by default. Keep proxy OFF for the planned cost gate. A residential proxy is a fallback only (turn on useProxyFallback) and is capped at a fixed 5 MB per run.

## `useProxyFallback` (type: `boolean`):

When a proxy is configured, stay on a direct connection until repeated HTTP 403 or 429 responses, then switch to that proxy.

## `allowDetailOnResidential` (type: `boolean`):

Detail pages stay on a direct connection when the proxy group is residential. Turn this on only if those detail pages should use the residential proxy too.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.immowelt.de/liste/berlin/wohnungen/mieten?d=true&sd=DESC&sf=RELEVANCE&sp=1"
    }
  ],
  "maxItems": 50,
  "startPage": 1,
  "scrapeDetails": false,
  "requestDelayMs": 1200,
  "concurrency": 1,
  "maxRunSeconds": 3600,
  "proxyConfiguration": {
    "useApifyProxy": false
  },
  "useProxyFallback": false,
  "allowDetailOnResidential": false
}
```

# Actor output Schema

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

Public Immowelt.de listing rows in the default dataset, including an uncharged run-notice row when the run is truncated.

## `summary` (type: `string`):

Run statistics, input echo, errors, stop reason, and source-availability notes stored under the OUTPUT key.

# 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.immowelt.de/liste/berlin/wohnungen/mieten?d=true&sd=DESC&sf=RELEVANCE&sp=1"
        }
    ],
    "maxItems": 50,
    "startPage": 1,
    "scrapeDetails": false,
    "requestDelayMs": 1200,
    "concurrency": 1,
    "maxRunSeconds": 3600,
    "proxyConfiguration": {
        "useApifyProxy": false
    },
    "useProxyFallback": false,
    "allowDetailOnResidential": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("stone_jadex/immowelt-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 = {
    "startUrls": [{ "url": "https://www.immowelt.de/liste/berlin/wohnungen/mieten?d=true&sd=DESC&sf=RELEVANCE&sp=1" }],
    "maxItems": 50,
    "startPage": 1,
    "scrapeDetails": False,
    "requestDelayMs": 1200,
    "concurrency": 1,
    "maxRunSeconds": 3600,
    "proxyConfiguration": { "useApifyProxy": False },
    "useProxyFallback": False,
    "allowDetailOnResidential": False,
}

# Run the Actor and wait for it to finish
run = client.actor("stone_jadex/immowelt-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 '{
  "startUrls": [
    {
      "url": "https://www.immowelt.de/liste/berlin/wohnungen/mieten?d=true&sd=DESC&sf=RELEVANCE&sp=1"
    }
  ],
  "maxItems": 50,
  "startPage": 1,
  "scrapeDetails": false,
  "requestDelayMs": 1200,
  "concurrency": 1,
  "maxRunSeconds": 3600,
  "proxyConfiguration": {
    "useApifyProxy": false
  },
  "useProxyFallback": false,
  "allowDetailOnResidential": false
}' |
apify call stone_jadex/immowelt-de-scraper --silent --output-dataset

```

## MCP server setup

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