# Patrick Besse immobilier API scrapper (`gingery_matsutake/patrick-besse-immobilier-api-scrapper`) Actor

- **URL**: https://apify.com/gingery\_matsutake/patrick-besse-immobilier-api-scrapper.md
- **Developed by:** [moah](https://apify.com/gingery_matsutake) (community)
- **Categories:** Automation, Real estate
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-usage

## 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

## Patrice Besse Real Estate Scraper

**Extract property listings from [patrice-besse.com](https://www.patrice-besse.com/)** — the French agency specialized in châteaux, hôtels particuliers, and character properties — straight into structured JSON. Point this Actor at any patrice-besse.com search results page, such as the [Paris & surrounding area search](https://www.patrice-besse.com/recherche-bien-immobilier-paris/), and get back price, address, surface area, room counts, full description, photo gallery and agent contact for every matching property. Try it directly from the Input tab, no coding required, and run it on a schedule or trigger it via the [Apify API](https://docs.apify.com/api/v2) to keep a dataset of listings continuously up to date.

### Why use this scraper?

- **Market monitoring** — track new luxury and character-property listings across Paris, the Île-de-France, or any other patrice-besse.com region without manually refreshing the site.
- **Lead generation** — feed structured property data into a CRM, spreadsheet, or internal dashboard.
- **Comparative analysis** — export price-per-m², location, and characteristics data for market research.
- **Automation-friendly** — combine with Apify's [scheduler](https://docs.apify.com/platform/schedules) and [integrations](https://apify.com/integrations) (Zapier, Make, Google Sheets, webhooks) to get notified of new listings automatically.

Because it runs on the Apify platform, you also get automatic retries, proxy rotation to avoid IP blocking, and run monitoring — all without managing any infrastructure yourself.

### How to scrape patrice-besse.com listings

1. Click **Try for free** (or **Start**) and open the **Input** tab.
2. Paste the search results URL(s) you want to crawl into **Start URLs** — it's prefilled with the Paris search, but any patrice-besse.com search page (other regions, or `recherche-bien-immobilier-france/` for all of France) works the same way.
3. Optionally adjust **Crawl property detail pages**, **Max properties**, and **Proxy configuration**.
4. Click **Start** and watch the results appear in the **Dataset** tab as the run progresses.
5. Export the results in your preferred format once the run finishes.

### Input

| Field | Description | Default |
| --- | --- | --- |
| `start_urls` | One or more patrice-besse.com search result pages to crawl. | Paris & proche Paris search |
| `crawl_detail_pages` | Visit each property's own page for the full description, characteristics table, photo gallery and agent contact. Disable for a faster, summary-only run. | `true` |
| `max_items` | Maximum number of properties to scrape per start URL. `0` means no limit. | `0` |
| `max_requests_per_crawl` | Safety cap on the total number of pages fetched (listing + detail pages) in one run. | `500` |
| `proxy_configuration` | Apify Proxy configuration used while crawling, to avoid IP blocking. | Apify Proxy enabled |

See the **Input** tab in Apify Console for the full schema and inline field descriptions.

### Output

Each scraped property is stored as one item in the dataset, for example:

```json
{
  "reference": "816061",
  "title": "Au sein d'un bourg de la vallée de l'Oise, une demeure de maître de 345 m², ses dépendances, son potager et son parc arboré de plus de 1 ha",
  "url": "https://www.patrice-besse.com/annonces/maison-de-caractere-a-vendre-vallee-de-l-oise--pb816061",
  "property_type": "demeures & maisons",
  "price": 1410000,
  "price_currency": "EUR",
  "address_locality": "Nointel, VAL-D'OISE",
  "address_region": "ile-de-france",
  "postal_code": "95590",
  "country": "FR",
  "situation": "Occupant le nord-ouest de l'Île-de-France...",
  "description": "Passé le mur d'enceinte et le portail automatisé...",
  "characteristics": {
    "Surface du bâtiment principal": "345 m²",
    "Surface des dépendances": "200 m²",
    "Surface cadastrale": "10000 m²"
  },
  "dpe_image_url": "https://medias4b.patrice-besse.com/photo-acquerir/27154/27154_DPE.jpg",
  "image_urls": ["https://medias4b.patrice-besse.com/photo-acquerir/27154/zoom/....jpg"],
  "contact_role": "Conseillère",
  "contact_name": "Nathalie Dubreuil",
  "contact_phone": "+33 1 42 84 80 85"
}
```

You can download the dataset in various formats such as JSON, HTML, CSV, or Excel directly from Apify Console or via the API.

#### Data fields

| Field | Description |
| --- | --- |
| `reference` | Patrice Besse internal listing reference number. |
| `title` | Full property headline. |
| `url` | Link to the property's detail page. |
| `property_type` | Category, e.g. `appartements`, `demeures & maisons`, `hôtels particuliers`, `loft`. |
| `price` / `price_currency` | Asking price and currency (usually EUR). |
| `address_locality`, `address_region`, `postal_code`, `country` | Location of the property. |
| `situation` | Description of the surrounding area/neighborhood (detail pages only). |
| `description` | Full free-text property description (detail pages only). |
| `characteristics` | Key/value table of surface areas, room counts, and other attributes; keys vary by property type (detail pages only). |
| `dpe_image_url` | Energy performance diagnostic (DPE) image, when published (detail pages only). |
| `image_url` / `image_urls` | Listing thumbnail and full-resolution photo gallery. |
| `contact_role`, `contact_name`, `contact_phone` | The listing agent's contact details (detail pages only). |

### Cost estimation

This Actor uses the lightweight `BeautifulSoupCrawler` (plain HTTP, no browser), so runs are fast and cheap. A search page such as the Paris one (~100 listings) plus all of its detail pages typically completes in a couple of minutes on the free Apify plan's compute allowance. Disable **Crawl property detail pages** for an even cheaper, summary-only run when you don't need the full description or photo gallery.

### Tips

- Leave **Max properties** at `0` to scrape everything matching a search, or set it low while testing your setup.
- If you only need a quick market snapshot (price, location, thumbnail), turn off **Crawl property detail pages** to roughly halve the number of requests.
- Add multiple regional search URLs to **Start URLs** in a single run to cover several areas at once.

### FAQ & support

This Actor only extracts publicly available listing data displayed on patrice-besse.com and does not bypass any access controls; please respect the site's [terms of use](https://www.patrice-besse.com/mentions-legales/) when using the scraped data. Website markup can change over time — if you notice missing or incorrect fields, please open an issue in the Issues tab so it can be reviewed and fixed. Need a custom version (different site, extra fields, scheduled delivery)? Reach out and a tailored solution can be built for you.

# Actor input Schema

## `start_urls` (type: `array`):

Search result page(s) on patrice-besse.com to crawl, e.g. the Paris property search. You can add other regional/country search pages from the site as well.

## `crawl_detail_pages` (type: `boolean`):

If enabled, each property's detail page is visited to extract the full description, characteristics table, photo gallery and agent contact. If disabled, only the summary fields visible on the search results page (title, price, address, reference, thumbnail) are scraped, which is faster.

## `max_items` (type: `integer`):

Maximum number of properties to scrape from each start URL. Set to 0 for no limit.

## `max_requests_per_crawl` (type: `integer`):

Safety limit on the total number of pages (search result pages + property detail pages) fetched during the run.

## `proxy_configuration` (type: `object`):

Recommended to avoid IP blocking while crawling.

## Actor input object example

```json
{
  "start_urls": [
    {
      "url": "https://www.patrice-besse.com/recherche-bien-immobilier-paris/"
    }
  ],
  "crawl_detail_pages": true,
  "max_items": 0,
  "max_requests_per_crawl": 500,
  "proxy_configuration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `properties` (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 = {
    "start_urls": [
        {
            "url": "https://www.patrice-besse.com/recherche-bien-immobilier-paris/"
        }
    ],
    "proxy_configuration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("gingery_matsutake/patrick-besse-immobilier-api-scrapper").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 = {
    "start_urls": [{ "url": "https://www.patrice-besse.com/recherche-bien-immobilier-paris/" }],
    "proxy_configuration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("gingery_matsutake/patrick-besse-immobilier-api-scrapper").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 '{
  "start_urls": [
    {
      "url": "https://www.patrice-besse.com/recherche-bien-immobilier-paris/"
    }
  ],
  "proxy_configuration": {
    "useApifyProxy": true
  }
}' |
apify call gingery_matsutake/patrick-besse-immobilier-api-scrapper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,gingery_matsutake/patrick-besse-immobilier-api-scrapper"
        }
    }
}

```

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/WRW0h7D0h3VEm6E4C/builds/oAYOJzRcvExIZmtD1/openapi.json
