# Portugal Homes Scraper – Property for Foreign Buyers (`sn41lz/portugal-homes-scraper`) Actor

Scrape Portuguese property from Portugal Homes: price, €/m², bedrooms, area, energy class, map coordinates, features, nearby places and photos. Lisbon, Algarve, Porto, Madeira and more. $2 per 1,000 properties.

- **URL**: https://apify.com/sn41lz/portugal-homes-scraper.md
- **Developed by:** [Sergi Espí Zamora](https://apify.com/sn41lz) (community)
- **Categories:** Real estate, Lead generation
- **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 properties

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

## Portugal Homes Scraper – Property for Foreign Buyers

Get Portuguese property listings from **[Portugal Homes](https://www.portugalhomes.com)**, an English-language agency portal for international buyers and investors with about 2,500 properties, as clean data: **price in euros, €/m², bedrooms, bathrooms, living and total area, energy class, district, town, parish, map coordinates, features, nearby places, description and every photo**.

Type an area or town (**Lisbon, Algarve, Porto, Madeira, Cascais, Silver Coast, Funchal…**), click Start and download Excel, CSV or JSON.

### Who is it for?

- **Relocation advisers and buying agents** finding homes for clients moving to Portugal.
- **Investors** comparing prices and €/m² by district and town, including those researching visa-related purchases.
- **Agencies and analysts** tracking stock and asking prices in the international segment.

### How much does it cost?

**$2 per 1,000 properties** ($0.002 each). There is no start fee.

| Properties | Cost |
|---|---|
| 100 | $0.20 |
| 500 | $1.00 |
| 1,000 | $2.00 |
| Every property on the site (about 2,500) | about $5.10 |

Properties removed by your filters are not charged. Use **Max results** to set a hard cap.

### How to use it

1. Add one or more **Locations**, or `Portugal` for every property on the site.
2. Optionally set a category, property types, a price range, minimum bedrooms or minimum area.
3. Set **Max results** to control the cost, and click **Start**.
4. Download the results, or send them to Google Sheets or your own system through the API.

You can also paste property pages or location pages into **Property or location URLs**, such as `https://www.portugalhomes.com/properties-for-sale/locations/algarve`.

### Input example

```json
{
  "locations": ["Algarve", "Cascais"],
  "category": "residential",
  "propertyTypes": ["Villa", "Apartment"],
  "minPrice": 300000,
  "maxPrice": 1500000,
  "minBedrooms": 2,
  "maxItems": 100
}
```

### Output example

From a real run:

```json
{
  "id": "12167",
  "reference": "PP176364",
  "url": "https://www.portugalhomes.com/properties-for-sale/contemporary-5-bedroom-luxury-villa-with-golf-and-ocean-views-in-quinta-da-boavista-lagos",
  "title": "Contemporary 5-Bedroom Luxury Villa With Golf And Ocean Views In Quinta Da Boavista, Lagos",
  "status": "published",
  "category": "Residential",
  "propertyType": "Villa",
  "price": 2200000,
  "currency": "EUR",
  "pricePerM2": 6433,
  "bedrooms": 5,
  "bathrooms": 5,
  "livingAreaM2": 342,
  "totalAreaM2": 342,
  "energyClass": null,
  "country": "Portugal",
  "district": "Faro",
  "municipality": "Lagos",
  "parish": null,
  "locality": "Lagos",
  "zone": null,
  "latitude": 37.092131,
  "longitude": -8.707405,
  "features": [
    "Swimming Pool",
    "Air Conditioning",
    "Garden"
  ],
  "developmentName": null,
  "mentionsGoldenVisa": false,
  "nearby": [
    {
      "type": "restaurant",
      "name": "La Bistro",
      "distanceKm": 0.3
    },
    {
      "type": "school",
      "name": "Colégio Bambino",
      "distanceKm": 1.1
    }
  ],
  "publishedAt": "2026-08-31T14:00:00",
  "description": "Set in the prestigious Quinta da Boavista Golf Resort in Lagos, this exceptional contemporary villa combines striking modern design, generous living spaces and an impressive range …",
  "image": "https://images.portugalhomes.com/crm/789115/UQKQuN9e48S7rdwXxys8dKVBYSfxbRbMfQS.jpg",
  "images": [
    "https://images.portugalhomes.com/crm/789115/UQKQuN9e48S7rdwXxys8dKVBYSfxbRbMfQS.jpg",
    "https://images.portugalhomes.com/crm/789118/dOV9OVhbZWFcityUmG1Oe9ZDCT6R8MnXiPD.jpg"
  ],
  "videoUrl": null
}
```

### What data do you get?

| Field | Meaning | Example |
|---|---|---|
| `id`, `reference`, `url` | Listing ID, the site's reference and link | 12167, PP176364 |
| `title` | Listing title | Contemporary 5-Bedroom Luxury Villa… |
| `status` | `published` or `reserved` | published |
| `category`, `propertyType` | Category and type | Residential, Villa |
| `price`, `currency` | Asking price and its currency; null when the price is on request | 2200000, EUR |
| `pricePerM2` | Price divided by living area, or total area when no living area is stated | 6433 |
| `bedrooms`, `bathrooms` | Counts. `bedrooms: 0` on an apartment is a studio; null means not stated | 5, 5 |
| `livingAreaM2`, `totalAreaM2` | Areas in m² | 342, 342 |
| `energyClass` | Energy class, when given | A+ |
| `country`, `district`, `municipality`, `parish`, `locality`, `zone` | Location | Portugal, Faro, Lagos, null, Lagos, null |
| `latitude`, `longitude` | Map point, when given | 37.092131, -8.707405 |
| `features` | Listed features | Swimming Pool, Garden |
| `developmentName` | The development the unit belongs to, when given | |
| `mentionsGoldenVisa` | The description mentions the Golden Visa | false |
| `nearby` | Places near the property, with type, name and distance in km | restaurant, La Bistro, 0.3 |
| `publishedAt` | Publication date | 2026-08-31T14:00:00 |
| `description` | Full description | Set in the prestigious… |
| `image`, `images`, `videoUrl` | Main photo, all photos and video | |

### Notes

- `Lisbon` and `Porto` mean the whole district, so `Lisbon` includes Cascais and Sintra. Name a town, such as `Cascais`, for just that town. `Algarve` is the Faro district. `Silver Coast` covers its main municipalities, from Torres Vedras to Marinha Grande.
- `mentionsGoldenVisa` only reports that the words appear in the description. It says nothing about legal eligibility, so check current rules with a lawyer.
- Sold listings are left out, and reserved ones are kept with `status: reserved`.
- Areas and room counts are what agencies entered, so a few look odd, such as very large plots. They are delivered unchanged.
- Agent names are not collected. Phone numbers and e-mail addresses inside descriptions are replaced with `[phone]` and `[e-mail]`.

### Em português

Este Actor recolhe os imóveis à venda no Portugal Homes por distrito, concelho ou freguesia: preço em euros, €/m², quartos, casas de banho, áreas, classe energética, coordenadas, características e fotografias. Custa **2 $ por 1.000 imóveis** (100 imóveis = 0,20 $). Escreva por exemplo `Lisboa`, `Algarve` ou `Porto` e clique em Start.

# Actor input Schema

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

Areas, districts, towns or parishes in Portugal, e.g. 'Lisbon', 'Algarve', 'Porto', 'Madeira', 'Cascais', 'Silver Coast', 'Funchal'. Use 'Portugal' for every property on the site.

## `category` (type: `string`):

Only this category of property.

## `propertyTypes` (type: `array`):

Only these types, as written on the site, e.g. 'Apartment', 'Villa', 'House', 'Farm', 'Buildable Land'. Empty = all.

## `minPrice` (type: `integer`):

Only properties at or above this price.

## `maxPrice` (type: `integer`):

Only properties at or below this price.

## `minBedrooms` (type: `integer`):

Only properties with at least this many bedrooms.

## `minAreaM2` (type: `integer`):

Only properties with at least this living area, or total area when no living area is stated.

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

Or paste property pages or location pages, e.g. https://www.portugalhomes.com/properties-for-sale/locations/algarve

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

Stop after this many properties in total. 0 = no limit.

## Actor input object example

```json
{
  "locations": [
    "Lisbon"
  ],
  "category": "all",
  "maxItems": 20
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `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 = {
    "locations": [
        "Lisbon"
    ],
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("sn41lz/portugal-homes-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 = {
    "locations": ["Lisbon"],
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("sn41lz/portugal-homes-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 '{
  "locations": [
    "Lisbon"
  ],
  "maxItems": 20
}' |
apify call sn41lz/portugal-homes-scraper --silent --output-dataset

```

## MCP server setup

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