# Notaires.fr Directory Scraper · French Notaries & Contacts (`corent1robert/notaires-fr-annuaire-scraper`) Actor

Scrape the official French notaires.fr directory: notary name, office address, postal code, city, website, and profile URL. Optionally open profile pages for office phone when published on the site. CRM, B2B prospecting, and market research. -> corentin@outreacher.fr

- **URL**: https://apify.com/corent1robert/notaires-fr-annuaire-scraper.md
- **Developed by:** [Corentin Robert](https://apify.com/corent1robert) (community)
- **Categories:** Automation, Lead generation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $9.99 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## Notaires.fr Directory Scraper — French Notaries (HTTP)

**Export the official French notaries register — offices, locations, and published contact details — in one dataset you can plug into CRM, prospecting, or market analysis.**

Stop copying notaires.fr by hand. This Actor reads the **public directory** the same way a visitor would, structures every notary as a row (name, address, city, postal code, website, phone when shown), and lets you either **cover the full listing** or **enrich only the profile URLs you already have**. You get JSON / CSV / Excel from the Apify **Dataset**, not screenshots and spreadsheets.

> **Built for:** B2B lead lists · CRM & data enrichment · Regional / département mapping · Competitive & sector research · Compliance-oriented professional outreach

> **Important:** Data comes from **public** notary profile pages. Phones and websites appear **only when the site displays them** for that office — some rows may have empty phone or website. You must comply with **notaires.fr** terms, **GDPR**, and **professional-directory** rules (no abusive resale of personal data).

---

### What does it extract?

| Category | What you get |
|----------|----------------|
| **Identity** | Notary name as shown on the official profile |
| **Location** | Office address line, postal code, city |
| **Contact** | Office phone, office website (when published on the profile) |
| **Links** | Canonical **profile URL**, plus the **directory page URL** when the row came from the full-directory mode |

**Output:** One row per notary in the Apify **Dataset**. Download as **JSON**, **CSV**, or **Excel** from the run. Use the **Quick view (table)** link in the output panel for a curated column set.

---

### Why teams use it

- **Full France in one decision** — run **Full directory** when you need scale: mapping the profession, building a national file, or feeding a data pipeline.
- **Surgical enrichment** — run **Your URLs** when you already have a shortlist (past export, event list, inbound leads): same fields, no need to re-crawl everything.
- **Ready for ops** — stable field names, easy merge with SIREN/SIRET files or CRM keys on city + name.
- **No manual pagination** — in full-directory mode, the **last page is detected automatically** from the site’s own pagination (you don’t guess page counts).

---

### Quick start (~2 minutes)

1. Open the Actor **Input** tab on Apify.
2. Under **Step 1 — What do you need?**, the **default** is **Your URLs** with one sample profile (fast for tests and store previews). Choose **Full directory** for a complete nationwide export.
3. In **Your URLs** mode, paste notary profile URLs in **Step 2** (**one URL per line** — same `stringList` pattern as our Facebook Ads Library Actor).
4. Click **Run**.
5. Open the **Dataset** tab and download JSON, CSV, or Excel.

---

### Two modes

#### Full directory

Best when you want **maximum coverage**: every notary profile listed in the official directory for your run, with **automatic** detection of how many result pages exist (no manual “end page” in the form).

Typical uses: nationwide or large-scale lists, first-time database build, market sizing.

```json
{
  "mode": "allData"
}
````

That’s all you need in the Console for a standard full run.

***

#### Your URLs (bulk)

Best when you **already know which profiles matter**: re-run enrichment, refresh contacts, or process a CSV of links from another tool.

Paste **notaires.fr** notary profile URLs only (paths like `/fr/notaire/...`). In the Apify form, each row is stored as `{ "url": "https://..." }`.

Single profile:

```json
{
  "mode": "bulkUrls",
  "profileUrls": [
    { "url": "https://www.notaires.fr/fr/notaire/ronald-chevalier" }
  ]
}
```

Many profiles:

```json
{
  "mode": "bulkUrls",
  "profileUrls": [
    { "url": "https://www.notaires.fr/fr/notaire/example-one" },
    { "url": "https://www.notaires.fr/fr/notaire/example-two" }
  ]
}
```

Invalid or non-profile URLs are skipped with a warning; only valid **notaires.fr** notary pages are processed.

***

### Input (Console vs API)

| What you see in the Console | Purpose |
|----------------------------|---------|
| **Mode** | **Default: Your URLs** (one sample link — safe quick runs). **Full directory** = entire listing. |
| **Notary profile URL(s)** | **Your URLs** — one URL per line (`stringList`, same idea as Facebook Ads Library). |

**Advanced tuning** (concurrency, timeouts, resume, turning off phone enrichment, manual page range) is available via the **API** or raw JSON if your team needs it — defaults are tuned for a balance of speed and reliability. See `input_schema.json` in the repository for the full schema.

***

### Progress & ETA

While a run is executing, you get **ASCII progress lines** in the log (same spirit as our Facebook Ads Library Actor), plus a **live status message** on the Apify run when supported. A **`RUN_LOG`** record in the default key-value store mirrors recent lines so you can open it from the **Output → Run log (live)** link.

- **Full directory** — First phase: **Directory pages** with `current/total` pages and ETA. If phone enrichment is on, second phase: **Profile phones** with `done/total` and ETA.
- **URL bulk** — Single phase: **Profile URLs** with progress through your list.

***

### Output sample

```json
{
  "name": "Maître Ronald CHEVALIER",
  "addressLine1": "5, avenue de Bretagne",
  "postalCode": "22440",
  "city": "PLOUFRAGAN",
  "website": "https://example-office.notaires.fr",
  "profileUrl": "https://www.notaires.fr/fr/notaire/ronald-chevalier?search_params=...",
  "directoryPageUrl": "https://www.notaires.fr/fr/directory/notaries?page=1",
  "phone": "0296782630"
}
```

In **Your URLs** mode, `directoryPageUrl` is typically the same as `profileUrl` (the row comes from the profile page only). Empty `phone` or `website` means the site did not expose them for that office.

If a bulk URL fails to load after retries, you may get a minimal row with `scrapeError: true` and the attempted `profileUrl` so you can retry later.

***

### Performance & cost

| Factor | Notes |
|--------|--------|
| **Full directory** | Thousands of profile pages when **phone** enrichment is on (one request per notary for contact details). Longer runs — plan **timeout** and **memory** accordingly on Apify. |
| **Your URLs** | Cost scales with **how many links** you paste — ideal for small batches or incremental updates. |
| **Rate limits** | The official site may slow or block aggressive traffic; default concurrency is conservative. Reduce concurrency if you see repeated failures. |

**Tip:** For a first production **full directory** run, confirm output on a **small API-only cap** (e.g. `maxPages` in raw JSON) before removing limits.

***

### Tips & best practices

**Prefer “Your URLs” for recurring updates** after you already have a master list — faster and cheaper than re-scraping all pages.

**Match your use case to the law** — professional directories are for **legitimate purposes** (B2B services, research with safeguards). Not for bulk unsolicited consumer spam.

**Deduplicate in your stack** — use `profileUrl` as the stable key across runs.

**Schedule** — Use Apify **Schedules** to refresh your shortlist monthly or quarterly.

***

### Use cases

| Goal | Suggested approach |
|------|--------------------|
| Build a national notary file | **Full directory** |
| Enrich CRM after a trade show | **Your URLs** with pasted profile links |
| Regional study (e.g. one département) | **Full directory** + filter rows in Excel/BI by postal code |
| Refresh phones for an old export | **Your URLs** + compare with previous dataset |

***

### FAQ

**Is this affiliated with Notaires de France?**\
No. It automates access to **public** pages on notaires.fr. You remain responsible for complying with their terms and applicable laws.

**Why is phone sometimes empty?**\
The site does not always show a direct line on the profile; the Actor does not invent numbers.

**Can I get every notary in France?**\
**Full directory** mode is designed to walk the official paginated listing until the end (last page auto-detected). Coverage matches what the directory publishes at run time.

**Does it work outside notaires.fr?**\
No. URLs must be **notaires.fr** notary profile pages (`/fr/notaire/...`).

***

### Support

**corentin@outreacher.fr**

***

### Local development

```bash
npm install
## Put INPUT in storage/key_value_stores/default/INPUT.json
apify run
```

Results are written under `storage/datasets/default/` when running locally.

***

### Legal

This Actor is intended for **professional, lawful** use of **public directory** data. Respect **notaires.fr** terms of use, **EU/FR privacy** rules, and **direct marketing** regulations. Do not use outputs to harass individuals or bypass consent requirements.

# Actor input Schema

## `mode` (type: `string`):

**Full directory** — Retrieves the **complete official listing**: all notary profiles as published on notaires.fr, including locations and contact channels where the site displays them.

**Your URLs** — You supply **notary profile pages** from notaires.fr; we extract the same structured fields for each link you provide.

## `profileUrls` (type: `array`):

Paste **notaires.fr** links: **notary profiles** (`/fr/notaire/...`) and/or **office pages** (`/fr/office/...`). One URL per row. Ideal for **shortlists** or **refreshing** contacts.

## Actor input object example

```json
{
  "mode": "bulkUrls",
  "profileUrls": [
    "https://www.notaires.fr/fr/notaire/ronald-chevalier"
  ]
}
```

# Actor output Schema

## `dataset` (type: `string`):

Complete results — download as CSV, JSON, or Excel from your run.

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

Key columns at a glance — name, location, phone, web, profile link.

## `runLog` (type: `string`):

Progress and ETA while directory pages and profile enrichment run.

# 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 = {
    "profileUrls": [
        "https://www.notaires.fr/fr/notaire/ronald-chevalier"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("corent1robert/notaires-fr-annuaire-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 = { "profileUrls": ["https://www.notaires.fr/fr/notaire/ronald-chevalier"] }

# Run the Actor and wait for it to finish
run = client.actor("corent1robert/notaires-fr-annuaire-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 '{
  "profileUrls": [
    "https://www.notaires.fr/fr/notaire/ronald-chevalier"
  ]
}' |
apify call corent1robert/notaires-fr-annuaire-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Notaires.fr Directory Scraper · French Notaries & Contacts",
        "description": "Scrape the official French notaires.fr directory: notary name, office address, postal code, city, website, and profile URL. Optionally open profile pages for office phone when published on the site. CRM, B2B prospecting, and market research. -> corentin@outreacher.fr",
        "version": "1.0",
        "x-build-id": "50jeNQZmWoMjkqFyA"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/corent1robert~notaires-fr-annuaire-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-corent1robert-notaires-fr-annuaire-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/corent1robert~notaires-fr-annuaire-scraper/runs": {
            "post": {
                "operationId": "runs-sync-corent1robert-notaires-fr-annuaire-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/corent1robert~notaires-fr-annuaire-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-corent1robert-notaires-fr-annuaire-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": {
                    "mode": {
                        "title": "Mode",
                        "enum": [
                            "allData",
                            "bulkUrls"
                        ],
                        "type": "string",
                        "description": "**Full directory** — Retrieves the **complete official listing**: all notary profiles as published on notaires.fr, including locations and contact channels where the site displays them.\n\n**Your URLs** — You supply **notary profile pages** from notaires.fr; we extract the same structured fields for each link you provide.",
                        "default": "bulkUrls"
                    },
                    "profileUrls": {
                        "title": "Notary profile URL(s)",
                        "type": "array",
                        "description": "Paste **notaires.fr** links: **notary profiles** (`/fr/notaire/...`) and/or **office pages** (`/fr/office/...`). One URL per row. Ideal for **shortlists** or **refreshing** contacts.",
                        "items": {
                            "type": "string"
                        }
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
