# E-Leilões Scraper (`antonionduarte/e-leiloes-scraper`) Actor

E-Leiloes.pt Property Auction Scraper — Extracts real estate listings from Portugal's judicial auction platform. Collects property details, values, bids, locations, photos, and legal process data. Supports filtering by district, value range, and incremental runs.

- **URL**: https://apify.com/antonionduarte/e-leiloes-scraper.md
- **Developed by:** [António Nunes Duarte](https://apify.com/antonionduarte) (community)
- **Categories:** Real estate, Automation
- **Stats:** 2 total users, 2 monthly users, 0.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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

## E-Leiloes.pt Property Auction Scraper

Apify actor that scrapes real estate auction listings from [e-leiloes.pt](https://www.e-leiloes.pt/), Portugal's judicial auction platform run by the Order of Solicitors (OSAE).

### Features

- Scrapes all real estate (imóveis) listings from the e-leiloes.pt REST API
- Extracts full property details: values, location with GPS coordinates, legal process info, execution agent, photos, encumbrances
- Optional filters by district, municipality, value range, and auction status
- Configurable concurrency and rate limiting for respectful scraping
- Uses Portuguese residential proxies by default for reliable access
- Output compatible with direct PostgreSQL insertion

### Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `district` | string | — | Filter by distrito (e.g., "Lisboa", "Porto") |
| `municipality` | string | — | Filter by concelho (e.g., "Cascais", "Matosinhos") |
| `minValue` | number | — | Minimum base value in euros |
| `maxValue` | number | — | Maximum base value in euros |
| `auctionStatus` | integer | — | 1 = active, 2 = ended |
| `proxyConfiguration` | object | PT residential | Proxy settings (Portuguese residential proxies recommended) |
| `maxConcurrency` | integer | 10 | Max parallel detail requests (1-50) |
| `requestDelay` | number | 0.5 | Seconds between requests (0-10) |

### Example Input

Scrape all active listings in Lisbon district:

```json
{
    "district": "Lisboa",
    "auctionStatus": 1,
    "maxConcurrency": 10,
    "requestDelay": 0.5
}
````

Scrape all listings across Portugal (default):

```json
{}
```

### Output Fields

Each listing record contains:

| Field | Type | Description |
|---|---|---|
| `reference` | string | Unique listing reference (e.g., "LO1453432026") |
| `title` | string | Property title |
| `description` | string | Full property description |
| `observations` | string | Additional observations |
| `propertyType` | string | Always "Imóvel" (real estate) |
| `propertySubtype` | string | Apartamento, Moradia, Terreno, Loja, Prédio, etc. |
| `typology` | string | T0-T6+, or "não aplicável" |
| `saleModalityId` | integer | 1 = Leilão Online, 2 = Negociação Particular |
| `baseValue` | number | Assessed base value (€) |
| `openingValue` | number | Opening bid value (€) |
| `minimumValue` | number | Minimum value for unconditional acceptance (€) |
| `currentBid` | number | Current highest bid (0 if no bids) |
| `auctionStart` | string | Auction start date (ISO 8601) |
| `auctionEnd` | string | Auction end date (ISO 8601) |
| `auctionEndInitial` | string | Original end date before extensions |
| `started` | boolean | Whether the auction has started |
| `ended` | boolean | Whether the auction has ended |
| `cancelled` | boolean | Whether the auction was cancelled |
| `address` | string | Street address |
| `addressNumber` | string | Street number |
| `addressFloor` | string | Floor/unit |
| `postalCode` | string | Postal code |
| `district` | string | District (Distrito) |
| `municipality` | string | Municipality (Concelho) |
| `parish` | string | Parish (Freguesia) |
| `latitude` | number | GPS latitude |
| `longitude` | number | GPS longitude |
| `usefulArea` | number | Useful private area (m²) |
| `dependentArea` | number | Dependent area (m²) |
| `totalArea` | number | Total area (m²) |
| `processNumber` | string | Judicial process reference (e.g., "8716/06.1TBMTS") |
| `court` | string | Court handling the execution |
| `courtDistrict` | string | Court district (Comarca) |
| `agentName` | string | Execution agent name |
| `agentEmail` | string | Execution agent email |
| `agentLicense` | string | Execution agent license number |
| `debtors` | array | Debtor information (name, NIF) |
| `photos` | array | Full photo URLs |
| `encumbrances` | array | Liens, leases, and other encumbrances |
| `propertyRegistration` | array | Property registry information |
| `ceremonyDate` | string | Bid opening ceremony date |
| `ceremonyLocation` | string | Ceremony location |
| `listingUrl` | string | Direct link on e-leiloes.pt |
| `updatedAt` | string | Last update on e-leiloes.pt |
| `scrapedAt` | string | When this record was scraped |

### Proxy Configuration

This scraper requires Portuguese residential proxies for reliable access to e-leiloes.pt. Residential proxies are enabled by default. The target site is a Portuguese government-adjacent platform that may block datacenter IP addresses.

# Actor input Schema

## `district` (type: `string`):

Filter by district (e.g., 'Lisboa', 'Porto', 'Faro'). Leave empty for all districts.

## `municipality` (type: `string`):

Filter by municipality (e.g., 'Cascais', 'Matosinhos'). Requires district to be set for meaningful results.

## `minValue` (type: `number`):

Minimum property base value in euros.

## `maxValue` (type: `number`):

Maximum property base value in euros.

## `auctionStatus` (type: `string`):

Filter by auction status: '1' = active (a decorrer), '2' = ended (terminados). Leave empty for all.

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

Portuguese residential proxies are required for reliable access to e-leiloes.pt. Do not change unless you know what you're doing.

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

Maximum number of concurrent HTTP requests for fetching listing details.

## `requestDelay` (type: `number`):

Delay in seconds between requests. This is a government-adjacent platform — be respectful.

## Actor input object example

```json
{
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "PT"
  },
  "maxConcurrency": 5,
  "requestDelay": 1
}
```

# Actor output Schema

## `defaultDataset` (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 = {
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "PT"
    },
    "maxConcurrency": 5,
    "requestDelay": 1
};

// Run the Actor and wait for it to finish
const run = await client.actor("antonionduarte/e-leiloes-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 = {
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "PT",
    },
    "maxConcurrency": 5,
    "requestDelay": 1,
}

# Run the Actor and wait for it to finish
run = client.actor("antonionduarte/e-leiloes-scraper").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 '{
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "PT"
  },
  "maxConcurrency": 5,
  "requestDelay": 1
}' |
apify call antonionduarte/e-leiloes-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "E-Leilões Scraper",
        "description": "E-Leiloes.pt Property Auction Scraper — Extracts real estate listings from Portugal's judicial auction platform. Collects property details, values, bids, locations, photos, and legal process data. Supports filtering by district, value range, and incremental runs.",
        "version": "0.0",
        "x-build-id": "g1DUcO5AiYCnSvQyo"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/antonionduarte~e-leiloes-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-antonionduarte-e-leiloes-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/antonionduarte~e-leiloes-scraper/runs": {
            "post": {
                "operationId": "runs-sync-antonionduarte-e-leiloes-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/antonionduarte~e-leiloes-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-antonionduarte-e-leiloes-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "district": {
                        "title": "District (Distrito)",
                        "type": "string",
                        "description": "Filter by district (e.g., 'Lisboa', 'Porto', 'Faro'). Leave empty for all districts."
                    },
                    "municipality": {
                        "title": "Municipality (Concelho)",
                        "type": "string",
                        "description": "Filter by municipality (e.g., 'Cascais', 'Matosinhos'). Requires district to be set for meaningful results."
                    },
                    "minValue": {
                        "title": "Minimum Base Value (€)",
                        "minimum": 0,
                        "type": "number",
                        "description": "Minimum property base value in euros."
                    },
                    "maxValue": {
                        "title": "Maximum Base Value (€)",
                        "minimum": 0,
                        "type": "number",
                        "description": "Maximum property base value in euros."
                    },
                    "auctionStatus": {
                        "title": "Auction Status",
                        "enum": [
                            "1",
                            "2"
                        ],
                        "type": "string",
                        "description": "Filter by auction status: '1' = active (a decorrer), '2' = ended (terminados). Leave empty for all."
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Portuguese residential proxies are required for reliable access to e-leiloes.pt. Do not change unless you know what you're doing.",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ],
                            "apifyProxyCountry": "PT"
                        }
                    },
                    "maxConcurrency": {
                        "title": "Max Concurrency",
                        "minimum": 1,
                        "maximum": 20,
                        "type": "integer",
                        "description": "Maximum number of concurrent HTTP requests for fetching listing details.",
                        "default": 5
                    },
                    "requestDelay": {
                        "title": "Request Delay (seconds)",
                        "minimum": 0.5,
                        "maximum": 10,
                        "type": "number",
                        "description": "Delay in seconds between requests. This is a government-adjacent platform — be respectful.",
                        "default": 1
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
