# Imovirtual Scraper \[$0.95/1K💰] | Portugal Homes (`ahmed_jasarevic/imovirtual-pt-scraper`) Actor

Scrape imovirtual.pt property listings across Portugal: price, price per m², typology, area, energy certificate, condition, amenities, location, agency and photos. $0.95 per 1,000 listings.

- **URL**: https://apify.com/ahmed_jasarevic/imovirtual-pt-scraper.md
- **Developed by:** [Ahmed Jasarevic](https://apify.com/ahmed_jasarevic) (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.90 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 – Portuguese Property Listings & Agency Contacts

Scrape public **imovirtual.pt** property listings across Portugal. Get prices, price per m², typology, area, land area, energy certificate, floor, condition, construction year, amenities, district and parish, coordinates, agency and agent contacts, photos and listing URLs. **$0.95 per 1,000 listings.**

### Portuguese Property Data For Agencies And Investors

imovirtual.pt is one of Portugal’s largest property marketplaces. This Actor turns public search results into a structured dataset for estate agencies, property investors, relocation teams, immigration agencies and housing-market analysts.

- **Investment screening** — compare prices, price per m² and typology by area.
- **Relocation research** — compare Lisbon, Porto, Faro and other regions.
- **Agency lead generation** — collect agency and agent names plus public phones.
- **Market monitoring** — track new listings and price changes.
- **Portfolio analysis** — analyze amenities, condition and energy ratings.

### How It Works

![How the Imovirtual Scraper works: Portuguese property searches to structured listings with prices, amenities and agency contacts.](https://api.apify.com/v2/key-value-stores/oeuA0kLOyhbRM4fzt/records/how-it-works-imovirtual-pt-scraper.webp)

Choose locations, a transaction type and a property type, or paste full search URLs. The Actor collects matching public listings, follows the available result pages, adds detail fields and writes one row per property.

- One row per listing.
- Sale and rent in one schema.
- Flats, houses, land, buildings, shops, offices and garages.
- Detail fields include amenities, energy rating, condition and contacts.
- Free users get a 10-listing preview.

### Search Portuguese Property By Location And Type

Use the built-in filters or full search URLs:

- **Locations** — `lisboa`, `porto`, `faro`, `lisboa/oeiras`, `todo-o-pais`.
- **Transaction** — `comprar` for sale or `arrendar` for rent.
- **Property type** — apartment, house, land, building, shop, office or garage.
- **Page depth** — control how many result pages to collect per search.
- **Volume** — cap the run with `maxItems`.

### Price, Amenities And Agency Fields

Each listing can include the listing ID, URL, title, description, transaction, property type, price, currency, price per m², typology, rooms, bathrooms, area, land area, energy certificate, floor and total floors, condition, construction year, building type, heating, amenities map and list, district, municipality, parish, neighborhood, address, coordinates, contact name and phone, agency name, phone and URL, agent name and phone, advertiser type, private-owner flag, images, image count, reference ID, status, created and modified dates and source URL.

Amenities include elevator, garage, parking, pool, garden, terrace and balcony flags. A `false` flag means the advertiser did not mark the feature, not necessarily that it is absent.

### Input – Configure An Imovirtual Run

| Field | Type | Default | Notes |
|---|---|---|---|
| `searchUrls` | array | `[]` | Full imovirtual.pt search URLs; overrides the filters below |
| `locations` | array | `["lisboa", "porto", "faro"]` | Location slugs |
| `transactionType` | string | `comprar` | `comprar` for sale or `arrendar` for rent |
| `propertyType` | string | `apartamento` | Apartment, house, land, building, shop, office or garage |
| `maxItems` | integer | `100` | Maximum listings saved |
| `maxPagesPerSearch` | integer | `3` | Result pages per search |
| `maxConcurrency` | integer | `20` | Parallel detail requests |
| `proxy` | object | Off | Optional connection settings |

### Output – Property Listing Fields

- **Identity** — `listingId`, `url`, `title`, `description`, `referenceId`, `status`
- **Price** — `price`, `currency`, `pricePerM2`
- **Size** — `typology`, `rooms`, `bathrooms`, `areaM2`, `landAreaM2`
- **Building** — `energyCertificate`, `floor`, `floorLabel`, `totalFloors`, `condition`, `conditionLabel`, `constructionYear`, `buildingType`, `heating`
- **Features** — `amenities`, `amenitiesList`
- **Location** — `district`, `municipality`, `parish`, `freguesia`, `neighborhood`, `address`, `latitude`, `longitude`
- **Contacts** — `contactName`, `contactPhone`, `agencyName`, `agencyPhone`, `agencyUrl`, `agentName`, `agentPhone`, `advertiserType`, `isPrivateOwner`
- **Media** — `images`, `imageCount`
- **Dates** — `createdAt`, `modifiedAt`, `sourceUrl`

### Example Input – Lisbon Apartments For Sale

```json
{
  "locations": ["lisboa", "lisboa/oeiras"],
  "transactionType": "comprar",
  "propertyType": "apartamento",
  "maxItems": 100,
  "maxPagesPerSearch": 3
}
```

### Example Output – Lisbon Apartment

```json
{
  "listingId": "19299435",
  "url": "https://www.imovirtual.com/pt/anuncio/t0-remodelado-com-terraco-privativo-arroios-ID1iYFd",
  "title": "T0 REMODELADO COM TERRAÇO PRIVATIVO - ARROIOS",
  "transaction": "sale",
  "propertyType": "apartamento",
  "price": 320000,
  "currency": "EUR",
  "pricePerM2": 10666,
  "typology": "T0",
  "rooms": 1,
  "bathrooms": 1,
  "areaM2": 30,
  "landAreaM2": null,
  "energyCertificate": "d",
  "floor": 1,
  "totalFloors": null,
  "condition": "ready_to_use",
  "conditionLabel": "Ready to use",
  "constructionYear": 1984,
  "amenities": { "elevator": true, "garage": false, "pool": false, "terrace": true },
  "district": "Lisboa",
  "municipality": "Lisboa",
  "parish": "Arroios",
  "latitude": 38.727158,
  "longitude": -9.136845,
  "agencyName": "Example Agency",
  "agencyPhone": "+351210206760",
  "agentName": "Susana Ferreira",
  "isPrivateOwner": false,
  "images": ["https://example.imovirtual.com/listing.jpg"],
  "imageCount": 15,
  "sourceUrl": "https://www.imovirtual.com/pt/resultados/comprar/apartamento/lisboa"
}
```

### Export Portuguese Property Data And Schedule Runs

Download JSON, CSV, Excel or HTML from Apify Console, or use the Apify API. Send listings to Google Sheets, Airtable, Make, Zapier, n8n or a webhook. Schedule daily runs to track new properties and price changes.

### Related Actors

- [xe.gr Scraper](https://apify.com/ahmed_jasarevic/xe-gr-scraper) — add Greek property and classifieds
- [Gratka Scraper](https://apify.com/ahmed_jasarevic/gratka-scraper) — add Polish real estate
- [Idealista Scraper](https://apify.com/ahmed_jasarevic/idealista-scraper) — compare Spanish and Portuguese portals
- [Contact Details Scraper](https://apify.com/ahmed_jasarevic/contact-details-scraper) — enrich agency websites with public contact data

### FAQ

#### Do I need an imovirtual account?

No. The Actor reads public property listings without login.

#### Can I scrape both sale and rent?

Yes, but use separate runs: set `transactionType` to `comprar` or `arrendar`.

#### Can I use my own search URL?

Yes. Put full imovirtual.pt search URLs in `searchUrls`; they override the location, transaction and property-type filters.

#### Are agency phones always available?

No. Phones appear only when the advertiser publishes them. Private owners may have no agency contact.

#### What does a `false` amenity mean?

It means the advertiser did not mark that feature. It does not prove the building lacks it.

#### Why is a listing missing?

Listings removed between the search page and the detail fetch are skipped.

#### How much does it cost?

FREE and BRONZE users pay **$0.00095 per listing** ($0.95 per 1,000), SILVER and GOLD+ **$0.0009**, plus a small Actor Start event.

### For AI Agents & LLM Apps

Returns one row per public imovirtual.pt property listing with price, building, location, media and contact fields.

Minimal working input:

```json
{ "locations": ["lisboa"], "transactionType": "comprar", "propertyType": "apartamento", "maxItems": 20, "maxPagesPerSearch": 1 }
```

Output fields: `listingId, url, title, description, transaction, propertyType, price, currency, pricePerM2, typology, rooms, bathrooms, areaM2, landAreaM2, energyCertificate, floor, floorLabel, totalFloors, condition, conditionLabel, constructionYear, buildingType, heating, amenities, amenitiesList, district, municipality, parish, freguesia, neighborhood, address, latitude, longitude, contactName, contactPhone, agencyName, agencyPhone, agencyUrl, agentName, agentPhone, advertiserType, isPrivateOwner, images, imageCount, referenceId, status, createdAt, modifiedAt, sourceUrl`.

Behaviors an agent should know:

- `searchUrls` overrides the location, transaction and property-type filters.
- `transaction` is `sale` or `rent` even though the input uses `comprar` and `arrendar`.
- `amenities` is an object of booleans; `amenitiesList` is the flat list of true features.
- Missing phones, floors or land area stay `null` or empty.
- Private owners can have no agency or agent fields.
- Free users get a 10-listing preview.

Billing: **$0.00095 per listing** on FREE and BRONZE ($0.95 per 1,000) or **$0.0009** on SILVER and GOLD+ ($0.90 per 1,000), plus a small Actor Start event.

### Legal & Compliance Disclaimer

This Actor is an independent tool. It is not affiliated with, endorsed by or sponsored by imovirtual.pt.

It collects publicly available property listings. Prices, sizes, energy ratings and contact details are published by advertisers and may change or contain errors. Users are responsible for complying with imovirtual.pt’s terms, privacy and marketing law, and for verifying listing details before any transaction. Nothing here is legal, valuation or investment advice.

### SEO Keywords

imovirtual scraper, imovirtual portugal, portuguese property, lisbon apartments, porto houses, algarve property, property prices portugal, price per m2, real estate data, property listings, agency leads, property investment, rental market, imovirtual api, real estate api, property scraper, portugal housing market, imovirtual data

# Actor input Schema

## `searchUrls` (type: `array`):

Full imovirtual.pt search result URLs, e.g. https://www.imovirtual.com/pt/resultados/comprar/apartamento/lisboa . When provided, the location/property/transaction filters below are ignored.

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

Location slugs appended to the search URL. Use district or municipality slugs such as lisboa, porto, faro, lisboa/oeiras, braga. 'todo-o-pais' scrapes the whole country.

## `transactionType` (type: `string`):

Buy (comprar) or rent (arrendar) listings.

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

Property category used in the search URL path.

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

Maximum number of property listings to save across all searches.

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

How many result pages (36 listings each) to crawl per search URL.

## `maxConcurrency` (type: `integer`):

How many ad pages are fetched in parallel. Higher is faster; lower it if the site starts returning 403/429 errors or you use a small proxy pool.

## `proxy` (type: `object`):

Select proxies to be used by your crawler.

## Actor input object example

```json
{
  "searchUrls": [],
  "locations": [
    "lisboa",
    "porto",
    "faro"
  ],
  "transactionType": "comprar",
  "propertyType": "apartamento",
  "maxItems": 100,
  "maxPagesPerSearch": 3,
  "maxConcurrency": 20,
  "proxy": {
    "useApifyProxy": false
  }
}
```

# 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 = {
    "searchUrls": [],
    "locations": [
        "lisboa",
        "porto",
        "faro"
    ],
    "proxy": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("ahmed_jasarevic/imovirtual-pt-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 = {
    "searchUrls": [],
    "locations": [
        "lisboa",
        "porto",
        "faro",
    ],
    "proxy": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("ahmed_jasarevic/imovirtual-pt-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 '{
  "searchUrls": [],
  "locations": [
    "lisboa",
    "porto",
    "faro"
  ],
  "proxy": {
    "useApifyProxy": false
  }
}' |
apify call ahmed_jasarevic/imovirtual-pt-scraper --silent --output-dataset

```

## MCP server setup

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