# Imovirtual Property Listings Scraper (`manfromgold/imovirtual-com-scraper`) Actor

Extract Portuguese property listings from Imovirtual.com. Each record has price, price per m², area, rooms (tipologia), city, district, agency, listing date and property type, for sale and rental searches anywhere in Portugal.

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

## Pricing

$2.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/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 Property Listings Scraper

Extract Portuguese property listings from Imovirtual.com. Each record has price, price per m², area, rooms (tipologia), city, district, agency, listing date and property type, for sale and rental searches anywhere in Portugal.

### What data does Imovirtual Property Listings Scraper extract?

| Field | Description |
|---|---|
| `id` | Imovirtual listing ID. |
| `url` | Absolute URL of the listing detail page. |
| `title` | Listing title. |
| `transaction` | Transaction type (sell or rent). |
| `propertyType` | Estate type, e.g. flat, house, terrain. |
| `price` | Asking price or monthly rent. Null if the price is hidden. |
| `currency` | Price currency code (usually EUR). |
| `pricePerSqm` | Price per square metre. |
| `area` | Area in square metres. |
| `rooms` | Number of rooms (T-tipologia, 0 for studios). |
| `city` | City or municipality. |
| `district` | District (province). |
| `agency` | Name of the advertising agency or developer. Null for private owners. |
| `isPrivateOwner` | True if the listing was posted by a private owner. |
| `listingDate` | Date the listing was created (ISO 8601). |

### Use cases

- Benchmark asking prices per m² across Portuguese districts for investment decisions
- Feed automated valuation models (AVMs) with fresh comparable listings beyond Idealista
- Track new listings daily in Lisbon or Porto to spot underpriced properties early
- Measure agency market share and inventory per region for competitive analysis
- Monitor rental yields by comparing sale and rental prices for the same areas

### How to use it

1. Fill in the input fields (or keep the prefilled example).
2. Set **Max results** to cap the run size and cost.
3. Click **Start** and download results as JSON, CSV, Excel or via the API.

#### Input

| Input | Description |
|---|---|
| `transaction` | Buy (comprar) or rent (arrendar) listings. |
| `propertyType` | Imovirtual property category slug. |
| `location` | Location path as used by Imovirtual, e.g. 'lisboa/lisboa', 'porto/porto', 'faro' or 'todo-o-pais' for all of Portugal. |
| `sortBy` | Sort order of the results. |
| `maxItems` | Maximum number of results. |
| `maxPages` | Maximum number of pages to load. |

### Output example

```json
[
  {
    "id": "19305524",
    "url": "https://www.imovirtual.com/pt/anuncio/apartamento-duplex-t3-para-venda-campolide-ID1j0fq",
    "title": "APARTAMENTO DUPLEX T3 PARA VENDA [CAMPOLIDE\\]",
    "transaction": "sell",
    "propertyType": "flat",
    "price": 700000,
    "currency": "EUR",
    "pricePerSqm": 5405.41,
    "area": 129.5,
    "rooms": 4,
    "city": null,
    "district": null,
    "agency": "Open Book Real Estate lda",
    "isPrivateOwner": false,
    "listingDate": "2026-10-12T11:57:20"
  },
  {
    "id": "19305518",
    "url": "https://www.imovirtual.com/pt/anuncio/anjos-74-apartamento-t3-renovado-com-isencoes-fiscais-a-habitacao-pro-ID1j0fk",
    "title": "Anjos 74: Apartamento T3 Renovado com isenções fiscais a habitação pró",
    "transaction": "sell",
    "propertyType": "flat",
    "price": 498000,
    "currency": "EUR",
    "pricePerSqm": 4611.11,
    "area": 108,
    "rooms": 4,
    "city": null,
    "district": null,
    "agency": "Coldwell Banker City",
    "isPrivateOwner": false,
    "listingDate": "2026-10-12T11:53:21"
  }
]
```

### Pricing

Pay per result: **$2.00 per 1,000 results**. Platform usage is included. Runs stop at **Max results**, so cost is predictable.

### Is it legal to scrape this site?

This Actor extracts only publicly available, non-personal information from imovirtual.com. It does not log in or bypass access controls. Make sure your use of the data complies with the site's terms and the laws that apply to you.

### Reliability

This Actor is checked automatically several times a day. When the website changes its layout, the extractor is repaired and re-tested against the same output fields, so your integrations keep working.

# Actor input Schema

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

Buy (comprar) or rent (arrendar) listings.

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

Imovirtual property category slug.

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

Location path as used by Imovirtual, e.g. 'lisboa/lisboa', 'porto/porto', 'faro' or 'todo-o-pais' for all of Portugal.

## `sortBy` (type: `string`):

Sort order of the results.

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

Stop after this many results. You are charged per result, so this also caps the cost.

## `maxPages` (type: `integer`):

Maximum number of pages to load (listing pages and pagination).

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

Proxies help avoid blocking. Datacenter proxies are enough for most runs.

## `debugSaveHtml` (type: `boolean`):

Store the HTML of the first pages in the key-value store, for troubleshooting.

## Actor input object example

```json
{
  "transaction": "comprar",
  "propertyType": "apartamento",
  "location": "lisboa/lisboa",
  "sortBy": "LATEST",
  "maxItems": 100,
  "maxPages": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "debugSaveHtml": false
}
```

# Actor output Schema

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

Records extracted from imovirtual.com, one dataset item each.

# 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/lisboa",
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("manfromgold/imovirtual-com-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/lisboa",
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("manfromgold/imovirtual-com-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 '{
  "location": "lisboa/lisboa",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call manfromgold/imovirtual-com-scraper --silent --output-dataset

```

## MCP server setup

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