# Otodom.pl Real Estate Scraper (`mrdoe/otodom-pl-scraper`) Actor

Fast, API-based scraper for Otodom.pl real-estate listings - price, area, rooms, location, images, description and seller contact for flats, houses, land and commercial units, for sale or rent, anywhere in Poland.

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

## Pricing

from $1.50 / 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/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

## Otodom.pl Real Estate Scraper

![Otodom.pl Real Estate Scraper - flats, houses, land and commercial listings across Poland, with price, area, rooms and exact location.](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/otodom-pl-scraper--1-search.png)

Collect structured real-estate listings from Otodom.pl, Poland's largest property portal - flats, houses, land, commercial units and garages, for sale or rent.

### What it does

- Searches Otodom.pl by transaction type (sale/rent), property type, location and price range - or works from direct listing/search URLs you provide.
- Returns one structured row per listing: price (total, per-m², and rent for flats), area, rooms, floor, exact location (voivodeship/city/district/street), images, and posting dates.
- Optionally visits each listing's own page for extra detail: full description, exact coordinates, building type/year/material, heating, and the advertiser's name and phone number (when the listing itself displays it publicly - no login needed).
- Paginates automatically up to your result limit.

### Input parameters

| Field                   | Type    | Default       | Notes                                                                                                                           |
| ----------------------- | ------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------- |
| `transactionType`       | string  | `sprzedaz`    | `sprzedaz` (sale) or `wynajem` (rent)                                                                                           |
| `estateType`            | string  | `mieszkanie`  | `mieszkanie` (flat), `dom` (house), `dzialka` (land), `lokal` (commercial), `garaz` (garage)                                    |
| `location`              | string  | `cala-polska` | A location slug as used in Otodom's own URLs - `cala-polska` for all of Poland, or a city/region/district slug                  |
| `priceMin` / `priceMax` | integer | -             | Optional price range in PLN                                                                                                     |
| `startUrls`             | array   | `[]`          | Optional direct Otodom.pl search-result or listing URLs, used instead of building one from the fields above                     |
| `maxResults`            | integer | `5`           | Default is 5 for a free, quick test; raise it for a real run                                                                    |
| `fetchFullDetails`      | boolean | `true`        | Visit each listing's own page for extra fields. Turn off for a faster, cheaper run using only what's on the search results page |
| `proxyConfiguration`    | object  | off           | Optional - this site has not needed one in testing                                                                              |

### Example input

```json
{
    "transactionType": "sprzedaz",
    "estateType": "mieszkanie",
    "location": "cala-polska",
    "maxResults": 20,
    "fetchFullDetails": true
}
```

### Example output

Real output from an actual run (not fabricated):

```json
{
    "id": 68316198,
    "title": "TOP LOKALIZACJA, po REMONCIE generalnym, ROZKŁADOWE, 2 pokoje",
    "url": "https://www.otodom.pl/pl/oferta/top-lokalizacja-po-remoncie-generalnym-rozkladowe-2-pokoje-ID4CEaa",
    "transactionType": "SELL",
    "estateType": "FLAT",
    "totalPrice": { "amount": 630000, "currency": "PLN" },
    "pricePerSquareMeter": { "amount": 14308.43, "currency": "PLN" },
    "areaInSquareMeters": 44.03,
    "roomsNumber": "TWO",
    "city": "Wrocław",
    "district": "Krzyki",
    "street": "ul. Hubska",
    "advertiserName": "Sławek",
    "description": "Na sprzedaż przestronne mieszkanie...",
    "advertiserPhone": "+48666655370"
}
```

### Pricing

Pay-per-event: a small actor-start fee plus a per-listing fee. This Actor does plain HTTP requests with no browser, so compute cost per run is minimal.

### Limitations

- Output reflects whatever Otodom's own listing page shows - a private seller may show a phone number directly on the page, while an agency listing often routes contact through Otodom's own messaging instead; this Actor never attempts to work around that.
- Field availability varies by listing type (e.g. `roomsNumber` doesn't apply to land).
- This Actor does not log in or access anything beyond what's served to a logged-out visitor.

### FAQ

**Does this need my own Otodom account?** No - it reads the site's own public listing pages, no login required.

**Why do transactionType/estateType show as English codes (SELL, FLAT) in the output but Polish slugs (sprzedaz, mieszkanie) in the input?** The input slugs match Otodom's own URL structure; the output fields match the data the site itself returns. Both are real, just two different vocabularies used in two different places.

**Can I get just the cheap search-page fields without the extra detail-page visit?** Yes - set `fetchFullDetails` to `false`.

### Responsible use

This Actor only reads data Otodom.pl already serves to any logged-out visitor. Respect Otodom's own terms of service, and don't use contact details collected here for unsolicited bulk outreach.

# Actor input Schema

## `transactionType` (type: `string`):

Sale (sprzedaz) or rent (wynajem) listings.

## `estateType` (type: `string`):

Which kind of property to search.

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

A location slug as used in Otodom's own URLs, e.g. "cala-polska" (all of Poland), "mazowieckie/warszawa/warszawa/warszawa" (a city), or a smaller district slug. Start a search on otodom.pl and copy the slug from the address bar if unsure.

## `priceMin` (type: `integer`):

Optional minimum price filter, in Polish złoty.

## `priceMax` (type: `integer`):

Optional maximum price filter, in Polish złoty.

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

Optional direct Otodom.pl search-result or listing URLs to use instead of building one from the fields above. Add one per line.

## `maxResults` (type: `integer`):

Maximum number of listings to return. Default is 5 for a free, quick test; raise it for a real run.

## `fetchFullDetails` (type: `boolean`):

When on, visits each listing's own page for extra fields (full description, exact coordinates, contact name/phone, building details). When off, only the fields already present on the search results page are returned - faster and cheaper.

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

Optional. This site has not shown a need for a proxy in testing, but one can still be set.

## Actor input object example

```json
{
  "transactionType": "sprzedaz",
  "estateType": "mieszkanie",
  "location": "cala-polska",
  "startUrls": [],
  "maxResults": 5,
  "fetchFullDetails": true,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (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 = {
    "maxResults": 5
};

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

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

```

## MCP server setup

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