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

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

Download the OpenAPI definition: https://api.apify.com/v2/actors/LbgWi6C8HExNRgWkw/builds/U4RxHkwcBV51gV7Fs/openapi.json
