# Gratka Scraper - Polish Real Estate Listings (`studio-amba/gratka-scraper`) Actor

Scrape real estate listings from Gratka.pl, one of Poland's top property portals. Extract prices, areas, rooms, floors, locations, seller details, and images for apartments, houses, land, and commercial properties. Sale and rental listings. No login needed.

- **URL**: https://apify.com/studio-amba/gratka-scraper.md
- **Developed by:** [Studio Amba](https://apify.com/studio-amba) (community)
- **Categories:** Real estate
- **Stats:** 2 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/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

## Gratka Scraper

Extract real estate listings from [Gratka.pl](https://gratka.pl), one of Poland's largest and longest-running property portals. Gratka covers apartments, houses, land, rooms, garages, and commercial properties across every Polish city and voivodeship, with hundreds of thousands of active listings from agencies and private sellers.

### Why use this actor?

Gratka.pl is a major complement to Otodom and OLX in the Polish real estate market, often hosting unique listings not found on other portals. This actor collects structured property data at scale — prices, price per m2, areas, room counts, floors, locations, seller types, and images — without manual browsing, cookies, or login requirements.

Use cases include property market analysis, investment research, relocation planning, price monitoring across Polish cities, academic housing studies, portfolio tracking, and competitor analysis for real estate agencies.

### How to scrape Gratka data

1. Go to the actor's page on the Apify Store
2. Select a property type (apartments, houses, land, rooms, garages, commercial)
3. Choose transaction type: sale (sprzedaz) or rent (wynajem)
4. Optionally enter a location (e.g., "warszawa", "krakow", "gdansk")
5. Set price range filters if needed
6. Click "Start" to run the scraper
7. Download results as JSON, CSV, or Excel when complete

The actor uses Playwright with residential proxies for reliable access. Data is extracted from listing cards on search result pages.

### Input

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `propertyType` | String | No | `mieszkania` (apartments, default), `domy` (houses), `dzialki` (land), `pokoje` (rooms), `garaze` (garages), `komercyjne` (commercial) |
| `transactionType` | String | No | `sprzedaz` (sale, default) or `wynajem` (rent) |
| `searchQuery` | String | No | Free-text search term (e.g., "balkon", "garaz", "nowe budownictwo") |
| `location` | String | No | City or district from Gratka URL path (e.g., "warszawa", "krakow/stare-miasto", "gdansk"). Empty = all Poland. |
| `priceFrom` | Integer | No | Minimum price in PLN |
| `priceTo` | Integer | No | Maximum price in PLN |
| `maxResults` | Integer | No | Maximum listings to return (default: 50) |
| `proxyConfiguration` | Object | No | Proxy settings. Polish residential proxies configured by default. |

### Output

Each listing contains:

| Field | Type | Example |
|-------|------|---------|
| `propertyTitle` | String | `"Mieszkanie 3-pokojowe, Mokotow"` |
| `propertyType` | String | `"mieszkania"` |
| `transactionType` | String | `"sprzedaz"` |
| `price` | Number | `450000` |
| `currency` | String | `"PLN"` |
| `pricePerSqm` | Number | `12500` |
| `area` | Number | `58.5` |
| `rooms` | Number | `3` |
| `floor` | String | `"3/10"` |
| `location` | String | `"Warszawa, Mokotow"` |
| `district` | String | `"Mokotow"` |
| `sellerType` | String | `"biuro nieruchomosci"` |
| `imageUrl` | String | Primary listing photo URL |
| `url` | String | Full Gratka.pl listing URL |
| `scrapedAt` | String | ISO 8601 timestamp |

### Example output

```json
{
    "propertyTitle": "Mieszkanie 3-pokojowe, Mokotow",
    "propertyType": "mieszkania",
    "transactionType": "sprzedaz",
    "price": 450000,
    "currency": "PLN",
    "pricePerSqm": 12500,
    "area": 58.5,
    "rooms": 3,
    "floor": "3/10",
    "location": "Warszawa, Mokotow",
    "district": "Mokotow",
    "sellerType": "biuro nieruchomosci",
    "imageUrl": "https://img.gratka.pl/...",
    "url": "https://gratka.pl/nieruchomosci/mieszkanie-warszawa-mokotow/ob/46000017",
    "scrapedAt": "2026-06-09T14:30:00.000Z"
}
````

### Cost estimate

This actor uses Playwright with residential proxies. Approximate costs:

- **~50 results**: $0.10-0.25 in platform credits
- **~500 results**: $0.50-1.50 in platform credits
- **~5,000 results**: $3.00-8.00 in platform credits

Costs depend on proxy usage and the number of pages scraped.

### Tips for best results

- **Use residential proxies** (configured by default). Polish residential proxies have the highest success rate.
- **Start small** — test with `maxResults: 20` before running large scrapes.
- **Use specific locations** — searching for "warszawa" returns more focused results than searching all of Poland.
- **Property types in Polish** — use `mieszkania`, `domy`, `dzialki`, `pokoje`, `garaze`, `komercyjne`.
- **Location paths** — use the path format from Gratka.pl URLs: "warszawa", "krakow/stare-miasto", "poznan".
- **Combine filters** — narrow results with price range, location, and property type for targeted data.

### Limitations

- Some listings may have limited data depending on what the seller published.
- The actor scrapes the public website. No login or authentication is used. No cookies required.
- Price data reflects the listed asking price, not the final transaction price.
- Results per search page are limited by Gratka.pl's pagination (typically 32 per page).
- Very large scrapes (5,000+ listings) may take longer due to rate limiting.

### Supported property types

| Polish | English | Input value |
|--------|---------|-------------|
| Mieszkania | Apartments | `mieszkania` |
| Domy | Houses | `domy` |
| Dzialki | Land / Plots | `dzialki` |
| Pokoje | Rooms | `pokoje` |
| Garaze | Garages | `garaze` |
| Komercyjne | Commercial | `komercyjne` |

### Related scrapers

- [Otodom Scraper](https://apify.com/itsnotyouitsme/otodom-scraper) — Poland's largest real estate portal
- [OLX Scraper](https://apify.com/itsnotyouitsme/olx-scraper) — OLX.pl classifieds (covers real estate too)
- [Immoweb Scraper](https://apify.com/itsnotyouitsme/immoweb-scraper) — Belgium's #1 real estate portal
- [ImmoScout24 Scraper](https://apify.com/itsnotyouitsme/immoscout24-scraper) — German/Austrian real estate
- [Immobiliare Scraper](https://apify.com/itsnotyouitsme/immobiliare-scraper) — Italian real estate listings
- [Idealista Scraper](https://apify.com/itsnotyouitsme/idealista-scraper) — Spanish real estate portal
- [Funda Scraper](https://apify.com/itsnotyouitsme/funda-scraper) — Dutch real estate listings

# Actor input Schema

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

Type of property to search for on Gratka.pl.

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

Search for properties for sale or for rent.

## `searchQuery` (type: `string`):

Free-text search term to filter listings (e.g., 'balkon', 'garaz', 'nowe budownictwo'). Optional.

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

City or district to search. Use the path from Gratka.pl URL, e.g., 'warszawa', 'krakow', 'gdansk', 'wroclaw', 'warszawa/mokotow'. Defaults to all of Poland if empty.

## `priceFrom` (type: `integer`):

Minimum listing price in PLN.

## `priceTo` (type: `integer`):

Maximum listing price in PLN.

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

Maximum number of property listings to scrape.

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

Residential proxies recommended for best results. Polish proxies have the highest success rate.

## Actor input object example

```json
{
  "propertyType": "mieszkania",
  "transactionType": "sprzedaz",
  "location": "warszawa",
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "countryCode": "PL"
  }
}
```

# 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 = {
    "propertyType": "mieszkania",
    "transactionType": "sprzedaz",
    "location": "warszawa",
    "maxResults": 50,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "countryCode": "PL"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("studio-amba/gratka-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 = {
    "propertyType": "mieszkania",
    "transactionType": "sprzedaz",
    "location": "warszawa",
    "maxResults": 50,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "countryCode": "PL",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("studio-amba/gratka-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 '{
  "propertyType": "mieszkania",
  "transactionType": "sprzedaz",
  "location": "warszawa",
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "countryCode": "PL"
  }
}' |
apify call studio-amba/gratka-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Gratka Scraper - Polish Real Estate Listings",
        "description": "Scrape real estate listings from Gratka.pl, one of Poland's top property portals. Extract prices, areas, rooms, floors, locations, seller details, and images for apartments, houses, land, and commercial properties. Sale and rental listings. No login needed.",
        "version": "0.1",
        "x-build-id": "Z2Usuop0tLb5zomdv"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/studio-amba~gratka-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-studio-amba-gratka-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/studio-amba~gratka-scraper/runs": {
            "post": {
                "operationId": "runs-sync-studio-amba-gratka-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/studio-amba~gratka-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-studio-amba-gratka-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": {
                    "propertyType": {
                        "title": "Property Type",
                        "enum": [
                            "mieszkania",
                            "domy",
                            "dzialki",
                            "pokoje",
                            "garaze",
                            "komercyjne"
                        ],
                        "type": "string",
                        "description": "Type of property to search for on Gratka.pl.",
                        "default": "mieszkania"
                    },
                    "transactionType": {
                        "title": "Transaction Type",
                        "enum": [
                            "sprzedaz",
                            "wynajem"
                        ],
                        "type": "string",
                        "description": "Search for properties for sale or for rent.",
                        "default": "sprzedaz"
                    },
                    "searchQuery": {
                        "title": "Search Query",
                        "type": "string",
                        "description": "Free-text search term to filter listings (e.g., 'balkon', 'garaz', 'nowe budownictwo'). Optional."
                    },
                    "location": {
                        "title": "Location",
                        "type": "string",
                        "description": "City or district to search. Use the path from Gratka.pl URL, e.g., 'warszawa', 'krakow', 'gdansk', 'wroclaw', 'warszawa/mokotow'. Defaults to all of Poland if empty."
                    },
                    "priceFrom": {
                        "title": "Minimum Price (PLN)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Minimum listing price in PLN."
                    },
                    "priceTo": {
                        "title": "Maximum Price (PLN)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Maximum listing price in PLN."
                    },
                    "maxResults": {
                        "title": "Max Results",
                        "minimum": 1,
                        "maximum": 10000,
                        "type": "integer",
                        "description": "Maximum number of property listings to scrape.",
                        "default": 50
                    },
                    "proxyConfiguration": {
                        "title": "Proxy Configuration",
                        "type": "object",
                        "description": "Residential proxies recommended for best results. Polish proxies have the highest success rate."
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
