# Otodom.pl Scraper | 2$/1k (`trev0n/otodom-scraper`) Actor

Scrape Otodom.pl listings with 30+ fields: price, area, rooms, location, GPS, seller info. Supports sale & rent for apartments, houses, plots. No browser needed.

- **URL**: https://apify.com/trev0n/otodom-scraper.md
- **Developed by:** [Paweł](https://apify.com/trev0n) (community)
- **Categories:** Real estate, Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 175 total users, 38 monthly users, 96.7% runs succeeded, 6 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.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/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

Fast and efficient Apify Actor that scrapes property listings from [Otodom.pl](https://www.otodom.pl/) - Poland's largest real estate portal. Extracts comprehensive property data including prices, locations, areas, rooms, building details, seller information, and more.

### Features

- Scrapes **sale** and **rent** listings for apartments, houses, plots, commercial properties, warehouses, and garages
- Supports both **listing pages** (search results) and **property detail pages**
- **30+ data fields** per property including price, area, rooms, floor, building type, heating, parking, and more
- Full **location data** with city, district, street, province, and GPS coordinates
- **Seller/agency** information with name, phone, and license number
- **Image URLs** extraction
- **Pagination** with configurable `maxItems` limit
- **Proxy support** with session pool rotation
- Configurable **search filters**: price range, area range, rooms, market type, build year
- **Deduplication** using URL-based tracking
- Two modes: **fast listing-only** or **detailed** (visits each property page)

### Input Parameters

| Parameter              | Type    | Default      | Description                                                                      |
| ---------------------- | ------- | ------------ | -------------------------------------------------------------------------------- |
| `startUrls`            | array   | `[]`         | Direct Otodom.pl URLs to scrape (search or detail pages)                         |
| `searchType`           | string  | `sprzedaz`   | Search type: `sprzedaz` (sale) or `wynajem` (rent)                               |
| `propertyType`         | string  | `mieszkanie` | Property type: `mieszkanie`, `dom`, `dzialka`, `lokal`, `haleimagazyny`, `garaz` |
| `location`             | string  | `""`         | Path copied from an Otodom URL, e.g. `mazowieckie/warszawa/warszawa/warszawa`; a bare city name (`warszawa`) is a 404 |
| `districts`            | array   | `[]`         | Districts of the city in `location`, e.g. `["Mokotów", "Wola"]`; several run as one search sharing `maxItems`; an unknown name 404s the whole search |
| `priceMin`             | integer | -            | Minimum price in PLN                                                             |
| `priceMax`             | integer | -            | Maximum price in PLN                                                             |
| `areaMin`              | integer | -            | Minimum area in m2                                                               |
| `areaMax`              | integer | -            | Maximum area in m2                                                               |
| `roomsMin`             | integer | -            | Minimum number of rooms                                                          |
| `roomsMax`             | integer | -            | Maximum number of rooms                                                          |
| `buildYear`            | integer | -            | Minimum construction year                                                        |
| `market`               | string  | `ALL`        | Market type: `ALL`, `PRIMARY`, `SECONDARY`                                       |
| `postedDate`           | string  | `""`         | Posted within last N days: `1`, `3`, `7`, `14` (empty = any time)                |
| `maxItems`             | integer | `50`         | Maximum properties to scrape (0 = unlimited)                                     |
| `extractDetails`       | boolean | `true`       | Visit each property page for full details                                        |
| `maxConcurrency`       | integer | `5`          | Max parallel requests                                                            |
| `maxRequestRetries`    | integer | `3`          | Max retries per request                                                          |
| `maxRequestsPerMinute` | integer | `60`         | Rate limit                                                                       |
| `proxyConfiguration`   | object  | -            | Proxy settings                                                                   |

### Output Fields

#### Listing Mode (`extractDetails: false`) - Fast

Basic property data extracted from search result pages:

| Field                 | Type   | Description                     |
| --------------------- | ------ | ------------------------------- |
| `id`                  | string | Otodom internal property ID     |
| `title`               | string | Property listing title          |
| `price`               | number | Price in PLN                    |
| `priceCurrency`       | string | Currency code (PLN)             |
| `priceFormatted`      | string | Formatted price with currency   |
| `pricePerM2`          | number | Price per square meter          |
| `pricePerM2Formatted` | string | Formatted price per m2          |
| `area`                | number | Area in square meters           |
| `rooms`               | number | Number of rooms                 |
| `floor`               | string | Floor number                    |
| `totalFloors`         | number | Total floors in building        |
| `market`              | string | Market type (PRIMARY/SECONDARY) |
| `location`            | string | Full location string            |
| `city`                | string | City name                       |
| `province`            | string | Province (voivodeship)          |
| `district`            | string | District name                   |
| `street`              | string | Street name                     |
| `latitude`            | number | GPS latitude                    |
| `longitude`           | number | GPS longitude                   |
| `mainImage`           | string | Main image URL                  |
| `imageCount`          | number | Number of images                |
| `sellerType`          | string | Seller type (agency/private)    |
| `agencyName`          | string | Agency name                     |
| `dateCreated`         | string | Listing creation date           |
| `propertyUrl`         | string | Direct URL to property          |
| `scrapedAt`           | string | Scraping timestamp              |

#### Detail Mode (`extractDetails: true`) - Comprehensive

All listing fields above, plus:

| Field                 | Type   | Description                           |
| --------------------- | ------ | ------------------------------------- |
| `rentPrice`           | number | Monthly rent (for rental listings)    |
| `buildingType`        | string | Building type (block, tenement, etc.) |
| `buildingMaterial`    | string | Construction material                 |
| `buildYear`           | number | Year of construction                  |
| `heating`             | string | Heating type                          |
| `ownershipType`       | string | Ownership form                        |
| `condition`           | string | Property condition                    |
| `parkingType`         | string | Parking availability                  |
| `elevator`            | string | Elevator availability                 |
| `windowsType`         | string | Window type                           |
| `subdistrict`         | string | Subdistrict name                      |
| `description`         | string | Full property description             |
| `features`            | array  | Property features and amenities       |
| `additionalFeatures`  | array  | Additional property information       |
| `images`              | array  | All image URLs                        |
| `agencyLicenseNumber` | string | Agency license number                 |
| `agencyUrl`           | string | Agency profile URL                    |
| `sellerPhone`         | string | Seller phone number                   |

### Example Output

```json
{
    "id": "12345678",
    "title": "Mieszkanie 3-pokojowe, Mokotow, 65 m2",
    "price": 850000,
    "priceCurrency": "PLN",
    "priceFormatted": "850 000 PLN",
    "pricePerM2": 13077,
    "pricePerM2Formatted": "13 077 PLN/m2",
    "area": 65,
    "rooms": 3,
    "floor": "4",
    "totalFloors": 10,
    "buildingType": "blok",
    "buildingMaterial": "cegla",
    "market": "SECONDARY",
    "buildYear": 2015,
    "heating": "miejskie",
    "ownershipType": "pelna wlasnosc",
    "condition": "do zamieszkania",
    "parkingType": "garaz podziemny",
    "elevator": "tak",
    "windowsType": "plastikowe",
    "location": "Warszawa, Mokotow, ul. Pulawska",
    "city": "Warszawa",
    "province": "mazowieckie",
    "district": "Mokotow",
    "subdistrict": "Stary Mokotow",
    "street": "Pulawska",
    "latitude": 52.1935,
    "longitude": 21.0035,
    "description": "Oferuje do sprzedazy piekne 3-pokojowe mieszkanie...",
    "features": ["balkon", "piwnica", "winda", "monitoring"],
    "additionalFeatures": ["Media: internet, telewizja kablowa"],
    "images": [
        "https://ireland.apollo.olxcdn.com/v1/files/abc123/image;s=1280x1024",
        "https://ireland.apollo.olxcdn.com/v1/files/def456/image;s=1280x1024"
    ],
    "imageCount": 15,
    "mainImage": "https://ireland.apollo.olxcdn.com/v1/files/abc123/image;s=1280x1024",
    "sellerType": "agency",
    "agencyName": "ABC Nieruchomosci",
    "agencyId": "98765",
    "agencyLicenseNumber": "1234",
    "agencyUrl": "https://www.otodom.pl/biuro/abc-nieruchomosci-98765",
    "sellerPhone": "+48123456789",
    "dateCreated": "2026-03-10T10:30:00Z",
    "dateModified": "2026-03-14T15:45:00Z",
    "isPromoted": false,
    "isExclusiveOffer": false,
    "isPremium": false,
    "propertyUrl": "https://www.otodom.pl/pl/oferta/mieszkanie-3-pokojowe-mokotow-65-m2-ID12345678",
    "scrapedAt": "2026-03-16T12:00:00Z"
}
```

### Usage Examples

#### Search for apartments for sale in Warsaw

```json
{
    "searchType": "sprzedaz",
    "propertyType": "mieszkanie",
    "location": "mazowieckie/warszawa",
    "priceMax": 1000000,
    "roomsMin": 2,
    "maxItems": 100,
    "extractDetails": true
}
```

#### Only selected districts of Warsaw

```json
{
    "searchType": "sprzedaz",
    "propertyType": "mieszkanie",
    "location": "mazowieckie/warszawa/warszawa/warszawa",
    "districts": ["Mokotów", "Praga-Południe"],
    "maxItems": 100
}
```

District names are matched without Polish diacritics or case. All districts go into one Otodom search, so results come from all of them rather than the first one filling `maxItems`. An entry containing `/` is used as a full Otodom location path.

#### Scrape rental listings in Krakow

```json
{
    "searchType": "wynajem",
    "propertyType": "mieszkanie",
    "location": "malopolskie/krakow",
    "priceMax": 4000,
    "maxItems": 50,
    "extractDetails": true
}
```

#### Fast listing-only scrape (no detail pages)

```json
{
    "searchType": "sprzedaz",
    "propertyType": "mieszkanie",
    "location": "mazowieckie/warszawa",
    "maxItems": 500,
    "extractDetails": false,
    "maxConcurrency": 10
}
```

#### Scrape specific URLs

```json
{
    "startUrls": [
        "https://www.otodom.pl/pl/wyniki/sprzedaz/mieszkanie/mazowieckie/warszawa?priceMax=800000",
        "https://www.otodom.pl/pl/oferta/mieszkanie-2-pokojowe-mokotow-ID12345"
    ],
    "maxItems": 200,
    "extractDetails": true
}
```

#### Houses on secondary market

```json
{
    "searchType": "sprzedaz",
    "propertyType": "dom",
    "location": "mazowieckie",
    "market": "SECONDARY",
    "areaMin": 100,
    "priceMax": 2000000,
    "maxItems": 100
}
```

### URL Structure

Otodom.pl follows this URL pattern:

```
https://www.otodom.pl/pl/wyniki/{searchType}/{propertyType}/{voivodeship}/{city}?filters
```

- **Search types**: `sprzedaz` (sale), `wynajem` (rent)
- **Property types**: `mieszkanie`, `dom`, `dzialka`, `lokal`, `haleimagazyny`, `garaz`
- **Detail pages**: `https://www.otodom.pl/pl/oferta/{slug}`

# Actor input Schema

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

List of Otodom.pl URLs to scrape. Can be search result pages or individual property listing URLs. If provided, other search filters are ignored.

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

Type of search: sale or rent.

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

Type of property to search for.

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

Location path copied from an Otodom search URL - the part after '/wyniki/<searchType>/<propertyType>/'. Examples: 'mazowieckie/warszawa/warszawa/warszawa' (Warsaw), 'malopolskie/krakow/krakow/krakow' (Krakow), 'mazowieckie' (whole province). A bare city name such as 'warszawa' is NOT a valid path and returns Otodom's 404 page. If unsure, open otodom.pl, run the search there and paste the full URL into 'startUrls' instead.

## `districts` (type: `array`):

Narrow the search to these districts of the city in 'location', e.g. \['Mokotów', 'Wola'] with location 'mazowieckie/warszawa/warszawa/warszawa'. Names are matched without Polish diacritics or case ('Praga-Południe' and 'praga-poludnie' both work). Several districts run as one search, so 'maxItems' is shared between them. An entry with '/' is used as a full Otodom location path. Otodom rejects the whole search (404) when any district name is unknown. Leave empty to search the whole location.

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

Minimum price in PLN.

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

Maximum price in PLN.

## `areaMin` (type: `integer`):

Minimum area in square meters.

## `areaMax` (type: `integer`):

Maximum area in square meters.

## `roomsMin` (type: `integer`):

Minimum number of rooms.

## `roomsMax` (type: `integer`):

Maximum number of rooms.

## `buildYear` (type: `integer`):

Minimum construction year.

## `market` (type: `string`):

Market type: primary (developer) or secondary.

## `postedDate` (type: `string`):

Filter listings by how recently they were posted (days since listing was created). Leave empty for no filter.

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

Maximum number of property listings to scrape (0 = unlimited).

## `extractDetails` (type: `boolean`):

When enabled, visits each property page for full details (description, features, images, agent info). When disabled, extracts listing-level data only (faster and cheaper).

## `maxConcurrency` (type: `integer`):

Maximum number of parallel requests. Higher = faster but may trigger rate limiting.

## `maxRequestRetries` (type: `integer`):

Maximum number of retries for failed requests.

## `maxRequestsPerMinute` (type: `integer`):

Maximum number of requests per minute to avoid rate limiting.

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

Proxy settings. With Apify Proxy, each request is first tried through datacenter IPs and retried through the selected group (residential IPs in Poland by default), so blocked requests still get through. Datacenter only is used when residential is not available on your plan. Override this only if you want to use your own proxy URLs.

## Actor input object example

```json
{
  "searchType": "sprzedaz",
  "propertyType": "mieszkanie",
  "location": "mazowieckie/warszawa/warszawa/warszawa",
  "districts": [],
  "market": "ALL",
  "postedDate": "",
  "maxItems": 50,
  "extractDetails": true,
  "maxConcurrency": 20,
  "maxRequestRetries": 2,
  "maxRequestsPerMinute": 150,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "PL"
  }
}
```

# Actor output Schema

## `overview` (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 = {
    "location": "mazowieckie/warszawa/warszawa/warszawa",
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "PL"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("trev0n/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": "mazowieckie/warszawa/warszawa/warszawa",
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "PL",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("trev0n/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": "mazowieckie/warszawa/warszawa/warszawa",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "PL"
  }
}' |
apify call trev0n/otodom-scraper --silent --output-dataset

```

## MCP server setup

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