# Sreality Scraper (`expert_lighter/sreality-scraper`) Actor

Sreality.cz Scraper extracts real estate listings from the largest Czech property portal.

Features:

- Search mode: Scrape hundreds of listings by region, property type, and transaction type

- Detail mode: Extract complete data from a single listing URL

- **URL**: https://apify.com/expert\_lighter/sreality-scraper.md

- **Developed by:** [Jan Šťastný](https://apify.com/expert_lighter) (community)

- **Categories:** Real estate, Automation

- **Stats:** 50 total users, 5 monthly users, 98.2% runs succeeded, 0 bookmarks

- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-usage

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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

## Sreality.cz Scraper

Scrape real estate listings from [Sreality.cz](https://www.sreality.cz) - the largest Czech real estate portal.

Extract data from hundreds of listings fast. Get addresses, prices, sizes, features, images & more. Export scraped data, run the scraper via API, schedule and monitor runs, or integrate with other tools.

### Features

- **Search mode**: Scrape multiple listings based on filters (region, property type, transaction type)
- **Detail mode**: Extract detailed info from a single listing URL
- **All 14 Czech regions** supported
- **Fast**: Uses official Sreality API for reliable data extraction
- **Rich data**: Price, location, size, rooms, floor, features, images, GPS coordinates, seller info

### How to use

#### Search mode - Scrape multiple listings

1. Select **Search** mode
2. Choose a **Region** (e.g., Praha)
3. Select **Property Type** (apartments, houses, land, etc.)
4. Choose **Transaction Type** (sale or rent)
5. Set the **Number of listings** to extract
6. Click **Start**

#### Detail mode - Single listing

1. Select **Detail** mode
2. Paste the **listing URL** from Sreality.cz
3. Click **Start**

### Input examples

#### Search mode - Cheapest apartments in Prague

```json
{
  "mode": "search",
  "region": "praha",
  "propertyType": "byty",
  "transactionType": "prodej",
  "sortBy": "nejlevnejsi",
  "maxListings": 100
}
````

#### Search mode - Houses for rent in South Moravia

```json
{
  "mode": "search",
  "region": "jihomoravsky-kraj",
  "propertyType": "domy",
  "transactionType": "pronajem",
  "maxListings": 50
}
```

#### Detail mode - Single listing

```json
{
  "mode": "detail",
  "detailUrl": "https://www.sreality.cz/detail/prodej/byt/3+kk/praha-cakovice-cakovice/1458544716"
}
```

### Output data

Each listing includes:

| Field | Description |
|-------|-------------|
| `url` | Direct link to the listing |
| `hash_id` | Unique listing identifier |
| `title` | Listing title (e.g., "Prodej bytu 3+kk 77 m2") |
| `price` | Price in CZK |
| `price_currency` | Currency (Kc) |
| `location` | Location/address |
| `size_m2` | Size in square meters |
| `rooms` | Room layout (e.g., "3+kk", "2+1") |
| `floor` | Floor number |
| `building_type` | Building construction type |
| `ownership` | Ownership type (personal, cooperative) |
| `condition` | Property condition |
| `energy_class` | Energy efficiency rating |
| `description` | Full listing description |
| `features` | List of features (elevator, parking, balcony, etc.) |
| `images` | Up to 5 image URLs |
| `gps_lat` | GPS latitude |
| `gps_lon` | GPS longitude |
| `seller_name` | Seller/agent name |
| `seller_phone` | Contact phone number |

#### Output example

```json
{
  "url": "https://www.sreality.cz/detail/prodej/byt/3+kk/praha-cakovice/1458544716",
  "hash_id": 1458544716,
  "title": "Prodej bytu 3+kk 77 m2",
  "price": 12207113,
  "price_currency": "Kc",
  "location": "Praha - Cakovice",
  "size_m2": 77.0,
  "rooms": "3+kk",
  "floor": "2. podlazi",
  "building_type": "Skeletova",
  "ownership": "Osobni",
  "condition": "Novostavba",
  "energy_class": "Trida B - Velmi usporna",
  "description": "Nabizime k prodeji novy byt 3+kk...",
  "features": ["Vodovod", "Internet", "Vytah", "Balkon", "Sklep"],
  "images": [
    "https://d18-a.sdn.cz/d_18/c_img_gZ_o/abc123.jpg",
    "https://d18-a.sdn.cz/d_18/c_img_gZ_o/def456.jpg"
  ],
  "gps_lat": 50.157,
  "gps_lon": 14.519,
  "seller_name": "Jan Novak",
  "seller_phone": "+420 123 456 789"
}
```

### Available regions

| Parameter | Region (Czech) | Region (English) |
|-----------|----------------|------------------|
| `praha` | Praha | Prague |
| `stredocesky-kraj` | Stredocesky kraj | Central Bohemia |
| `jihocesky-kraj` | Jihocesky kraj | South Bohemia |
| `plzensky-kraj` | Plzensky kraj | Plzen Region |
| `karlovarsky-kraj` | Karlovarsky kraj | Karlovy Vary Region |
| `ustecky-kraj` | Ustecky kraj | Usti nad Labem Region |
| `liberecky-kraj` | Liberecky kraj | Liberec Region |
| `kralovehradecky-kraj` | Kralovehradecky kraj | Hradec Kralove Region |
| `pardubicky-kraj` | Pardubicky kraj | Pardubice Region |
| `vysocina` | Vysocina | Highlands |
| `jihomoravsky-kraj` | Jihomoravsky kraj | South Moravia |
| `olomoucky-kraj` | Olomoucky kraj | Olomouc Region |
| `moravskoslezsky-kraj` | Moravskoslezsky kraj | Moravia-Silesia |
| `zlinsky-kraj` | Zlinsky kraj | Zlin Region |

### Property types

| Parameter | Czech | English |
|-----------|-------|---------|
| `byty` | Byty | Apartments |
| `domy` | Domy | Houses |
| `pozemky` | Pozemky | Land |
| `komercni` | Komercni | Commercial |
| `ostatni` | Ostatni | Other |

### Transaction types

| Parameter | Czech | English |
|-----------|-------|---------|
| `prodej` | Prodej | Sale |
| `pronajem` | Pronajem | Rent |

### Sorting options

| Parameter | Czech | English |
|-----------|-------|---------|
| `nejlevnejsi` | Nejlevnejsi | Cheapest first |
| `nejdrazsi` | Nejdrazsi | Most expensive first |
| `nejnovejsi` | Nejnovejsi | Newest first |

### Input parameters reference

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `mode` | string | `search` | Scraping mode: `search` for batch scraping, `detail` for single URL |
| `detailUrl` | string | - | Listing URL (required for detail mode) |
| `region` | string | `praha` | Czech region to search |
| `propertyType` | string | `byty` | Property type to search for |
| `transactionType` | string | `prodej` | Transaction type (sale/rent) |
| `sortBy` | string | `nejlevnejsi` | Sort order for results |
| `maxListings` | integer | `100` | Maximum listings to scrape (1-2000) |
| `maxConcurrency` | integer | `5` | Parallel requests (1-20) |

# Actor input Schema

## `mode` (type: `string`):

Choose scraping mode: 'search' to scrape multiple listings based on filters, or 'detail' to extract data from a single listing URL.

## `detailUrl` (type: `string`):

URL of a single listing to scrape. Copy the full URL from your browser.

## `region` (type: `string`):

Czech region to search in. Choose one location per run.

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

Type of property to search for.

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

Type of transaction - sale or rent.

## `maxListings` (type: `integer`):

Maximum number of listings to scrape. Higher numbers take longer and cost more.

## `sortBy` (type: `string`):

How to sort search results.

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

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

## Actor input object example

```json
{
  "mode": "search",
  "detailUrl": "https://www.sreality.cz/detail/prodej/byt/3+kk/praha-cakovice-cakovice/1458544716",
  "region": "praha",
  "propertyType": "byty",
  "transactionType": "prodej",
  "maxListings": 100,
  "sortBy": "nejlevnejsi",
  "maxConcurrency": 5
}
```

# 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 = {
    "mode": "search",
    "detailUrl": "https://www.sreality.cz/detail/prodej/byt/3+kk/praha-cakovice-cakovice/1458544716",
    "region": "praha",
    "propertyType": "byty",
    "transactionType": "prodej",
    "maxListings": 100,
    "sortBy": "nejlevnejsi",
    "maxConcurrency": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("expert_lighter/sreality-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 = {
    "mode": "search",
    "detailUrl": "https://www.sreality.cz/detail/prodej/byt/3+kk/praha-cakovice-cakovice/1458544716",
    "region": "praha",
    "propertyType": "byty",
    "transactionType": "prodej",
    "maxListings": 100,
    "sortBy": "nejlevnejsi",
    "maxConcurrency": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("expert_lighter/sreality-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 '{
  "mode": "search",
  "detailUrl": "https://www.sreality.cz/detail/prodej/byt/3+kk/praha-cakovice-cakovice/1458544716",
  "region": "praha",
  "propertyType": "byty",
  "transactionType": "prodej",
  "maxListings": 100,
  "sortBy": "nejlevnejsi",
  "maxConcurrency": 5
}' |
apify call expert_lighter/sreality-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Sreality Scraper",
        "description": "Sreality.cz Scraper extracts real estate listings from the largest Czech property portal. \n\nFeatures:\n- Search mode: Scrape hundreds of listings by region, property type, and transaction type\n- Detail mode: Extract complete data from a single listing URL",
        "version": "1.0",
        "x-build-id": "WE14xSFJnjJy5EVJf"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/expert_lighter~sreality-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-expert_lighter-sreality-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/expert_lighter~sreality-scraper/runs": {
            "post": {
                "operationId": "runs-sync-expert_lighter-sreality-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/expert_lighter~sreality-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-expert_lighter-sreality-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "mode": {
                        "title": "Mode",
                        "enum": [
                            "search",
                            "detail"
                        ],
                        "type": "string",
                        "description": "Choose scraping mode: 'search' to scrape multiple listings based on filters, or 'detail' to extract data from a single listing URL.",
                        "default": "search"
                    },
                    "detailUrl": {
                        "title": "Listing URL",
                        "pattern": "^https://www\\.sreality\\.cz/detail/.+",
                        "type": "string",
                        "description": "URL of a single listing to scrape. Copy the full URL from your browser."
                    },
                    "region": {
                        "title": "Region",
                        "enum": [
                            "praha",
                            "stredocesky-kraj",
                            "jihocesky-kraj",
                            "plzensky-kraj",
                            "karlovarsky-kraj",
                            "ustecky-kraj",
                            "liberecky-kraj",
                            "kralovehradecky-kraj",
                            "pardubicky-kraj",
                            "vysocina",
                            "jihomoravsky-kraj",
                            "olomoucky-kraj",
                            "moravskoslezsky-kraj",
                            "zlinsky-kraj"
                        ],
                        "type": "string",
                        "description": "Czech region to search in. Choose one location per run.",
                        "default": "praha"
                    },
                    "propertyType": {
                        "title": "Property Type",
                        "enum": [
                            "byty",
                            "domy",
                            "pozemky",
                            "komercni",
                            "ostatni"
                        ],
                        "type": "string",
                        "description": "Type of property to search for.",
                        "default": "byty"
                    },
                    "transactionType": {
                        "title": "Transaction Type",
                        "enum": [
                            "prodej",
                            "pronajem"
                        ],
                        "type": "string",
                        "description": "Type of transaction - sale or rent.",
                        "default": "prodej"
                    },
                    "maxListings": {
                        "title": "Number of listings to extract",
                        "minimum": 1,
                        "maximum": 2000,
                        "type": "integer",
                        "description": "Maximum number of listings to scrape. Higher numbers take longer and cost more.",
                        "default": 100
                    },
                    "sortBy": {
                        "title": "Sort By",
                        "enum": [
                            "nejlevnejsi",
                            "nejdrazsi",
                            "nejnovejsi"
                        ],
                        "type": "string",
                        "description": "How to sort search results.",
                        "default": "nejlevnejsi"
                    },
                    "maxConcurrency": {
                        "title": "Max Concurrency",
                        "minimum": 1,
                        "maximum": 20,
                        "type": "integer",
                        "description": "Maximum number of parallel requests. Higher values are faster but may trigger rate limiting.",
                        "default": 5
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
