# Imovirtual Scraper - Portugal Property Listings (`scrapewise/imovirtual-scraper`) Actor

Scrape imovirtual.com, Portugal's property portal: buy or rent apartments, houses and land by district or council, with price in EUR, area, rooms, agency, energy class and full description. No login. Closed listings and error rows are free.

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

## Pricing

from $0.76 / 1,000 listing delivereds

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

Scrape imovirtual.com, one of Portugal's largest property portals. Search apartments, houses and land to buy or rent by district or council, filter by price, area and rooms, and get a clean table of open listings with price in euros, area, rooms, location, agency, energy class and the full description.

Use it to track asking prices by district, compare rents across Lisbon and Porto neighbourhoods, follow new listings for an investor or a real estate agency, or feed a property site with fresh Portuguese listings.

### At a glance

| | |
|---|---|
| **Price** | US$ 1.00 per 1,000 listings on the Free plan, lower on paid plans, plus US$ 0.001 per run |
| **You pay for** | Unique listings delivered. Closed listings, error rows and duplicates are free |
| **Login** | None. Only public listings |
| **Filters** | Buy or rent, apartment, house or land, district or council, price, area, rooms |
| **Speed** | About 100 listings with full descriptions in 2 to 3 minutes |
| **Export** | Table, JSON, CSV, Excel, HTML, or by API |

### Quick start

1. Keep the defaults or type a place such as `Lisboa`. Lisboa is the district; `Lisboa/Cascais` is the council.
2. Choose the property type (apartment, house or land) and whether you want to buy or rent.
3. Press **Start** and open the **Listings** table when the run ends.

The same run through the API input:

```json
{
  "transaction": "Buy",
  "propertyType": ["Apartment"],
  "location": ["Lisboa"],
  "maxItems": 20
}
```

### Input

| Field | What it does |
|---|---|
| `transaction` | `Buy` (default) or `Rent`. For rentals the price is the monthly rent in euros |
| `propertyType` | One or more of `Apartment`, `House`, `Land`. Empty means all three |
| `location` | Districts or councils, one per line. Use the district name (`Porto`) or the district and council (`Porto/Porto`). Type `todo-o-pais` to search all of Portugal |
| `minPrice`, `maxPrice` | Price range in euros. Listings without a price are left out when a limit is set |
| `minAreaM2`, `maxAreaM2` | Area range in square metres |
| `minRooms`, `maxRooms` | Room range, counted as the site counts them (living room included, so a T3 is usually 4 rooms). Listings with 7 or more rooms count as 7 |
| `startUrls` | Optional links: a search page from imovirtual.com (district and type are used, the price, area and room filters above still apply) or a single listing page (`/pt/anuncio/...`), which is always delivered |
| `maxItems` | Most listings delivered across all searches in one run. `0` means no limit. Default 50 |
| `includeDescription` | On by default. Adds the full description, bathrooms, floor, building type, construction status, energy certificate and extras. Turn it off for a faster run with the listing card fields only |
| `proxyConfiguration` | Connection for the run. The default works for most users |

If the input has no location and no link, the run uses the example: Lisboa apartments to buy.

### Output

Each delivered listing is one row. Empty fields are `null`. Land has no rooms, bathrooms or building details.

| Field | Description |
|---|---|
| `listingId` | Listing id on imovirtual.com |
| `title` | Title as posted |
| `transaction` | `Buy` or `Rent` |
| `propertyType` | `Apartment`, `House` or `Land` |
| `priceEur` | Asking price in euros, or the monthly rent for rentals |
| `pricePerSquareMeterEur` | Price per square metre |
| `areaSquareMeters` | Area in square metres |
| `rooms` | Number of rooms as the site counts them, living room included: a T3 flat is usually 4 rooms. 7 means seven or more |
| `bathrooms` | Number of bathrooms |
| `agencyName` | Agency name when the listing comes from a real estate agency. Empty for private listings |
| `imageCount` | Number of photos |
| `district`, `council`, `parish`, `neighborhood` | Administrative places, from the broadest to the most specific |
| `location` | Full place name with its parents |
| `url` | Listing page link |
| `createdAt`, `pushedUpAt` | When the listing was published and last pushed up (UTC) |
| `sourceQuery` | The search that found the listing, for example `Apartment buy lisboa` |
| `description` | Full description. E-mail addresses and phone numbers are replaced by `[contact removed]` |
| `buildingType` | Building type as the site gives it, for example `block` |
| `constructionStatus` | Construction status as the site gives it, for example `ready_to_use` |
| `energyCertificate` | Energy class, for example `C` or `APLUS` (A+) |
| `extras` | Extras listed by the seller, for example `garden`, `lift` or `garage` |
| `floor` | Floor number |
| `market` | `secondary` (resale) or `primary` (new build) |
| `scrapedAt` | When the Actor read the listing (UTC) |

Error rows have `type: "error"`, `errorCode` and `error`, and cost nothing.

### Example output

A real row from a local run on 3 November 2026 (the description is shortened here):

