# Immowelt.de Scraper (`one-api/immowelt-scraper`) Actor

Scrape Immowelt.de, a leading German property marketplace. Look up listings by id or URL, find similar listings, search for sale or rent by city/district/postcode or URL with filters, resolve locations via autocomplete, and pull agencies (by location and their listings).

- **URL**: https://apify.com/one-api/immowelt-scraper.md
- **Developed by:** [ONE API](https://apify.com/one-api) (community)
- **Categories:** Lead generation, Real estate
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Immowelt.de Scraper

Scrape **Immowelt.de**, one of Germany's largest real-estate marketplaces. Look up listings by id or `expose` URL, find similar listings, search for sale (*kaufen*) or rent (*mieten*) by city / district / postcode or an immowelt.de results URL with filters, resolve locations via autocomplete, and pull real-estate agencies (by location and their active listings).

### What it does

- **🏠 Property Details** — auto-detects each input as an Immowelt listing id (`/details/byid`) or an `immowelt.de/expose/...` URL (`/details/byurl`); returns the full record: price, living space, rooms, floor, energy class, coordinates, features, photos, description, and agency contact + phone.
- **🔁 Similar Listings** — for a listing id, returns listings in the same area / type / price band (`/details/similar`).
- **🔎 Search Listings** — auto-detects a free-text location (`/search/bylocation`) or an immowelt.de results URL (`/search/byurl`). Deal type, property type, price / rooms / bedrooms / living-area / plot / year-built filters and sort all apply.
- **🔍 Location Autocomplete** — resolve free text to the Immowelt placeId used by search (`/autocomplete`).
- **🏢 Agencies by location** — real-estate agencies currently advertising in a location, each with its listing count and logo (`/agent/search`).
- **👤 Agency listings** — listings held by a named agency in a location (`/agent/listings`), one entry per line as `Location | Agency name`.

### Output

- **One flat dataset row per listing / agency / suggestion** — sortable, filterable, CSV / Excel / JSON exportable.
- Columns: `Mode`, `Input Given`, `ID`, `Title`, `Deal`, `Property Type`, `Price`, `Price per m²`, `Rooms`, `Living Space m²`, `Floor`, `Energy Class`, `Street`, `District`, `City`, `Zip`, `Country`, `Latitude`, `Longitude`, `Agency Name`, `Agency Type`, `Agency Phone`, `Agency Contact`, `Listing Count`, `Cover Photo`, `Listing URL`.
- The complete upstream JSON for each row is kept in the `Raw` column for power users.

### Inputs

- Each section is independent — fill only the ones you need; multiple inputs per section, one per line.
- The Search filters (deal type, property type, ranges, sort, pages, results-per-page) apply to every `/search/bylocation` query.
- **Agency listings** entries use the format `Location | Agency name`, e.g. `Berlin | BSK Immobilien GmbH` — discover agency names with the *Agencies by location* section.

### Pricing

- Pay per result: **$3 per 1,000 dataset items** — the same rate on every Apify plan tier.
- Apify start fee: $0.00005 per run.

### Notes

- Immowelt serves roughly **30 listings per page** — raise *Pages per search* to fetch more.
- Search is **location based** (city / district / postcode / placeId), not radius or bounding-box.
- Prices are in **EUR (€)** as displayed strings (e.g. `170.000 €`); living area in **m²**. `Energy Class` is the German efficiency class (A+…H).
- Detail records include latitude / longitude when Immowelt publishes them; search results do not carry coordinates.

### Errors

- Failures land in the dataset as rows with `Mode = "ERROR"` and the upstream message in `Title` — nothing is silently dropped.

# Actor input Schema

## `property_inputs` (type: `array`):

Auto-detects each entry and calls the right endpoint:
• An Immowelt listing id (e.g. `256Q14GY2JL7`, or the legacyId UUID) → `/details/byid`
• An `https://www.immowelt.de/expose/...` URL → `/details/byurl`

Each row = one full property record (price, size, rooms, energy class, coordinates, features, photos, agency contact + phone).

## `similar_ids` (type: `array`):

For each listing id, returns listings in the same area / type / price band via `/details/similar`. Use the Results-per-page filter below to cap how many. One row per similar listing.

## `search_inputs` (type: `array`):

Auto-detects each entry and routes to the right `/search/*` endpoint:
• An immowelt.de results URL, e.g. `https://www.immowelt.de/suche/berlin/wohnungen/mieten` → `/search/byurl`
• Anything else (city, district or postcode, e.g. `Berlin`, `München`, `10115`) → `/search/bylocation`

The filters below apply to every `bylocation` query. Each hit returns one row per listing.

## `searchType` (type: `string`):

Buy (kaufen) or rent (mieten). Applies to Search and Agency sections.

## `propertyType` (type: `string`):

Type to search for. Comma-separate for multiple, or leave as Any.

## `priceRange` (type: `string`):

Format: `min:200000,max:600000` — or just `min:200000` / `max:600000`.

## `rooms` (type: `string`):

Number of rooms, e.g. `min:3` or `min:2,max:4`.

## `bedrooms` (type: `string`):

Number of bedrooms, e.g. `min:2`.

## `areaRange` (type: `string`):

Living area in m², e.g. `min:60,max:140`.

## `plotRange` (type: `string`):

Plot or land area in m² (houses & land), e.g. `min:300`.

## `yearBuilt` (type: `string`):

Construction year, e.g. `min:2010`.

## `sortOrder` (type: `string`):

Result ordering for `/search/bylocation`.

## `pages` (type: `integer`):

How many pages to fetch for each `/search/bylocation` query (~30 listings per page).

## `resultCount` (type: `integer`):

Listings per page for search, and how many similar listings to return (1–100; ~30/page upstream).

## `autocomplete_inputs` (type: `array`):

Resolve a German city / district / postcode to the Immowelt placeId used by Search via `/autocomplete`. Each suggestion = one row.

## `agency_location_inputs` (type: `array`):

Real-estate agencies currently advertising in a location, with each one's listing count and logo, via `/agent/search`. Uses the Deal type above. Each agency = one row.

## `agency_listings_inputs` (type: `array`):

Listings held by a named agency in a location, via `/agent/listings`. One entry per line, formatted as `Location | Agency name`, e.g. `Berlin | BSK Immobilien GmbH` (agency name is case-insensitive, partial match). Discover agency names with the Agencies-by-location section. Uses the Deal type above. One row per listing.

## Actor input object example

```json
{
  "property_inputs": [
    "256Q14GY2JL7",
    "https://www.immowelt.de/expose/1215b46c-9e03-4081-bc72-67209544ff9f"
  ],
  "similar_ids": [
    "256Q14GY2JL7"
  ],
  "search_inputs": [
    "Berlin"
  ],
  "searchType": "For_Sale",
  "propertyType": "",
  "priceRange": "",
  "rooms": "",
  "bedrooms": "",
  "areaRange": "",
  "plotRange": "",
  "yearBuilt": "",
  "sortOrder": "Recommended",
  "pages": 1,
  "resultCount": 20,
  "autocomplete_inputs": [
    "Berlin"
  ],
  "agency_location_inputs": [
    "Berlin"
  ],
  "agency_listings_inputs": [
    "Berlin | BSK Immobilien GmbH"
  ]
}
```

# 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 = {
    "property_inputs": [
        "256Q14GY2JL7",
        "https://www.immowelt.de/expose/1215b46c-9e03-4081-bc72-67209544ff9f"
    ],
    "similar_ids": [
        "256Q14GY2JL7"
    ],
    "search_inputs": [
        "Berlin"
    ],
    "autocomplete_inputs": [
        "Berlin"
    ],
    "agency_location_inputs": [
        "Berlin"
    ],
    "agency_listings_inputs": [
        "Berlin | BSK Immobilien GmbH"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("one-api/immowelt-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 = {
    "property_inputs": [
        "256Q14GY2JL7",
        "https://www.immowelt.de/expose/1215b46c-9e03-4081-bc72-67209544ff9f",
    ],
    "similar_ids": ["256Q14GY2JL7"],
    "search_inputs": ["Berlin"],
    "autocomplete_inputs": ["Berlin"],
    "agency_location_inputs": ["Berlin"],
    "agency_listings_inputs": ["Berlin | BSK Immobilien GmbH"],
}

# Run the Actor and wait for it to finish
run = client.actor("one-api/immowelt-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "property_inputs": [
    "256Q14GY2JL7",
    "https://www.immowelt.de/expose/1215b46c-9e03-4081-bc72-67209544ff9f"
  ],
  "similar_ids": [
    "256Q14GY2JL7"
  ],
  "search_inputs": [
    "Berlin"
  ],
  "autocomplete_inputs": [
    "Berlin"
  ],
  "agency_location_inputs": [
    "Berlin"
  ],
  "agency_listings_inputs": [
    "Berlin | BSK Immobilien GmbH"
  ]
}' |
apify call one-api/immowelt-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=one-api/immowelt-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/ndxhp2rJNYVC35rFK/builds/2iSvVGeQhW9ns5jPF/openapi.json
