# 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

from $2.00 / 1,000 result scrapeds

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?

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

## 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": 5,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "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": 5,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "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": 5,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "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(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 '{
  "propertyType": "mieszkania",
  "transactionType": "sprzedaz",
  "location": "warszawa",
  "maxResults": 5,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "PL"
  }
}' |
apify call studio-amba/gratka-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,studio-amba/gratka-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/03bF2awgAoF0NsHsz/builds/EVZAcVsZFAbBmMQga/openapi.json