```json
{
  "type": "listing",
  "listingId": "19335008",
  "title": "Apartamento T2 com logradouro e garagem, em Santa Iria de Azóia",
  "transaction": "Buy",
  "propertyType": "Apartment",
  "priceEur": 525000,
  "pricePerSquareMeterEur": 5147.06,
  "areaSquareMeters": 102,
  "rooms": 3,
  "agencyName": "IMORRISCAS",
  "imageCount": 32,
  "url": "https://www.imovirtual.com/pt/anuncio/apartamento-t2-com-logradouro-e-garagem-em-santa-iria-de-azoia-ID1j7UY",
  "createdAt": "2026-11-03T16:23:34Z",
  "pushedUpAt": null,
  "sourceQuery": "Apartment buy lisboa",
  "district": "Lisboa",
  "council": "Loures",
  "parish": "Santa Iria de Azoia, São João da Talha e Bobadela",
  "neighborhood": "Santa Iria de Azóia",
  "location": "Santa Iria de Azóia, Santa Iria de Azoia, São João da Talha e Bobadela, Loures, Lisboa",
  "description": "Apresentamos este exclusivo apartamento T2 em fase de construção, com conclusão prevista para primeiro trimestre de 2027 ... (description shortened here)",
  "bathrooms": 2,
  "buildingType": "block",
  "constructionStatus": "to_completion",
  "energyCertificate": "APLUS",
  "extras": [
    "garage",
    "lift",
    "air_conditioning",
    "terrace",
    "balcony"
  ],
  "floor": "3",
  "market": "primary",
  "scrapedAt": "2026-11-03T17:26:54Z"
}
```

### Integrations, scheduling and AI agents

- **Schedules**: run it daily in the Apify Console with the same input and sort by `createdAt` to spot new listings. Each listing is charged once per run, so a repeated run of the same search pays again for listings it already delivered.
- **Export**: download the table as JSON, CSV or Excel from the run's dataset, or call the dataset through the Apify API.
- **Make, n8n, Zapier**: use the Apify app to send each run's listings to a spreadsheet, a CRM or a Telegram channel.
- **AI agents**: connect the Apify MCP server so an assistant can run the Actor and read the listings for a question such as "which two-bedroom flats under 300,000 euros in Porto have a garage".

### FAQ

**Why does a search return fewer listings than the site shows?** The site counts every listing it has, including some that are closed or already removed. The Actor delivers only the listings it can open, and it skips closed ones for free.

**Are the price filters applied by the site?** The Actor applies price, area and room filters itself after reading each page. It still reads the pages in order until it has enough matches, so a very strict filter on a big district takes longer. Stop it with `maxItems` if you only need a sample.

**Can I search all of Portugal?** Yes, type `todo-o-pais` as the location. Use `maxItems` to keep the run short and the cost low.

**What does a `[contact removed]` in the description mean?** A phone number or e-mail address written in the text by the advertiser. The Actor removes it from the description and keeps the rest of the text.

**Why is `rooms` empty for some listings?** Land has no rooms. Some apartments and houses do not give the number of rooms on the card.

**Does it return the seller's name or phone?** No. It returns the agency name only when the listing comes from an agency. Private sellers are not named.

**Why does a run take longer with descriptions?** Each listing page carries its full description, so the run reads one more page per listing. Turn `includeDescription` off for a faster run.

### Limitations

- Only public listings. Nothing behind a login is read.
- Prices and areas are the ones the advertiser wrote. The Actor does not check them against the land registry or the energy certificate.
- Listings are shown as they are on the site at the time of the run. A listing that changes price between runs is delivered again and charged again.
- Filter by price, area and rooms works on the listing card, so listings with a missing price or area are left out when that filter is set.
- A location must be a district or a district with a council, as the site writes them. A council name on its own, such as `Cascais`, is not a page on the site: use `Lisboa/Cascais`.

### Changelog

**3 Nov 2026, version 0.1**: first release. Buy or rent; apartment, house and land; district and council search; price, area and room filters; description and listing details; error rows for bad input, bad links and unknown locations.

# Actor input Schema

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

Buy lists properties for sale. Rent lists properties to rent (the price is the monthly rent in euros).

## `propertyType` (type: `array`):

Apartment, House or Land. Leave empty for all three.

## `location` (type: `array`):

Districts or councils in Portugal, one per line: a district such as Lisboa or Porto, or a council such as Lisboa/Cascais or Porto/Porto. Leave empty for all of Portugal.

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

Only listings priced at least this much, in euros. For rentals this is the monthly rent.

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

Only listings priced at most this much, in euros. For rentals this is the monthly rent.

## `minAreaM2` (type: `integer`):

Only listings with at least this area in square metres.

## `maxAreaM2` (type: `integer`):

Only listings with at most this area in square metres.

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

Only listings with at least this many rooms, counted as the site counts them (the living room counts, so a T3 is usually 4 rooms).

## `maxRooms` (type: `integer`):

Only listings with at most this many rooms. Listings with 7 or more rooms count as 7.

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

Optional imovirtual.com links: a search page (https://www.imovirtual.com/pt/resultados/comprar/apartamento/lisboa/lisboa) or a listing page (https://www.imovirtual.com/pt/anuncio/...). Search links are paginated and use only their district and type; price, area and room filters above still apply to them.

## `maxItems` (type: `integer`):

Most listings delivered across all searches in one run. 0 means no limit. You pay only for listings delivered.

## `includeDescription` (type: `boolean`):

Adds the full description, bathrooms, floor, building type, construction status, energy certificate and extras. Turn off for a faster run with the listing card fields only.

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

Connection for the run. The default works for most users.

## Actor input object example

```json
{
  "transaction": "Buy",
  "propertyType": [
    "Apartment"
  ],
  "location": [
    "Lisboa"
  ],
  "maxItems": 20,
  "includeDescription": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `resultsCsv` (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": [
        "Apartment"
    ],
    "location": [
        "Lisboa"
    ],
    "maxItems": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapewise/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 = {
    "propertyType": ["Apartment"],
    "location": ["Lisboa"],
    "maxItems": 20,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("scrapewise/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 '{
  "propertyType": [
    "Apartment"
  ],
  "location": [
    "Lisboa"
  ],
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call scrapewise/imovirtual-scraper --silent --output-dataset

```

## MCP server setup

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