# Otodom.pl Scraper (`dadhalfdev/otodom-scraper`) Actor

Scrape Polish property listings from Otodom.pl. Use filters (sale/rent, type, location, price, rooms) or paste a search URL — the URL wins when set. Returns price, size, rooms, location, agency, phone, and photos.

- **URL**: https://apify.com/dadhalfdev/otodom-scraper.md
- **Developed by:** [Marco Rodrigues](https://apify.com/dadhalfdev) (community)
- **Categories:** Real estate
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## 🏠 Otodom.pl Scraper

Want Polish property listings from [Otodom.pl](https://www.otodom.pl/) without clicking through pages? This scraper makes it easy.

Use **structured filters** (sale/rent, type, location, price, rooms) — structured filters work better for AI agents — **or** paste an **`input_url`** from your browser once you've already filtered on Otodom. When `input_url` is set it overrides the filters below. Either way, you get clean CSV/JSON with prices, specs, photos, agency, and phone when exposed on the listing card.

### 💡 Perfect for...

- **Buyers & Investors:** Track apartments and houses across Polish cities and price bands.
- **Estate Agencies:** Monitor competitor supply and collect agency / phone leads.
- **Market Research:** Analyze PLN pricing, €/m² (PLN/m²), and room mix by city or voivodeship.
- **Data Analysts:** Export structured Otodom data for dashboards and valuation models.
- **🤖 AI Agents:** Power bots and OpenClaw workflows with live Otodom search results.
- **📚 RAG Systems:** Feed titles, descriptions, and prices into retrieval pipelines.
- **🔗 AI Workflows:** Plug into LangChain, AutoGPT, CrewAI, and similar stacks.

### ✨ Why you'll love this scraper

- 🔗 **Input URL or Filters:** Paste an Otodom search URL (`input_url`) if you already filtered in the browser, or use structured filters (better for AI agents). `input_url` always wins when set.
- 🎯 **Website-Matched Filters:** Listing type, property type, price, rooms, area, advertiser type, and sort use the **same Otodom query params**.
- 📍 **Polish locations:** Cities, voivodeships, popular Warsaw districts, or a full Otodom path (`mazowieckie/warszawa/...`). Use `cala-polska` for nationwide.
- 📞 **Agency + phone:** Pulls agency name and agent mobile when the search card exposes them.
- 🇵🇱 **Built for Poland:** Covers sprzedaż and wynajem across apartments, houses, plots, commercial, rooms, garages, and warehouses.

### 📦 What's inside the data?

For every property listing, you will get:

- **Core Details:** `id`, `url`, `transaction`, `property_type`, `title`, `description`
- **Pricing:** `price`, `rent_price`, `price_per_m2`, `price_currency` (PLN)
- **Specs:** `area_m2`, `terrain_m2`, `bedrooms`, `rooms_label`, `floor`, `tags`
- **Location:** `location`, `street`, `district`, `city`, `region`, `country`, `latitude`, `longitude`
- **Contact / Media:** `agency_name`, `agent_name`, `phone`, `image_url`, `images`

### 🛠️ Sort options

Use `sort_by` with these values:

- **(empty)** – Relevance / default
- **`latest`** – Newest
- **`price_asc` / `price_desc`** – Price low→high / high→low
- **`area_asc` / `area_desc`** – Smallest / largest

### 🚀 Quick start

**Option A — Input URL**

1. Open [Otodom.pl](https://www.otodom.pl/), apply filters in the browser, copy the results URL — e.g. `https://www.otodom.pl/pl/wyniki/sprzedaz/mieszkanie/mazowieckie/warszawa/warszawa/warszawa?priceMin=300000&priceMax=600000`.
2. Paste it into `input_url`.
3. Set `max_properties` and click **Start**.

**Option B — Structured filters (better for AI agents)**

1. Leave `input_url` empty.
2. Set listing type, property type, location, and optional price / rooms / area / sort.
3. Set `max_properties` (up to 2000) and click **Start**.

Export CSV, Excel, or JSON when done.

***

#### Tech details for developers 🧑‍💻

**Input Example (filters):**

```json
{
  "listing_type": "sprzedaz",
  "property_type": "mieszkanie",
  "location": "warszawa",
  "price_min": 300000,
  "price_max": 600000,
  "bedrooms": "2",
  "sort_by": "price_asc",
  "max_properties": 100
}
```

**Input Example (URL override):**

```json
{
  "input_url": "https://www.otodom.pl/pl/wyniki/wynajem/mieszkanie/malopolskie/krakow/krakow/krakow?priceMax=4000",
  "max_properties": 50
}
```

**Output Example:**

```json
{
  "id": "68258457",
  "url": "https://www.otodom.pl/pl/oferta/2-pokoje-w-poblizu-uczelni-i-centrum-ID4Cp8R",
  "transaction": "sell",
  "property_type": "flat",
  "title": "2 pokoje w pobliżu uczelni i centrum",
  "price": 649990,
  "price_per_m2": 16249.75,
  "price_currency": "PLN",
  "area_m2": 40,
  "bedrooms": 2,
  "floor": "3",
  "city": "Kraków",
  "region": "małopolskie",
  "agency_name": "Lakado",
  "phone": "+48790347575",
  "image_url": "https://ireland.apollo.olxcdn.com/..."
}
```

# Actor input Schema

## `input_url` (type: `string`):

Optional. Paste any Otodom.pl search results URL to override the filters below. Must be left empty to use location and other structured filters (better for AI agents). If this field is filled, location/price/etc. are ignored.

## `listing_type` (type: `string`):

Sale (sprzedaż) or rent (wynajem). Ignored when input\_url is set.

## `property_type` (type: `string`):

Property category on Otodom.pl. Ignored when input\_url is set.

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

City, voivodeship, Warsaw district, or Otodom path (e.g. warszawa, krakow, mazowieckie, mokotow, or mazowieckie/warszawa/warszawa/warszawa). Use cala-polska for all of Poland. Ignored when input\_url is set.

## `price_min` (type: `integer`):

Minimum price in PLN. Ignored when input\_url is set.

## `price_max` (type: `integer`):

Maximum price in PLN. Ignored when input\_url is set.

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

Minimum number of rooms (Otodom roomsNumber). Ignored when input\_url is set.

## `area_min` (type: `integer`):

Minimum floor area in m². Ignored when input\_url is set.

## `area_max` (type: `integer`):

Maximum floor area in m². Ignored when input\_url is set.

## `owner_type` (type: `string`):

Filter by private owners or agencies/businesses. Ignored when input\_url is set.

## `sort_by` (type: `string`):

Result order (same modes as Otodom). Ignored when input\_url is set.

## `max_properties` (type: `integer`):

How many property listings to return (1–2000).

## Actor input object example

```json
{
  "listing_type": "sprzedaz",
  "property_type": "mieszkanie",
  "location": "warszawa",
  "bedrooms": "",
  "owner_type": "ALL",
  "sort_by": "",
  "max_properties": 50
}
```

# Actor output Schema

## `overview` (type: `string`):

Table view of scraped listings using the dataset 'overview' view.

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

All scraped listings from the default dataset without view transformation.

# 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 = {
    "location": "warszawa"
};

// Run the Actor and wait for it to finish
const run = await client.actor("dadhalfdev/otodom-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 = { "location": "warszawa" }

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

```

## MCP server setup

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