# 🏠 Trovit Real Estate Scraper — 20+ Countries (`zestio/trovit-real-estate-scraper`) Actor

Extract property listings from Trovit — the international real estate aggregator covering Spain, France, Italy, Germany, Portugal, Netherlands, UK, Brazil, Poland, and 10+ more countries. Fast Cheerio-based scraper, no browser needed.

- **URL**: https://apify.com/zestio/trovit-real-estate-scraper.md
- **Developed by:** [Christian](https://apify.com/zestio) (community)
- **Categories:** Real estate, Lead generation, Agents
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.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/platform/actors/running/actors-in-store#pay-per-event

## 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/docs.md):

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

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python/docs.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/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

## 🏠 Trovit Real Estate Scraper — 20+ Countries

Extract property listings from **Trovit** — the international real estate aggregator operating in Spain, France, Italy, Germany, UK, Brazil, Netherlands, Portugal, and 10+ more countries.

### ✨ Why Trovit?

Trovit aggregates listings from **thousands of real estate websites** across 20+ countries. One search gives you properties from Idealista, Fotocasa, SeLoger, Immobiliare, Zoopla, and hundreds more — all in one place.

- 🌍 **20+ Countries** — Spain, France, Italy, Germany, UK, Brazil, NL, PT, and more
- ⚡ **Lightning Fast** — Cheerio-based HTML parsing, no browser overhead
- 💰 **Cheaper** — No browser = lower compute costs = lower price for you
- 📊 **Rich Data** — Price, size, rooms, bathrooms, features, photos, source
- 🔄 **Auto-paginate** — Handles thousands of pages automatically

### 📋 Output Fields

| Field | Description |
|-------|-------------|
| `title` | Listing title |
| `price` | Price (numeric, in local currency) |
| `priceText` | Original price text |
| `priceType` | `sale`, `rent`, or `upon_request` |
| `propertyType` | Apartment, house, villa, etc. |
| `location` | City/region |
| `rooms` | Number of bedrooms |
| `bathrooms` | Number of bathrooms |
| `sizeSqm` | Size in m² |
| `features` | Terrace, pool, AC, elevator, etc. |
| `daysAgo` | Days since published |
| `source` | Original listing source |
| `url` | Direct listing URL |
| `imageUrl` | Main image URL |
| `country` | 2-letter country code |

### 🚀 Usage

#### Simple Mode (Country + City)

1. Select your country
2. Type a city name
3. Choose Sale or Rent
4. Run!

#### Advanced Mode (Custom URL)

Paste any Trovit search URL directly:

````

https://casas.trovit.es/search?type=1\&text=Madrid
https://immobilier.trovit.fr/search?type=1\&text=Paris
https://homes.trovit.co.uk/search?type=1\&text=London

````

### 📊 Sample Output

```json
{
  "title": "Piso de alto standing de 97 m2 en venta en Madrid, España",
  "price": 350000,
  "priceText": "350.000 €",
  "priceType": "sale",
  "propertyType": "piso",
  "location": "Madrid, Comunidad de Madrid",
  "rooms": 3,
  "bathrooms": 2,
  "sizeSqm": 97,
  "features": ["Terraza", "Aire acondicionado", "Ascensor"],
  "daysAgo": 9,
  "source": "LUXURYESTATE",
  "url": "https://casas.trovit.es/...",
  "country": "es"
}
````

### 💰 Pricing

| Tier | Price | Listings |
|------|-------|----------|
| Starter | Free (Apify credits) | Up to 100 |
| Standard | €0.80 | 1,000 |
| Pro | €6.00 | 10,000 |

***

Built by **Zestio** for the Apify Store.

# Actor input Schema

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

List of Trovit search URLs to scrape. You can paste search results page URLs directly.

## `country` (type: `string`):

Trovit country domain. Supported: es, fr, it, de, pt, nl, uk, be, ch, ie, br, pl, hu, ro, za, ae

## `searchText` (type: `string`):

City, region, or keywords to search for. Example: Madrid, Barcelona, Paris

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

Search for properties for sale or rent

## `searchUrl` (type: `string`):

Paste a complete Trovit search URL instead of using country+query. Overrides country/searchText.

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

Maximum number of listings to scrape. 0 = all results.

## `proxy` (type: `object`):

Proxy settings to bypass anti-bot protection. Residential proxies recommended for Trovit.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://casas.trovit.es/search?type=1&text=Madrid"
    }
  ],
  "country": "es",
  "searchText": "Madrid",
  "searchType": "sale",
  "maxListings": 100,
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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 = {
    "startUrls": [
        {
            "url": "https://casas.trovit.es/search?type=1&text=Madrid"
        }
    ],
    "searchText": "Madrid"
};

// Run the Actor and wait for it to finish
const run = await client.actor("zestio/trovit-real-estate-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 = {
    "startUrls": [{ "url": "https://casas.trovit.es/search?type=1&text=Madrid" }],
    "searchText": "Madrid",
}

# Run the Actor and wait for it to finish
run = client.actor("zestio/trovit-real-estate-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 '{
  "startUrls": [
    {
      "url": "https://casas.trovit.es/search?type=1&text=Madrid"
    }
  ],
  "searchText": "Madrid"
}' |
apify call zestio/trovit-real-estate-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "🏠 Trovit Real Estate Scraper — 20+ Countries",
        "description": "Extract property listings from Trovit — the international real estate aggregator covering Spain, France, Italy, Germany, Portugal, Netherlands, UK, Brazil, Poland, and 10+ more countries. Fast Cheerio-based scraper, no browser needed.",
        "version": "1.0",
        "x-build-id": "U4RxHkwcBV51gV7Fs"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/zestio~trovit-real-estate-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-zestio-trovit-real-estate-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/zestio~trovit-real-estate-scraper/runs": {
            "post": {
                "operationId": "runs-sync-zestio-trovit-real-estate-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/zestio~trovit-real-estate-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-zestio-trovit-real-estate-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": {
                    "startUrls": {
                        "title": "Start URLs",
                        "type": "array",
                        "description": "List of Trovit search URLs to scrape. You can paste search results page URLs directly.",
                        "items": {
                            "type": "object",
                            "required": [
                                "url"
                            ],
                            "properties": {
                                "url": {
                                    "type": "string",
                                    "title": "URL of a web page",
                                    "format": "uri"
                                }
                            }
                        }
                    },
                    "country": {
                        "title": "Country",
                        "enum": [
                            "es",
                            "fr",
                            "it",
                            "de",
                            "pt",
                            "nl",
                            "uk",
                            "be",
                            "ch",
                            "ie",
                            "br",
                            "pl",
                            "hu",
                            "ro",
                            "za",
                            "ae"
                        ],
                        "type": "string",
                        "description": "Trovit country domain. Supported: es, fr, it, de, pt, nl, uk, be, ch, ie, br, pl, hu, ro, za, ae",
                        "default": "es"
                    },
                    "searchText": {
                        "title": "Search Query",
                        "type": "string",
                        "description": "City, region, or keywords to search for. Example: Madrid, Barcelona, Paris"
                    },
                    "searchType": {
                        "title": "Listing Type",
                        "enum": [
                            "sale",
                            "rent"
                        ],
                        "type": "string",
                        "description": "Search for properties for sale or rent",
                        "default": "sale"
                    },
                    "searchUrl": {
                        "title": "Custom Search URL (optional)",
                        "type": "string",
                        "description": "Paste a complete Trovit search URL instead of using country+query. Overrides country/searchText."
                    },
                    "maxListings": {
                        "title": "Max Listings",
                        "minimum": 0,
                        "maximum": 50000,
                        "type": "integer",
                        "description": "Maximum number of listings to scrape. 0 = all results.",
                        "default": 100
                    },
                    "proxy": {
                        "title": "Proxy Configuration",
                        "type": "object",
                        "description": "Proxy settings to bypass anti-bot protection. Residential proxies recommended for Trovit.",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ]
                        }
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
