# Imovirtual Scraper: Portugal Homes & Land for Sale or Rent (`datadesk-io/imovirtual-scraper`) Actor

Scrape Imovirtual (imovirtual.com), a top Portuguese property portal: apartments, houses, land, shops and offices for sale or rent by district or council. Price, €/m², bedrooms, area, floor, features, parish, agency, photos, dates. Alerts. $1.50 per 1,000 listings.

- **URL**: https://apify.com/datadesk-io/imovirtual-scraper.md
- **Developed by:** [DataDesk](https://apify.com/datadesk-io) (community)
- **Categories:** Real estate, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.20 / 1,000 listings

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

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

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Imovirtual Scraper: Portugal Homes, Land and Commercial Property

Scrape **Imovirtual (imovirtual.com)**, one of Portugal's biggest property portals, by **district, council or any Imovirtual result URL**: **apartments, houses, land, shops, offices, warehouses, garages and rooms, for sale or for rent**. Every listing comes with **price, €/m², bedrooms (T number), area, plot area, floor, features (A/C, parking, balcony, lift…), street, district, council, parish, neighbourhood, private-owner flag, agency name, page and logo, exclusive / promoted flags, development, photos and dates**. Filter by price, bedrooms, area and private owners, and get **daily new-listing alerts**. No login, no proxy. **$1.50 per 1,000 listings.**

### Try it now (one click)

1. Click **Start**. The prefilled input gets 36 apartments for sale in the Lisbon district. In our latest check (Nov 24, 2026) it returned **36 listings in about 3 seconds**. An empty input runs a small demo too.
2. Add locations (lisboa, porto, faro, lisboa/cascais, portugal), choose sale or rent and property type, optional price, bedrooms and area filters, then set how many listings per location.
3. Download the results as CSV, Excel or JSON, or get them via API, webhooks, Make or Zapier.

**Price example:** 100 listings = **$0.155**, 1,000 listings = **$1.505** ($1.50 per 1,000 listings + $0.005 per run). Silver and Gold plan users pay 10% and 20% less per listing. Apify's free plan includes $5 of usage every month, enough for about 3,330 listings. Runs that find nothing are not charged.

#### Sample of real results

*Real rows from a local test run on Nov 24, 2026 (some columns). Each listing also includes the other fields listed below.*

| Title | Price € | T | m² | Council | Agency |
|---|---|---|---|---|---|
| Apartamento T3 totalmente remodelado / 102 m² … | 368,000 | 4 | 114 | Sintra | KW Exclusive |
| Luxuoso apartamento em Cascais | 629,000 | 3 | 90 | Cascais | WeFindIt - Mediação Imobiliária |
| Apartamento Duplex T2+1 no Centro da Malveira | 535,000 | 4 | 214 | Mafra | — |
| Apartamento na Madalena primeira linha de praia | 1200 | 2 | 51.9 | Vila Nova de Gaia | OLX |

### What you get

| Field group | Fields |
|---|---|
| Listing | ID, operation, property type, title, URL, created and refreshed dates, photos (count, main image, up to 10 URLs), video and virtual tour flags |
| Price | price in EUR, €/m², price hidden flag |
| Property | bedrooms, area m², plot area, floor, features |
| Location | street, district, council, parish, neighbourhood, location slug |
| Advertiser | private owner flag, advertiser type, agency name, page and logo, exclusive and promoted flags, development |
| Context | search location, search URL, total listings Imovirtual reports, source, alerts flag |

### Why this Actor

- **Parish-level location** (district, council, parish, neighbourhood) for precise Portuguese market maps.
- **€/m² on every listing** (Imovirtual's value, or computed from price and area for rentals).
- **8 property types, sale and rent**, any district or council, or the whole country.
- **Fast**: 36 listings per request, about 36 listings in 3 seconds.
- **$1.50 per 1,000 listings** (+ $0.005 per run): lower than the $2 per 1,000 of the most-used Imovirtual scraper.

### How to use it

1. Click **Try for free** (or **Start**): the prefilled input runs a quick test.
2. Add locations (lisboa, porto, faro, lisboa/cascais, portugal), choose sale or rent and property type, optional price, bedrooms and area filters, then set how many listings per location.
3. Click **Start** and wait a few seconds.
4. Open the **Output** tab and export as **JSON, CSV, Excel, XML or HTML**, or read the dataset via API.

### Input examples

**Apartments for sale in Lisbon district (prefill):**

```json
{"locations": ["lisboa"], "maxItemsPerSearch": 36}
```

**T2+ rentals in Porto up to €1,500:**

```json
{"locations": ["porto"], "operation": "rent", "minRooms": 2, "maxPrice": 1500, "maxItemsPerSearch": 300}
```

**Land for sale in the Algarve (Faro):**

```json
{"locations": ["faro"], "propertyType": "land", "maxItemsPerSearch": 500}
```

**Daily alerts: private-owner houses in Cascais:**

```json
{"locations": ["lisboa/cascais"], "propertyType": "house", "privateOnly": true, "onlyNewListings": true, "alertsKey": "cascais-private"}
```

#### Input fields

| Field | Type | Description |
|---|---|---|
| `locations` | array | Portuguese districts or councils as Imovirtual slugs, one per line: lisboa, porto, faro, setubal, braga, lisboa/cascais, porto/vila-nova-de-gaia, or portugal (whole country). Empty = lisboa (demo). |
| `operation` | string | Sale or rental listings. |
| `propertyType` | string | Type of property. |
| `minPrice` | integer | Skip cheaper listings (filtered by the Actor; skipped listings are not charged). |
| `maxPrice` | integer | Skip more expensive listings. |
| `minRooms` | integer | Minimum bedrooms (T2 = 2). |
| `minAreaSqm` | integer | Minimum area. |
| `privateOnly` | boolean | Keep only listings from private owners (particulares). |
| `maxItemsPerSearch` | integer | Imovirtual shows 36 listings per page. |
| `maxPagesPerSearch` | integer | Stops reading a location after this many pages (useful with strict filters). |
| `maxResults` | integer | Hard cap for the whole run. |
| `startUrls` | array | Optional: Imovirtual result URLs like https://www.imovirtual.com/pt/resultados/arrendar/apartamento/porto. |
| `onlyNewListings` | boolean | Return only listings not returned in earlier runs with the same alerts key. Only new listings are charged. |
| `alertsKey` | string | Name of this alert (e.g. t2-porto). Each key keeps its own memory. |

### Output example

*Example record from a local test run (long lists shortened).*

```json
{
  "listingId": "19367213",
  "operation": "buy",
  "propertyType": "FLAT",
  "title": "Apartamento T3 totalmente remodelado | 102 m² de á",
  "price": 368000,
  "currency": "EUR",
  "pricePerSqm": 3228.07,
  "hidePrice": false,
  "rooms": 4,
  "roomsCode": "FOUR",
  "areaSqm": 114,
  "plotAreaSqm": null,
  "floor": null,
  "floorCode": null,
  "features": [
    "BALCONY"
  ],
  "street": "Rua da Presa - Serra das Minas",
  "district": "Lisboa",
  "council": "Sintra",
  "parish": "Rio de Mouro",
  "neighborhood": "Serra das Minas",
  "locationPath": "lisboa/sintra/rio-de-mouro/serra-das-minas",
  "isPrivateOwner": false,
  "advertiserType": "business",
  "agencyName": "KW Exclusive",
  "agencyUrl": "https://www.imovirtual.com/pt/empresas/agencias-imobiliarias/kw-exclusive-ID4488913",
  "agencyLogo": "https://ireland.apollo.olxcdn.com/v1/files/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmbiI6InBtODV4dDgxMHNxODItQVBUIn0.GQJ210cR1Y3YQTkIZk_GGNmI9YUJHap4tZ_iWXy_uEg/image",
  "isExclusive": false,
  "isPromoted": false,
  "developmentTitle": null,
  "developmentUrl": null,
  "hasVideo": false,
  "hasVirtualTour": false,
  "imageCount": 27,
  "mainImage": "https://ireland.apollo.olxcdn.com/v1/files/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmbiI6Im9oOTI1OGtsZ2NlZTItRUNPU1lTVEVNIiwidyI6W3siZm4iOiI2OW5scGE3ZWNxbTcxLUFQVCIsInMiOiIxNiIsImEi…",
  "createdAt": "2026-11-24T23:17:14+00:00",
  "pushedUpAt": null,
  "url": "https://www.imovirtual.com/pt/ad/apartamento-t3-totalmente-remodelado-102-m-de-a-ID1jgip",
  "searchLocation": "lisboa",
  "searchUrl": "https://www.imovirtual.com/pt/resultados/comprar/apartamento/lisboa",
  "totalResults": 17406,
  "source": "imovirtual.com",
  "scrapedAt": "2026-11-24T23:19:48.508221+00:00",
  "isNew": false
}
```

#### Output fields

| Field | Description |
|---|---|
| `listingId` | Imovirtual listing ID |
| `operation` | buy or rent |
| `propertyType` | FLAT, HOUSE, TERRAIN… |
| `title` | Listing title |
| `price` | Asking price or monthly rent |
| `currency` | EUR |
| `pricePerSqm` | Price per square metre (Imovirtual) |
| `hidePrice` | Price on request |
| `rooms` | Bedrooms (T number; 11 = more than 10) |
| `roomsCode` | Imovirtual rooms code |
| `areaSqm` | Area |
| `plotAreaSqm` | Land area, when given |
| `floor` | Floor (0 = ground, -1 = cellar) |
| `floorCode` | Imovirtual floor code |
| `features` | e.g. AIR_CONDITIONING, PARKING_SPOT, BALCONY, LIFT |
| `street` | Street, when shown |
| `district` | District |
| `council` | Concelho |
| `parish` | Freguesia |
| `neighborhood` | Neighbourhood |
| `locationPath` | Imovirtual location path |
| `isPrivateOwner` | Listed by a private owner |
| `advertiserType` | business, private, developer… |
| `agencyName` | Agency name (agencies only) |
| `agencyUrl` | Agency page on Imovirtual |
| `agencyLogo` | Logo URL |
| `isExclusive` | Exclusive offer |
| `isPromoted` | Promoted listing |
| `developmentTitle` | New development name |
| `developmentUrl` | Development page |
| `hasVideo` | Has video |
| `hasVirtualTour` | Has virtual tour / 3D view |
| `imageCount` | Number of photos |
| `mainImage` | First photo URL |
| `images` | Up to 10 photo URLs |
| `createdAt` | First publication date (UTC) |
| `pushedUpAt` | Last refresh date (UTC) |
| `url` | Listing page |
| `searchLocation` | Location used |
| `searchUrl` | Result page used |
| `totalResults` | Listings Imovirtual reports for the search |
| `source` | imovirtual.com |
| `scrapedAt` | UTC timestamp |
| `isNew` | True when returned in alerts mode |

### Pricing

Pay-per-event: **$0.005** once per run that saves results + **$0.0015 per listing** ($1.50 / 1,000). Runs that save nothing are not charged.

| Listings saved | Approx. cost |
|---|---|
| 20 | $0.035 |
| 100 | $0.155 |
| 1,000 | $1.505 |
| 10,000 | $15.005 |

### Use cases

- Property investors: compare €/m² by council and parish
- Real estate agencies: competitor and market monitoring
- Rental market analysis for Lisbon, Porto and the Algarve
- Proptech and valuation models: structured Portuguese listings
- Home seekers: daily alerts for new listings

### Integrations / API

Works with the Apify API, Schedules, webhooks, Make, Zapier, n8n and MCP. Example:

```bash
curl "https://api.apify.com/v2/acts/datadesk-io~imovirtual-scraper/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $APIFY_TOKEN" -H "Content-Type: application/json" \
  -d '{"locations": ["lisboa"], "maxItemsPerSearch": 36}'
```

Python:

```python
from apify_client import ApifyClient
client = ApifyClient("<APIFY_TOKEN>")
run = client.actor("datadesk-io/imovirtual-scraper").call(run_input={"locations": ["lisboa"], "maxItemsPerSearch": 36})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

### MCP

Use this Actor from an MCP client (Cursor, Claude Desktop, etc.) through the Apify MCP server (`datadesk-io/imovirtual-scraper`).

### Alerts mode

Set **Only new listings** to on and give the run an **alerts key**. Each run returns only listings not seen in earlier runs with the same key, and only new listings are charged. Schedule it daily and connect a webhook, Make, Zapier or n8n to get new listings in Slack, email or a sheet.

### FAQ

**Which locations can I use?** Imovirtual slugs: districts (lisboa, porto, faro, setubal, braga), councils (lisboa/cascais, porto/vila-nova-de-gaia) or portugal for the whole country. You can also paste any Imovirtual result URL.

**Are filters applied on Imovirtual?** Price, bedrooms, area and private-owner filters are applied by the Actor after reading each page; skipped listings are not charged. With strict filters raise Max pages per location.

**Are owner names or phones included?** No. Only agency names and pages are included; private owners are only flagged.

**How fresh is the data?** Live: each run reads Imovirtual at that moment.

### Limitations

- 36 listings per page, in Imovirtual's default order.
- Filters are applied after reading the pages.
- Detail-page extras (full description, energy certificate) are not included.

### Start now

Click **Start** to run the prefilled example, then adjust the input. Missing a field or filter? Open an issue on the **Issues** tab and tell us what you need.

### Support

Questions, bugs or a missing field? Email **datadesk.io@proton.me** or open an issue on the Actor page.

***

**ES:** Extrae anuncios de Imovirtual (Portugal): pisos, casas, terrenos, locales y oficinas en venta o alquiler por distrito o municipio, con precio, €/m², dormitorios, área, extras, parroquia, inmobiliaria y fotos. Alertas diarias. $1,50 por 1.000 anuncios.
**PT:** Extraia anúncios do Imovirtual (Portugal): apartamentos, moradias, terrenos, lojas e escritórios para comprar ou arrendar por distrito ou concelho, com preço, €/m², quartos (T), área, características, freguesia, agência e fotos. Alertas diários. US$1,50 por 1.000 anúncios.

# Actor input Schema

## `locations` (type: `array`):

Portuguese districts or councils as Imovirtual slugs, one per line: lisboa, porto, faro, setubal, braga, lisboa/cascais, porto/vila-nova-de-gaia, or portugal (whole country). Empty = lisboa (demo).

## `operation` (type: `string`):

Sale or rental listings.

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

Type of property.

## `minPrice` (type: `integer`):

Skip cheaper listings (filtered by the Actor; skipped listings are not charged).

## `maxPrice` (type: `integer`):

Skip more expensive listings.

## `minRooms` (type: `integer`):

Minimum bedrooms (T2 = 2).

## `minAreaSqm` (type: `integer`):

Minimum area.

## `privateOnly` (type: `boolean`):

Keep only listings from private owners (particulares).

## `maxItemsPerSearch` (type: `integer`):

Imovirtual shows 36 listings per page.

## `maxPagesPerSearch` (type: `integer`):

Stops reading a location after this many pages (useful with strict filters).

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

Hard cap for the whole run.

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

Optional: Imovirtual result URLs like https://www.imovirtual.com/pt/resultados/arrendar/apartamento/porto.

## `onlyNewListings` (type: `boolean`):

Return only listings not returned in earlier runs with the same alerts key. Only new listings are charged.

## `alertsKey` (type: `string`):

Name of this alert (e.g. t2-porto). Each key keeps its own memory.

## Actor input object example

```json
{
  "locations": [
    "lisboa",
    "porto"
  ],
  "operation": "rent",
  "propertyType": "house",
  "minPrice": 150000,
  "maxPrice": 500000,
  "minRooms": 2,
  "minAreaSqm": 70,
  "privateOnly": false,
  "maxItemsPerSearch": 500,
  "maxPagesPerSearch": 30,
  "maxResults": 1000,
  "startUrls": [
    {
      "url": "https://www.imovirtual.com/pt/resultados/arrendar/apartamento/porto"
    }
  ],
  "onlyNewListings": false,
  "alertsKey": "t2-porto"
}
```

# 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 = {
    "locations": [
        "lisboa"
    ],
    "maxItemsPerSearch": 36
};

// Run the Actor and wait for it to finish
const run = await client.actor("datadesk-io/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 = {
    "locations": ["lisboa"],
    "maxItemsPerSearch": 36,
}

# Run the Actor and wait for it to finish
run = client.actor("datadesk-io/imovirtual-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 '{
  "locations": [
    "lisboa"
  ],
  "maxItemsPerSearch": 36
}' |
apify call datadesk-io/imovirtual-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,datadesk-io/imovirtual-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/thl8wde8JBdhjeijn/builds/WDclNM0V7WbsAdp7a/openapi.json
