# Imovirtual Scraper · Imóveis Portugal (`mcugoku/imovirtual-scraper`) Actor

Property listings from Imovirtual.com (Portugal) as JSON/CSV/Excel: price, €/m², area, T-typology, floor, parish, agency, photos; details add GPS, energy certificate, build year. Sale and rent, filter by location, price, area, rooms. $0.99 per 1 000 rows. Casas e apartamentos em Portugal.

- **URL**: https://apify.com/mcugoku/imovirtual-scraper.md
- **Developed by:** [Lino Augusto](https://apify.com/mcugoku) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.99 / 1,000 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/actors/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 property listings

Structured data from [Imovirtual.com](https://www.imovirtual.com), Portugal's largest real-estate portal (OLX Group). One run returns clean JSON/CSV/Excel rows with **price, €/m², area, rooms (T0–T6), floor, location down to parish, seller type, agency name, tags and photos**, for sale or rent, filtered the way you would on the site.

No browser is used, so it is fast and cheap: about 36 listings per page request.

### What you can do with it

- **Price per m² by parish**: pull every T2 for sale in Lisboa and compute medians by zone.
- **Rent monitoring**: run hourly with *Newest first* and get alerted when a flat under your budget appears.
- **Agency stock**: list everything a given agency has, or compare agencies in a council.
- **Investment screening**: `fetchDetails` adds GPS coordinates, energy certificate, build year, bathrooms and the full feature list.

### Input

Either paste **search URLs** from Imovirtual, or use the **structured filters**:

| Field | Example | Notes |
|---|---|---|
| `startUrls` | `https://www.imovirtual.com/pt/resultados/arrendar/apartamento/porto/porto?priceMax=1200` | Any results page |
| `transaction` | `sale` / `rent` | |
| `estate` | `apartamento`, `moradia`, `terreno`, `quarto`, `escritorio`, `loja`, `armazem`, `garagem`, `predio`, `quinta` | |
| `location` | `lisboa`, `lisboa/lisboa`, `porto/matosinhos`, `faro/albufeira` | District or district/council; empty = whole country |
| `priceMin` / `priceMax` | `150000` / `350000` | Euros (monthly for rent) |
| `areaMin` / `areaMax` | `60` / `120` | m² |
| `rooms` | `["3","4"]` | Imovirtual counts rooms: T2 = 3 |
| `ownerType` | `AGENCY` / `PRIVATE` | |
| `market` | `PRIMARY` (new) / `SECONDARY` (resale) | |
| `sort` | `newest`, `price_asc`, `price_desc`, `area_desc` | |
| `maxItems` | `500` | Total cap |
| `fetchDetails` | `true` | Opens each ad |

Example:

```json
{ "transaction": "rent", "estate": "apartamento", "location": "porto/porto", "priceMax": 1200, "rooms": ["2", "3"], "sort": "newest", "maxItems": 200 }
```

### Output

```json
{
  "id": "19357585",
  "url": "https://www.imovirtual.com/pt/anuncio/apartamento-t2-com-terraco-em-chiado-ID1jdN7",
  "title": "Apartamento T2 com terraço em Chiado",
  "transaction": "sale",
  "estate": "flat",
  "price": 850000,
  "currency": "EUR",
  "pricePerM2": 8173.08,
  "areaM2": 104,
  "rooms": 3,
  "typology": "T2",
  "floor": 1,
  "district": "Lisboa",
  "council": "Lisboa",
  "parish": "Misericórdia",
  "locationFull": "Misericórdia, Lisboa, Lisboa",
  "sellerType": "agency",
  "agencyName": "UKIO PORTUGAL",
  "isPromoted": false,
  "tags": ["AIR_CONDITIONING", "TERRACE", "PARKING_SPOT"],
  "thumbnail": "https://ireland.apollo.olxcdn.com/v1/files/.../image;s=...",
  "photoCount": 23,
  "createdAt": "2026-11-16T09:46:55+00:00"
}
```

With `fetchDetails: true` each row also has `description`, `photos`, `latitude`, `longitude`, `street`, `postalCode`, `energyCertificate`, `constructionStatus`, `buildYear`, `heating`, `bathrooms`, `buildingFloors`, `features`, `referenceId`, `modifiedAt`.

### Pricing

| Event | Price |
|---|---|
| Listing scraped (search page) | $0.99 per 1 000 |
| Listing with full details | $1.99 per 1 000 |

### Privacy and fair use

Reads only what Imovirtual shows to any visitor. Never outputs phone numbers or the names of private owners; agency names are business information. Use in line with Imovirtual's terms and GDPR.

### Free sample dataset

A 5 000-row snapshot made with this actor is on Kaggle (CC BY-NC 4.0): https://www.kaggle.com/datasets/linoaugusto/portugal-housing-imovirtual-nov-2026

### Related

Same author, same output style: **[Standvirtual Scraper](https://apify.com/mcugoku/standvirtual-scraper)** (used cars). Docs and free samples: https://ptdata.linkpeek-api.workers.dev

# Actor input Schema

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

Paste any results URL from imovirtual.com with your filters applied. Leave empty to use the fields below.

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

Sale (comprar) or rent (arrendar).

## `estate` (type: `string`):

Type as used in Imovirtual URLs.

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

District, or district/council, as in the site URL: e.g. 'lisboa', 'lisboa/lisboa', 'porto/matosinhos', 'faro/albufeira'. Leave empty for the whole country.

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

Minimum price (sale) or monthly rent.

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

Maximum price (sale) or monthly rent.

## `areaMin` (type: `integer`):

Minimum usable area.

## `areaMax` (type: `integer`):

Maximum usable area.

## `rooms` (type: `array`):

Number of rooms, Imovirtual style (T1 = 2 rooms, T2 = 3 rooms...). Pick one or more of 1–6 (6 = six or more).

## `ownerType` (type: `string`):

Agencies, private owners or both.

## `market` (type: `string`):

New developments (primary), resale (secondary) or both.

## `sort` (type: `string`):

Order of results. 'Newest first' is best for monitoring.

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

Stop after this many listings in total.

## `fetchDetails` (type: `boolean`):

Also visit every ad page: description, all photos, GPS coordinates, energy certificate, bathrooms, build year, features. Slower and costs a bit more per listing.

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

Proxy settings. Apify datacenter proxy is enough for this site.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.imovirtual.com/pt/resultados/comprar/apartamento/lisboa/lisboa"
    }
  ],
  "transaction": "sale",
  "estate": "apartamento",
  "location": "lisboa/lisboa",
  "rooms": [],
  "ownerType": "ALL",
  "market": "ALL",
  "sort": "default",
  "maxItems": 100,
  "fetchDetails": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `listings` (type: `string`):

No description

## `listingsCsv` (type: `string`):

No description

## `listingsExcel` (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 = {
    "startUrls": [
        {
            "url": "https://www.imovirtual.com/pt/resultados/comprar/apartamento/lisboa/lisboa"
        }
    ],
    "location": "lisboa/lisboa",
    "rooms": [],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("mcugoku/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 = {
    "startUrls": [{ "url": "https://www.imovirtual.com/pt/resultados/comprar/apartamento/lisboa/lisboa" }],
    "location": "lisboa/lisboa",
    "rooms": [],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("mcugoku/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 '{
  "startUrls": [
    {
      "url": "https://www.imovirtual.com/pt/resultados/comprar/apartamento/lisboa/lisboa"
    }
  ],
  "location": "lisboa/lisboa",
  "rooms": [],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call mcugoku/imovirtual-scraper --silent --output-dataset

```

## MCP server setup

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