# PAP Real Estate Scraper — Sale & Rental Listings (`apikiy/pap-scraper`) Actor

Scrape property listings from [PAP.fr](https://www.pap.fr) (Particulier à Particulier) — France's leading peer-to-peer real estate platform. Extract properties

- **URL**: https://apify.com/apikiy/pap-scraper.md
- **Developed by:** [Julien ApiKiy](https://apify.com/apikiy) (community)
- **Categories:** Real estate
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.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

## PAP.fr Real Estate Scraper

Scrape property listings from [PAP.fr](https://www.pap.fr) (Particulier à Particulier) — France's leading peer-to-peer real estate platform. Extract properties for sale or rent with full details including price, area, rooms, images, and seller type.

### Features

- **French Real Estate Data**: Access thousands of PAP.fr listings without agency fees
- **Sale & Rental Support**: Search both vente (sale) and location (rental) listings
- **Multi-Property Types**: Apartments, houses, land, commercial properties, buildings
- **Rich Data Extraction**: Title, price, area, rooms, bedrooms, address, images, seller type, publication date, energy class
- **Seller Detection**: Automatically identifies particulier (private) vs professionnel (agency) sellers
- **Smart Filtering**: Price range, area range filters built-in
- **Anti-Detection**: Random delays, user agent rotation, stealth scripts, session management
- **Residential Proxy**: PAP.fr now blocks plain requests with a 403 — a residential proxy is used by default to get real results
- **JSON-LD Extraction**: Uses structured data from detail pages for maximum reliability
- **Infinite Scroll**: Handles PAP's dynamic content loading
- **Duplicate Prevention**: Deduplicates listings across multiple search queries

### Use Cases

- **Property market analysis** — aggregate pricing data across French cities
- **Investment screening** — find properties matching specific criteria
- **Market monitoring** — track new listings and price changes
- **Competitive intelligence** — analyze seller types and market composition
- **Lead generation** — identify private sellers vs agency listings

### Input

| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| `locations` | `string[]` | Yes | — | French locations to search (e.g., "Paris", "Lyon 69", "Bordeaux 33001") |
| `propertyTypes` | `string[]` | No | `["appartement", "maison"]` | Property types: `appartement`, `maison`, `terrain`, `local-commercial`, `immeuble` |
| `listingType` | `string` | No | `"vente"` | `"vente"` for sale, `"location"` for rental |
| `minPrice` | `number` | No | `0` | Minimum price in euros (0 = no minimum) |
| `maxPrice` | `number` | No | `0` | Maximum price in euros (0 = no maximum) |
| `minArea` | `number` | No | `0` | Minimum surface area in m² |
| `maxArea` | `number` | No | `0` | Maximum surface area in m² |
| `maxResults` | `number` | No | `20` | Max results per location/type combination (1-200) |
| `maxConcurrency` | `number` | No | `2` | Concurrent browser pages (1-10) |
| `delayMin` | `number` | No | `2000` | Min delay between requests in ms |
| `delayMax` | `number` | No | `5000` | Max delay between requests in ms |
| `debugMode` | `boolean` | No | `false` | Enable verbose logging |

### Output

Each listing includes:

```json
{
  "title": "Vente appartement 2 pièces 40,86 m² Arpajon (91290)",
  "price": 154900,
  "area": 40.86,
  "rooms": 2,
  "bedrooms": 1,
  "address": "Rue Marcelle Gourmelon, 91290 Arpajon",
  "location": "Arpajon",
  "postalCode": "91290",
  "department": null,
  "propertyType": "apartment",
  "listingType": "sale",
  "url": "https://www.pap.fr/annonces/appartement-arpajon-91290-r463100431",
  "images": [
    "https://cdn.pap.fr/photos/pap/c2/0e/c20ecaea1806e710aa355a5b930ce7ea/c-p1.jpg"
  ],
  "sellerType": "particulier",
  "publicationDate": "28 juin 2026",
  "description": "T2 à Arpajon, proche de toutes les commodités...",
  "energyClass": "C",
  "gesClass": null,
  "scrapedAt": "2026-07-04T12:00:00.000Z"
}
````

### Example Runs

#### Sale apartments in Paris

```json
{
  "locations": ["Paris 75"],
  "propertyTypes": ["appartement"],
  "listingType": "vente",
  "maxResults": 50
}
```

#### Rental houses in Lyon under 1500€

```json
{
  "locations": ["Lyon 69"],
  "propertyTypes": ["maison"],
  "listingType": "location",
  "maxPrice": 1500,
  "maxResults": 30
}
```

#### Multi-city land search

```json
{
  "locations": ["Bordeaux 33", "Toulouse 31", "Nantes 44"],
  "propertyTypes": ["terrain"],
  "listingType": "vente",
  "minArea": 200,
  "maxResults": 20
}
```

### Technical Details

- **Base URL**: `https://www.pap.fr`
- **URL Patterns**:
  - Sale: `/annonce/vente-{type}s-{location}-g{id}`
  - Rental: `/annonce/location-{type}s-{location}-g{id}`
  - Detail: `/annonces/{type}-{city}-{postal}-r{id}`
- **Data Sources**: HTML parsing + JSON-LD structured data extraction
- **Anti-Detection**: Navigator overrides, user agent rotation, randomized delays
- **Residential Proxy**: used by default (`proxyConfiguration` input) since PAP.fr blocks plain requests with a 403

### 💰 Pricing

Pay-per-use, no monthly fees:

| | Price |
|---|---|
| **Actor start** | $0.01 |
| **Per result** | $0.01 |

> 💡 Example: A run returning 500 results costs **$5.01** total ($0.01 start + 500 × $0.01).

### Development

```bash
## Install dependencies
npm install

## Run tests
npm test

## Run locally with Apify CLI
apify call -i input.json

## Build Docker image
docker build -t pap-scraper .
```

### Keywords

PAP, pap.fr, immobilier, particulier à particulier, French real estate, property scraper, sale, rental, apartments, houses, Playwright, Apify, scraper, France, property listing

# Actor input Schema

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

French locations to search (city names, postal codes, or department codes). Examples: 'Paris', 'Lyon 69', 'Bordeaux 33', 'Marseille 13001'

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

Types of properties to search for

## `listingType` (type: `string`):

Search for sale or rental listings

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

Minimum price filter (0 = no minimum)

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

Maximum price filter (0 = no maximum)

## `minArea` (type: `number`):

Minimum surface area in square meters

## `maxArea` (type: `number`):

Maximum surface area in square meters

## `maxResults` (type: `integer`):

Maximum number of listings to scrape per location

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

Maximum number of concurrent browser pages

## `delayMin` (type: `integer`):

Minimum delay between requests in milliseconds

## `delayMax` (type: `integer`):

Maximum delay between requests in milliseconds

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

PAP.fr now blocks plain (no-proxy) requests with a 403 — a residential proxy is required to get real results.

## `debugMode` (type: `boolean`):

Enable verbose logging for troubleshooting

## Actor input object example

```json
{
  "locations": [
    "Paris"
  ],
  "propertyTypes": [
    "appartement",
    "maison"
  ],
  "listingType": "vente",
  "minPrice": 0,
  "maxPrice": 0,
  "minArea": 0,
  "maxArea": 0,
  "maxResults": 20,
  "maxConcurrency": 2,
  "delayMin": 2000,
  "delayMax": 5000,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  },
  "debugMode": 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 = {
    "locations": [
        "Paris"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("apikiy/pap-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": ["Paris"] }

# Run the Actor and wait for it to finish
run = client.actor("apikiy/pap-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 '{
  "locations": [
    "Paris"
  ]
}' |
apify call apikiy/pap-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "PAP Real Estate Scraper — Sale & Rental Listings",
        "description": "Scrape property listings from [PAP.fr](https://www.pap.fr) (Particulier à Particulier) — France's leading peer-to-peer real estate platform. Extract properties",
        "version": "0.1",
        "x-build-id": "NU3IDBiygl1AW4AW3"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/apikiy~pap-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-apikiy-pap-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/apikiy~pap-scraper/runs": {
            "post": {
                "operationId": "runs-sync-apikiy-pap-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/apikiy~pap-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-apikiy-pap-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": {
                    "locations": {
                        "title": "Locations",
                        "type": "array",
                        "description": "French locations to search (city names, postal codes, or department codes). Examples: 'Paris', 'Lyon 69', 'Bordeaux 33', 'Marseille 13001'",
                        "default": [
                            "Paris"
                        ],
                        "items": {
                            "type": "string"
                        }
                    },
                    "propertyTypes": {
                        "title": "Property Types",
                        "type": "array",
                        "description": "Types of properties to search for",
                        "default": [
                            "appartement",
                            "maison"
                        ],
                        "items": {
                            "type": "string"
                        }
                    },
                    "listingType": {
                        "title": "Listing Type",
                        "enum": [
                            "vente",
                            "location"
                        ],
                        "type": "string",
                        "description": "Search for sale or rental listings",
                        "default": "vente"
                    },
                    "minPrice": {
                        "title": "Min Price (€)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Minimum price filter (0 = no minimum)",
                        "default": 0
                    },
                    "maxPrice": {
                        "title": "Max Price (€)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Maximum price filter (0 = no maximum)",
                        "default": 0
                    },
                    "minArea": {
                        "title": "Min Area (m²)",
                        "minimum": 0,
                        "type": "number",
                        "description": "Minimum surface area in square meters",
                        "default": 0
                    },
                    "maxArea": {
                        "title": "Max Area (m²)",
                        "minimum": 0,
                        "type": "number",
                        "description": "Maximum surface area in square meters",
                        "default": 0
                    },
                    "maxResults": {
                        "title": "Max Results",
                        "minimum": 1,
                        "maximum": 200,
                        "type": "integer",
                        "description": "Maximum number of listings to scrape per location",
                        "default": 20
                    },
                    "maxConcurrency": {
                        "title": "Max Concurrency",
                        "minimum": 1,
                        "maximum": 10,
                        "type": "integer",
                        "description": "Maximum number of concurrent browser pages",
                        "default": 2
                    },
                    "delayMin": {
                        "title": "Min Delay (ms)",
                        "minimum": 500,
                        "maximum": 10000,
                        "type": "integer",
                        "description": "Minimum delay between requests in milliseconds",
                        "default": 2000
                    },
                    "delayMax": {
                        "title": "Max Delay (ms)",
                        "minimum": 1000,
                        "maximum": 15000,
                        "type": "integer",
                        "description": "Maximum delay between requests in milliseconds",
                        "default": 5000
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "PAP.fr now blocks plain (no-proxy) requests with a 403 — a residential proxy is required to get real results.",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ]
                        }
                    },
                    "debugMode": {
                        "title": "Debug Mode",
                        "type": "boolean",
                        "description": "Enable verbose logging for troubleshooting",
                        "default": false
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
