# Imovirtual Scraper & Price-Drop Monitor (`opaline_loggerhead/imovirtual-pt-monitor`) Actor

Imovirtual real-estate scraper: get only NEW listings & PRICE DROPS since your last run, anywhere in Portugal. 🇵🇹 Anúncios do Imovirtual: só imóveis novos e descidas de preço desde a última execução.

- **URL**: https://apify.com/opaline_loggerhead/imovirtual-pt-monitor.md
- **Developed by:** [Osirus Jack](https://apify.com/opaline_loggerhead) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.80 / 1,000 listings

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 Scraper & Price-Drop Monitor 🏠📉

**🇬🇧 English** · [🇵🇹 Português](#em-português)

Scrape real-estate listings from **[imovirtual.com](https://www.imovirtual.com)** (apartments, houses, land and commercial property, for sale or rent, anywhere in Portugal) and **get only what changed since your last run: new listings and price drops.**

Most imovirtual.com scrapers return the same thousands of rows every day and leave you to compare them. This one remembers what it has already seen, so a daily schedule gives you a short list of **fresh deals** instead of a spreadsheet to clean.

### Who is it for?

- **Real-estate agents:** be the first to call a seller who just listed in your area.
- **Investors & flippers:** catch price cuts on the properties you're watching (e.g. "drops of 5% or more").
- **Analysts:** build a price history for any city or neighbourhood in Portugal.
- **Proptech & AI agents:** clean JSON for valuation models, alerts and chatbots.

### What you get per listing

| Field | Meaning |
|---|---|
| `changeType` | `new`, `price_drop`, `price_increase`, `unchanged` |
| `price`, `currency` | total price and currency |
| `previousPrice`, `priceChangePct` | old price and % change (monitor mode) |
| `areaSqm`, `pricePerSqm`, `rooms`, `floor` | property details |
| `district`, `municipality`, `parish`, `neighbourhood`, `street` | location |
| `isPrivateOwner`, `agencyName` | who is selling |
| `isNewDevelopment` | project from a developer (often without a single price) |
| `title`, `url`, `imageUrls` | listing link and photos |
| `createdAt`, `pushedUpAt`, `firstSeenAt`, `scrapedAt` | dates |

Export as JSON, CSV or Excel, or pull it through the Apify API.

### How to use

1. Go to imovirtual.com, run your search with any filters, and copy the URL from your browser. Examples:
   - `https://www.imovirtual.com/pt/resultados/comprar/apartamento/lisboa`
   - `https://www.imovirtual.com/pt/resultados/arrendar/apartamento/porto`
2. Paste it into **Search URLs**. Add as many searches as you like.
3. Choose a **Mode**:
   - **All listings:** a full snapshot.
   - **Only new listings & price changes:** the monitor. The first run remembers everything; every later run returns only changes.
4. Click **Start**. To monitor, add a **Schedule** (e.g. every morning at 8:00) and connect an integration (email, Slack, Google Sheets, Make or Zapier) to get alerts automatically.

#### Example input

```json
{
  "startUrls": [
    {
      "url": "https://www.imovirtual.com/pt/resultados/comprar/apartamento/lisboa"
    }
  ],
  "mode": "changes",
  "priceChangeTypes": "drops",
  "minPriceDropPct": 3,
  "maxItems": 500,
  "maxPagesPerUrl": 20,
  "stateStoreName": "imovirtual-pt-my-watchlist"
}
```

💡 Use a **different `stateStoreName` for each watch-list** you schedule, so they don't mix.

### Pricing

You pay only for results saved: **$2.50 per 1,000 results**. In monitor mode you pay only for the new listings and price changes you receive, not for every listing checked, so daily monitoring stays cheap. The Actor stops automatically when your maximum cost per run is reached.

### Tips

- Run your search on the site first: city, price, rooms, surface… then paste the URL. All filters are kept.
- Price changes are detected only for listings within the pages you scan, so set **Max pages per search URL** high enough to cover your search (72 listings per page).
- If runs get blocked, switch the proxy to **RESIDENTIAL** with country **PT**.

***

## 🇵🇹 Em português

Extraia anúncios de imóveis do **[imovirtual.com](https://www.imovirtual.com)** (apartamentos, moradias, terrenos e espaços comerciais, para comprar ou arrendar, em todo o país) e **receba apenas o que mudou desde a última execução: imóveis novos e descidas de preço.**

A maioria dos scrapers do Imovirtual devolve todos os dias os mesmos milhares de linhas. Este lembra-se do que já viu, por isso uma execução diária dá-lhe uma lista curta de **oportunidades novas**.

**Para quem?**

- **Consultores imobiliários:** seja o primeiro a contactar quem acabou de anunciar na sua zona.
- **Investidores:** apanhe descidas de preço nos imóveis que acompanha (por exemplo, "descidas de 5% ou mais").
- **Analistas:** construa um histórico de preços para qualquer concelho ou freguesia.

**Como usar**

1. Pesquise no imovirtual.com com os filtros que quiser (distrito, preço, tipologia, área…).
2. Copie o URL do navegador e cole-o em **Search URLs**. Pode adicionar várias pesquisas.
3. Escolha o **Mode**: *All listings* (todos os anúncios) ou *Only new listings & price changes* (monitorização: a primeira execução memoriza tudo e as seguintes só trazem alterações).
4. Clique em **Start**. Para monitorizar, adicione um **Schedule** (por exemplo, todos os dias às 8:00) e uma integração (email, Slack, Google Sheets).

**Preço:** paga apenas pelos resultados guardados. No modo de monitorização paga só pelos imóveis novos e pelas alterações de preço.

**Dica:** se as execuções forem bloqueadas, use proxy **RESIDENTIAL** com o país **PT**.

***

### Legal

This Actor reads publicly available listing pages, the same ones any visitor sees, without logging in. You are responsible for using the data in line with imovirtual.com's terms and the GDPR, and for not using personal data (such as private sellers' names) for unsolicited marketing.

# Actor input Schema

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

Run a search on imovirtual.com with any filters you like, then paste the URL from your browser. Add several URLs to watch several searches at once. Example: https://www.imovirtual.com/pt/resultados/comprar/apartamento/lisboa

## `mode` (type: `string`):

'all' returns every listing found. 'changes' returns only listings that are new or whose price changed since the previous run with the same state store, perfect for a daily schedule.

## `priceChangeTypes` (type: `string`):

Which price changes count as a 'change' in monitor mode.

## `minPriceDropPct` (type: `number`):

Ignore tiny price adjustments. Example: 2 = only report drops of at least 2%.

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

Stop after this many results are saved (across all URLs). 0 = no limit.

## `maxPagesPerUrl` (type: `integer`):

How many result pages to read for each search URL.

## `stateStoreName` (type: `string`):

Named storage that remembers listings between runs. Use a different name for each separate watch-list you schedule.

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

Apify Proxy is recommended. If you get blocked, switch to RESIDENTIAL proxies with country PT.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.imovirtual.com/pt/resultados/comprar/apartamento/lisboa"
    }
  ],
  "mode": "all",
  "priceChangeTypes": "drops",
  "minPriceDropPct": 0,
  "maxItems": 200,
  "maxPagesPerUrl": 10,
  "stateStoreName": "imovirtual-monitor-state",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

All listings saved by this run, as JSON. Add ?format=csv or ?format=xlsx for a spreadsheet.

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

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

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,opaline_loggerhead/imovirtual-pt-monitor"
        }
    }
}
```

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/uJXdCLMIfSkSqff1S/builds/rks60LlAtdP2kqaFA/openapi.json
