# \[DISABLED] PAP.fr Scraper (`apikiy/pap-scraper`) Actor

Temporarily disabled: PAP.fr currently blocks automated access with anti-bot 403 responses, so this Actor may return 0 results until proxy/stealth support is fixed.

- **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 web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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
- **No Proxy Required**: PAP.fr works without proxy — tested and confirmed
- **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
- **No Proxy Required**: PAP.fr serves content without proxy

### 💰 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). Runs with 0 results cost only **$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

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

Enable verbose logging for troubleshooting

## Actor input object example

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

// 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 = {}

# 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 '{}' |
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

Download the OpenAPI definition: https://api.apify.com/v2/actors/c7NYUdT7ASp0s3jcK/builds/BUXeWOdEjhDlPuxIl/openapi.json
