# Imovirtual Scraper - Portugal Real Estate Listings (`studio-amba/imovirtual-scraper`) Actor

Scrape property listings from Imovirtual.com, Portugal's leading real estate portal. Extract prices, locations, areas, rooms, images, and agency details for apartments, houses, rooms, land, and commercial properties for sale or rent. No login or cookies required.

- **URL**: https://apify.com/studio-amba/imovirtual-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 $8.00 / 1,000 property listing 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/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.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

## Imovirtual Scraper — Portugal Real Estate Listings

Scrape property listings from [Imovirtual.com](https://www.imovirtual.com), Portugal's leading real estate portal (part of the OLX Group). Search apartments, houses, rooms, land, garages, and commercial properties for sale or rent, and get clean structured JSON with prices, areas, rooms, locations, photos, and agency details.

No login, no cookies, no API keys required.

### What does this actor do?

You give it a Portuguese location (any district, city, parish, or neighborhood), a transaction type (buy or rent), and a property type. It searches Imovirtual and returns every matching listing as a flat JSON object, up to the limit you set.

It reads the same data the Imovirtual website itself renders, so you get exactly what a visitor sees: asking price, price per square meter, living area, number of rooms, floor, full location hierarchy, publication date, photos, and whether the seller is an agency or a private owner.

### Why use it?

- **Market research** — track asking prices per city, parish, or neighborhood over time.
- **Investment analysis** — compare price per m² across regions before buying.
- **Lead generation** — find new listings from private owners or specific agencies the moment they appear.
- **Portfolio monitoring** — agencies can watch competitor listings and pricing in their area.
- **Data science** — build datasets of the Portuguese housing market for modeling and dashboards.

### Input options

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `location` | string | `lisboa` | District, city, parish, or neighborhood. Free text like `vila nova de gaia` or `cascais` is resolved automatically. |
| `transaction` | string | `comprar` | `comprar` (buy) or `arrendar` (rent). |
| `propertyType` | string | `apartamento` | One of `apartamento`, `moradia`, `quarto`, `terreno`, `garagem`, `imoveis-comerciais`, `armazens`, `empreendimento`. |
| `priceMin` | integer | — | Minimum price in EUR (monthly rent for `arrendar`). |
| `priceMax` | integer | — | Maximum price in EUR (monthly rent for `arrendar`). |
| `maxResults` | integer | `50` | Maximum number of listings to return. |
| `proxyConfiguration` | object | PT residential | Apify proxy settings. Portuguese residential proxies recommended. |

#### Example input

```json
{
    "location": "porto",
    "transaction": "comprar",
    "propertyType": "apartamento",
    "priceMax": 300000,
    "maxResults": 100
}
````

### Output fields

| Field | Type | Example |
|-------|------|---------|
| `listingId` | integer | `19205349` |
| `listingTitle` | string | `"Apartamento T1 para venda"` |
| `transactionType` | string | `"sale"` |
| `propertyType` | string | `"apartment"` |
| `price` | number | `420000` |
| `currency` | string | `"EUR"` |
| `pricePerSqm` | number | `3595.9` |
| `areaM2` | number | `76` |
| `rooms` | integer | `2` |
| `floor` | integer | `5` (0 = ground floor) |
| `street` | string | `"Praça São Francisco de Assis"` |
| `city` | string | `"Carnide"` |
| `province` | string | `"Lisboa"` |
| `locationFull` | string | `"Telheiras, Carnide, Lisboa, Lisboa"` |
| `agencyName` | string | `"Remax Ideal Mor"` |
| `isPrivateOwner` | boolean | `false` |
| `summary` | string | Short listing description |
| `imageUrl` | string | Main photo URL |
| `imageUrls` | array | All photo URLs |
| `datePublished` | string | `"2026-07-09 23:10:51"` |
| `url` | string | Full listing URL |
| `scrapedAt` | string | ISO timestamp |

#### Example output

```json
{
    "listingId": 19205349,
    "listingTitle": "Apartamento T1 para venda",
    "transactionType": "sale",
    "propertyType": "apartment",
    "price": 420000,
    "currency": "EUR",
    "pricePerSqm": 359.59,
    "areaM2": 76,
    "rooms": 2,
    "floor": 5,
    "street": "Praça São Francisco de Assis",
    "city": "Carnide",
    "province": "Lisboa",
    "locationFull": "Telheiras, Carnide, Lisboa, Lisboa",
    "agencyName": "Remax Ideal Mor",
    "isPrivateOwner": false,
    "summary": "Apartamento T1 com varanda em Telheiras...",
    "imageUrl": "https://ireland.apollo.olxcdn.com/v1/files/...",
    "imageUrls": ["https://ireland.apollo.olxcdn.com/v1/files/..."],
    "datePublished": "2026-07-09 23:10:51",
    "url": "https://www.imovirtual.com/pt/ad/apartamento-t1-para-venda-ID1iAbH",
    "scrapedAt": "2026-07-10T09:00:00.000Z"
}
```

### How to scrape Imovirtual data

1. Open the actor on Apify and click **Try for free** (or run it via the Apify API).
2. Set `location` to any Portuguese place: `lisboa`, `porto`, `faro`, `braga`, `cascais`, `vila nova de gaia`, or even a parish like `alvalade`. The actor resolves free text to the right Imovirtual location automatically.
3. Pick the transaction: `comprar` for sales listings, `arrendar` for rentals.
4. Pick a property type: apartments, houses, rooms, land, garages, commercial spaces, warehouses, or new developments.
5. Optionally set `priceMin` / `priceMax` to narrow the price band.
6. Set `maxResults` and press **Start**. Results land in the run's dataset, ready to download as JSON, CSV, or Excel, or to fetch via API.

The actor paginates through search results automatically (72 listings per page) and deduplicates listings by ID, so you get each property once.

### Cost estimate

The actor uses plain HTTP requests (no browser), so it is fast and cheap to run. One search page returns up to 72 listings in a single request. Scraping 1,000 listings typically takes well under two minutes and a fraction of a compute unit, plus a small amount of residential proxy traffic.

### Limitations and known issues

- The actor scrapes search result cards. They contain price, area, rooms, floor, location, photos, and agency, but not the full listing description or the advertiser's phone number.
- Listings with a hidden price (`hidePrice`) return `price: null` on purpose.
- `floor` uses numbers: `0` is the ground floor (rés-do-chão), `-1` a basement, `99` an attic.
- Imovirtual serves Portuguese property data only. For Polish real estate from the same OLX platform family, see our Otodom scraper.
- Very broad searches (all of Portugal, no filters) can match tens of thousands of listings — use `maxResults` to keep runs fast.

### FAQ

**Do I need an Imovirtual account?**
No. The actor reads public search results only.

**Which locations are supported?**
Anything Imovirtual knows: districts (Lisboa, Porto, Faro...), councils, parishes, and neighborhoods. Free text is resolved through Imovirtual's own location autocomplete, so accents and spacing don't matter.

**Can I get rental prices?**
Yes. Set `transaction` to `arrendar` and `price` becomes the monthly rent in EUR.

**Is this legal?**
The actor only collects publicly available listing data, the same information any visitor sees in a browser. You are responsible for how you use the data — respect Imovirtual's terms of service and applicable data protection laws.

# Actor input Schema

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

Portuguese district, city, parish, or neighborhood (e.g. 'lisboa', 'porto', 'faro', 'vila nova de gaia', 'cascais'). Free text is resolved automatically to an Imovirtual location. Leave empty for Lisboa.

## `transaction` (type: `string`):

Buy (comprar) or rent (arrendar) listings.

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

Type of property to search for.

## `priceMin` (type: `integer`):

Only return listings priced at or above this amount (EUR; monthly rent for arrendar).

## `priceMax` (type: `integer`):

Only return listings priced at or below this amount (EUR; monthly rent for arrendar).

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

Maximum number of listings to scrape.

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

Proxy settings. Portuguese residential proxies recommended for reliable access.

## Actor input object example

```json
{
  "location": "lisboa",
  "transaction": "comprar",
  "propertyType": "apartamento",
  "maxResults": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "PT"
  }
}
```

# 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 = {
    "location": "lisboa",
    "transaction": "comprar",
    "maxResults": 20,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "PT"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("studio-amba/imovirtual-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 = {
    "location": "lisboa",
    "transaction": "comprar",
    "maxResults": 20,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "PT",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("studio-amba/imovirtual-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 '{
  "location": "lisboa",
  "transaction": "comprar",
  "maxResults": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "PT"
  }
}' |
apify call studio-amba/imovirtual-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Imovirtual Scraper - Portugal Real Estate Listings",
        "description": "Scrape property listings from Imovirtual.com, Portugal's leading real estate portal. Extract prices, locations, areas, rooms, images, and agency details for apartments, houses, rooms, land, and commercial properties for sale or rent. No login or cookies required.",
        "version": "0.1",
        "x-build-id": "C76kspNXZ9QnCsy9a"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/studio-amba~imovirtual-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-studio-amba-imovirtual-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~imovirtual-scraper/runs": {
            "post": {
                "operationId": "runs-sync-studio-amba-imovirtual-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~imovirtual-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-studio-amba-imovirtual-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": {
                    "location": {
                        "title": "Location",
                        "type": "string",
                        "description": "Portuguese district, city, parish, or neighborhood (e.g. 'lisboa', 'porto', 'faro', 'vila nova de gaia', 'cascais'). Free text is resolved automatically to an Imovirtual location. Leave empty for Lisboa."
                    },
                    "transaction": {
                        "title": "Transaction Type",
                        "enum": [
                            "comprar",
                            "arrendar"
                        ],
                        "type": "string",
                        "description": "Buy (comprar) or rent (arrendar) listings.",
                        "default": "comprar"
                    },
                    "propertyType": {
                        "title": "Property Type",
                        "enum": [
                            "apartamento",
                            "moradia",
                            "quarto",
                            "terreno",
                            "garagem",
                            "imoveis-comerciais",
                            "armazens",
                            "empreendimento"
                        ],
                        "type": "string",
                        "description": "Type of property to search for.",
                        "default": "apartamento"
                    },
                    "priceMin": {
                        "title": "Minimum Price (EUR)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Only return listings priced at or above this amount (EUR; monthly rent for arrendar)."
                    },
                    "priceMax": {
                        "title": "Maximum Price (EUR)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Only return listings priced at or below this amount (EUR; monthly rent for arrendar)."
                    },
                    "maxResults": {
                        "title": "Max Results",
                        "minimum": 1,
                        "maximum": 50000,
                        "type": "integer",
                        "description": "Maximum number of listings to scrape.",
                        "default": 50
                    },
                    "proxyConfiguration": {
                        "title": "Proxy Configuration",
                        "type": "object",
                        "description": "Proxy settings. Portuguese residential proxies recommended for reliable access."
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
