# Imovirtual Portugal Real Estate Listings (`zinin/imovirtual-lisbon`) Actor

Pull live apartment and house listings straight from Imovirtual.com — Portugal's biggest real-estate classifieds portal — by deal type, property type and city. No login, no browser, no proxies. Unofficial, independent tool — not affiliated with, endorsed by, or sponsored by Imovirtual.

- **URL**: https://apify.com/zinin/imovirtual-lisbon.md
- **Developed by:** [Tim Zinin](https://apify.com/zinin) (community)
- **Categories:** Real estate
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.70 / 1,000 listing founds

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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 Portugal Real Estate Listings

Pull live apartment and house listings straight from Imovirtual.com — Portugal's
biggest real-estate classifieds portal — filtered by deal type (buy/rent),
property type and city. No login, no API key, no browser needed on your side.

### What you get

- Title, price (with currency), rooms, floor area, district/council/parish
  location, a short description, preview photos and the direct listing URL
  for every ad found.
- Filter by buy or rent, apartment or house, and any Imovirtual.com city.
- Runs on Apify: schedule it, monitor it, call it from the API, export to
  JSON/CSV/Excel or push straight into your own pipeline.

### How to run it

1. Click **Try for free** — no card needed on the free plan.
2. Pick **Deal type** (buy/rent) and **Property type** (apartment/house), and
   set **City path** — for example `lisboa/lisboa` for the city of Lisbon.
3. Hit **Start** and pull the results from the dataset (UI, API or webhook).

### Pricing

Pay-per-event: **$0.005 per run start + $0.002 per result**. No monthly seat, no minimum. 100 listings found cost about $0.21 (the one-time start fee plus 100 result rows). Rows where the source returned nothing (an unrecognized combination, a search with zero matching listings, or a request that failed) are returned for transparency but are **never** charged for.

### Input

| Field | Required | What it does |
|---|---|---|
| `deal_type` | no | `comprar` (buy) or `arrendar` (rent). Default `comprar`. |
| `property_type` | no | `apartamento` (apartment) or `casa` (house). Default `apartamento`. |
| `city` | no | Imovirtual.com location path, e.g. `lisboa/lisboa` for the city of Lisbon. Default `lisboa/lisboa`. |
| `max_items` | no | Total row cap for this run (default 100). |
| `max_pages` | no | How many result pages to walk before stopping (default 3). |

```json
{
    "deal_type": "comprar",
    "property_type": "apartamento",
    "city": "lisboa/lisboa",
    "max_items": 5,
    "max_pages": 1
}
```

### Output

Real row from a live run (`9WQINK3wcT4NuHq0C`, 2026-07-30):

```json
{
    "found": true,
    "url": "https://www.imovirtual.com/pt/ad/apartamento-t2-em-beco-do-monte-ID1iG40",
    "title": "Apartamento T2 em Beco do Monte",
    "price": 250000,
    "currency": "EUR",
    "deal_type": "sale",
    "property_type": "FLAT",
    "rooms": 3,
    "area_sqm": 55,
    "location": "Alameda - Praça do Chile - Almirante Reis, Arroios, Lisboa, Lisboa",
    "lat": null,
    "lng": null,
    "posted_date": "2026-07-30 11:38:22",
    "description": "Apartamento T2 com Quintal Privativo no Coração Histórico de Lisboa | Arroios / Graça\n\nDescubra uma excelente oportunidade de investimento ou de habitação própria numa das zonas mais autênticas e valo...",
    "images": [
        "https://ireland.apollo.olxcdn.com/v1/files/eyJmbiI6Im5tdHU3dDE3NnVobTEtRUNPU1lTVEVNIiwidyI6W3siZm4iOiI2OW5scGE3ZWNxbTcxLUFQVCIsInMiOiIxNCIsInAiOiIxMCwtMTAiLCJhIjoiMCJ9XX0.9y5DhhilatWc0EqRhNqexn-0C3Aw31e528QA_YEKyh0/image;s=655x491;q=80",
        "https://ireland.apollo.olxcdn.com/v1/files/eyJmbiI6IjI0bWtmbmdjaXpveDEtRUNPU1lTVEVNIiwidyI6W3siZm4iOiI2OW5scGE3ZWNxbTcxLUFQVCIsInMiOiIxNCIsInAiOiIxMCwtMTAiLCJhIjoiMCJ9XX0.ZriCK5SVCLWjNGRjYggq7JK178jEtl3HIPkYbfPAQrQ/image;s=655x491;q=80",
        "https://ireland.apollo.olxcdn.com/v1/files/eyJmbiI6Im80dnM1dmptNTJ4ZDItRUNPU1lTVEVNIiwidyI6W3siZm4iOiI2OW5scGE3ZWNxbTcxLUFQVCIsInMiOiIxNCIsInAiOiIxMCwtMTAiLCJhIjoiMCJ9XX0.bYt6VleHWuMlzdHsefZiExpcekK56E9JoWuMXePmt-w/image;s=655x491;q=80"
    ],
    "source_portal": "imovirtual-lisbon",
    "scraped_at": "2026-07-30T11:03:36.651Z",
    "partial": false,
    "partial_reason": null
}
```

| Field | Meaning |
|---|---|
| `found` | `true` for a real listing row; `false` for an empty-result or error row. |
| `url` | Direct link to the listing. |
| `title` | Listing headline as published. |
| `price` | Sale price, or monthly rent for rentals. |
| `currency` | Always `EUR` on Imovirtual.com. |
| `deal_type` | `sale` or `rent`. |
| `property_type` | Imovirtual's own classification: `FLAT`, `HOUSE`, or `INVESTMENT` (new-development project). |
| `rooms` | Number of rooms. `null` when Imovirtual reports an open-ended "5+" instead of an exact count. |
| `area_sqm` | Floor area in square meters. |
| `location` | Most specific location Imovirtual gives (neighborhood/parish where available, otherwise city/district). |
| `lat` / `lng` | Coordinates if Imovirtual's own listing page exposes them; `null` on the overwhelming majority of listings, which don't. |
| `posted_date` | Raw timestamp as Imovirtual publishes it. |
| `description` | Listing description text, truncated to roughly 200 characters (source-side truncation, not ours). |
| `images` | Up to 5 photo URLs. |
| `source_portal` | Always `imovirtual-lisbon`. |
| `scraped_at` | ISO-8601 UTC timestamp of when this Actor fetched the row. |
| `partial` | `true` when this run stopped (via `max_pages`/`max_items`) before Imovirtual confirmed there were no more matching listings; `false` when the source confirmed the result set was already complete. |
| `partial_reason` | Human-readable explanation of why the run stopped early when `partial` is `true`; `null` otherwise. |

### API

Start a run with a bearer token and explicit JSON input:

```bash
curl -sS -X POST 'https://api.apify.com/v2/acts/zinin~imovirtual-lisbon/runs?waitForFinish=60' \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"deal_type":"comprar","property_type":"apartamento","city":"lisboa/lisboa","max_items":5,"max_pages":1}'
```

Read Dataset rows using the returned `defaultDatasetId`:

```bash
curl -sS "https://api.apify.com/v2/datasets/$DEFAULT_DATASET_ID/items?clean=true&format=json" \
  -H "Authorization: Bearer $APIFY_TOKEN"
```

### MCP

For an Apify MCP client exposing the standard `call-actor` tool, send this exact payload:

```json
{
  "name": "call-actor",
  "arguments": {
    "actor": "zinin/imovirtual-lisbon",
    "input": {
      "deal_type": "comprar",
      "property_type": "apartamento",
      "city": "lisboa/lisboa",
      "max_items": 5,
      "max_pages": 1
    }
  }
}
```

### Related Actors

Other major European real-estate portals, for a buyer comparing markets or running a
multi-country portfolio rather than looking at Lisbon alone.

| Actor | Use it when |
|---|---|
| [Otodom Poland Real Estate Listings](https://apify.com/zinin/otodom-warsaw) | Scanning Warsaw alongside Lisbon for a rental-arbitrage or portfolio-diversification play across EU capitals — same query shape, same account. |
| [Storia Romania Real Estate Listings](https://apify.com/zinin/storia-bucharest) | Adding Bucharest to the same pipeline for a lower entry-price EU market, without new plumbing. |
| [Rightmove UK Property Listings (London and beyond)](https://apify.com/zinin/rightmove-london) | Benchmarking Lisbon's prices against London's for a buyer who's being priced out of the UK market. |

### FAQ / Limitations

**Does this need a login or API key on Imovirtual's side?** No — it reads
the same public listing pages a visitor would see.

**What this is NOT.** This is not a valuation tool and does not enrich
listings with data Imovirtual itself doesn't publish (no coordinates, no
agent phone numbers). Rooms reported by Imovirtual as an open-ended "5+" come
back as `null`, not a guessed number.

Found a bug or need this adapted to your case — issues on the Actor page.

### Machine use

The Actor is callable through the Apify API, SDK, and Apify MCP server. The input and Dataset row are the machine-facing contract; `images` returns preview photo URLs only, not the full listing gallery, and `rooms`/`posted_date` are `null` whenever Imovirtual itself doesn't publish a resolvable value — this Actor never fills either gap with a guess.

# Actor input Schema

## `deal_type` (type: `string`):

`comprar` for sale listings, `arrendar` for rentals.

## `property_type` (type: `string`):

`apartamento` for flats, `casa` for houses.

## `city` (type: `string`):

Imovirtual.com location path segment(s), e.g. "lisboa/lisboa" (district/council) for the city of Lisbon.

## `max_items` (type: `integer`):

Maximum number of listing rows to return in this run.

## `max_pages` (type: `integer`):

How many result pages to walk before stopping.

## Actor input object example

```json
{
  "deal_type": "comprar",
  "property_type": "apartamento",
  "city": "lisboa/lisboa",
  "max_items": 5,
  "max_pages": 1
}
```

# Actor output Schema

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

API URL for the default dataset items produced by this run.

# 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 = {
    "deal_type": "comprar",
    "property_type": "apartamento",
    "city": "lisboa/lisboa",
    "max_items": 5,
    "max_pages": 1
};

// Run the Actor and wait for it to finish
const run = await client.actor("zinin/imovirtual-lisbon").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 = {
    "deal_type": "comprar",
    "property_type": "apartamento",
    "city": "lisboa/lisboa",
    "max_items": 5,
    "max_pages": 1,
}

# Run the Actor and wait for it to finish
run = client.actor("zinin/imovirtual-lisbon").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 '{
  "deal_type": "comprar",
  "property_type": "apartamento",
  "city": "lisboa/lisboa",
  "max_items": 5,
  "max_pages": 1
}' |
apify call zinin/imovirtual-lisbon --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/c1SeNPAkIJZNhPU3d/builds/7SxwTZ4V9zSpPyaH1/openapi.json
