# 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:** 58 total users, 1 monthly users, 100.0% 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/actors/running/actors-in-store.md#pay-per-usage

## 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

## 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(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 '{
  "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": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,expert_lighter/sreality-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/RZWwFpwegnA30mKMx/builds/WE14xSFJnjJy5EVJf/openapi.json
