# PagesJaunes · Email & Website Scraper from URL (`corent1robert/pagesjaunes-local-leads`) Actor

Paste a PagesJaunes search or /pros/ URL. Get emails when published, websites, phones and SIRET — one row per business, ready for CRM. No login.

- **URL**: https://apify.com/corent1robert/pagesjaunes-local-leads.md
- **Developed by:** [Corentin Robert](https://apify.com/corent1robert) (community)
- **Categories:** Lead generation, Business
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.56 / 1,000 business with phones

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#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

## PagesJaunes · Email & Website Scraper from URL

Paste a **PagesJaunes directory or search URL** (we paginate) or **`/pros/` listing URLs**. One row per business: **email** when published, **website**, phones, SIRET, NAF — ready for CRM.

**No login. No API key. Public directory only.**

### Who is this for?

| You are… | Typical goal | Suggested setup |
|----------|--------------|-----------------|
| Local outbound / SDR | Call lists of kinés, opticians, restaurants | Paste a directory URL, 20–200 rows |
| Franchise / network scout | Map a vertical in one city | One trade, raise max items |
| Agency / CRM ops | Enrich a territory file with phones and SIRET | Outreach / CRM dataset view |
| Market research | Count and locate shops | Overview view, skip nothing |

**What you get by default:** name, address, PagesJaunes profile URL, public phones when the fiche publishes them, SIRET / NAF / SIREN when the “Infos financières” block is present. List pages do **not** include phones — each row opens the public profile.

**What we do not invent:** emails. PagesJaunes rarely shows a mailbox on the fiche. Turn on **Find email on the business website** to look for a public address on the company site (same idea as HelloAsso). Empty `website` means the listing did not publish one.

### Quick start

1. Open the Actor in [Apify Console](https://console.apify.com).
2. On [pagesjaunes.fr](https://www.pagesjaunes.fr), search a trade + city (or open a fiche).
3. Paste the URL:
   - **Directory / search URL** — we paginate the list and open each fiche.
   - **Listing URL** (`/pros/{id}`) — we scrape only those fiches.
4. Leave **Max businesses** at 20 for a first run.
5. Click **Start**. Open the Dataset while it fills.

### Ready-made examples (published tasks)

| Example | Best for |
|---------|----------|
| [Physiotherapists in Lyon](https://apify.com/corent1robert/pagesjaunes-local-leads/examples/lyon-physiotherapists) | Health outbound, phones + SIRET |
| [Opticians in Paris](https://apify.com/corent1robert/pagesjaunes-local-leads/examples/paris-opticians) | Retail / optical networks |
| [Restaurants in Marseille](https://apify.com/corent1robert/pagesjaunes-local-leads/examples/marseille-restaurants) | Local hospitality lists |
| [Sport shops in Bordeaux](https://apify.com/corent1robert/pagesjaunes-local-leads/examples/bordeaux-sport-shops) | Retail territory mapping |

### What it extracts

| Category | Fields |
|----------|--------|
| Identity | `name`, `epj`, `listingUrl`, `activity` |
| Address | `street`, `city`, `postalCode`, `department`, `address` |
| Contact | `phone`, `phones[]`, `website`, `email`, `emailSource` |
| Company | `siret`, `siren`, `naf`, `legalForm` |
| Extra | `description`, `latitude`, `longitude`, `openingHours`, `imageUrl` |

Fill rates from a Lyon physiotherapist spike (8 profiles): **8/8 phones**, **6/8 SIRET + NAF**. Coverage varies by vertical — restaurants publish SIRET less often than regulated health listings.

### Input

| Field | What it does |
|-------|----------------|
| `searchUrls` | PagesJaunes directory or search URL(s). We paginate. |
| `listingUrls` | Direct `/pros/{id}` fiche URL(s). No directory crawl. |
| `maxItems` | Row cap. **0** = no ceiling. **Free plan: 20 / run** |
| `enrichFromWebsite` | HTTP(S) on the business website for a published mailbox. Off by default. |

API-only: `proxyConfiguration`, `maxConcurrency` (1–12, default **8**). Cloud runs use Apify Proxy by default.

#### Example — paginate a directory

```json
{
  "searchUrls": ["https://www.pagesjaunes.fr/annuaire/lyon-69/masseurs-kinesitherapeutes"],
  "maxItems": 20
}
```

#### Example — specific fiches

```json
{
  "listingUrls": ["https://www.pagesjaunes.fr/pros/53957648"]
}
```

### Output example

```json
{
  "name": "Claire Heberling",
  "epj": "53957648",
  "listingUrl": "https://www.pagesjaunes.fr/pros/53957648",
  "activity": "Physiotherapists (kinés)",
  "street": "11 Antoine Lumière",
  "city": "Lyon",
  "postalCode": "69008",
  "phone": "06 86 79 56 68",
  "phones": ["06 86 79 56 68"],
  "email": "contact@cabinet-exemple.fr",
  "emailSource": "business-website",
  "siret": "49247814400040",
  "siren": "492478144",
  "naf": "8690E",
  "country": "FR"
}
```

### How to use

1. Paste a PagesJaunes directory or listing URL.
2. Set `maxItems` (20 for a trial).
3. Run. Rows appear as each public profile is parsed.
4. Export Dataset as JSON / CSV / Excel.

### How it works

1. Open the public SEO directory (browser — Cloudflare blocks plain HTTP).
2. Read listing JSON-LD (name, address, profile id).
3. Open each `/pros/{id}` fiche for phones, SIRET and NAF.
4. If **Find email on the business website** is on and the listing has a site, fetch homepage + contact / mentions légales over HTTP(S).
5. Deduplicate by PagesJaunes id and push immediately.

Typical trial (20 rows): about **1–2 minutes** after Chrome starts, not 10. Large paid runs take several minutes because each lead needs a profile page.

### How much does it cost to scrape PagesJaunes?

Pay per saved business (plus a tiny Actor start). Comparable PagesJaunes Actors on the Store typically list **$0.80–$1.00 per 1,000 rows**. This Actor matches the floor on phone leads and only charges more when a **real mailbox** is found.

| Event (Free) | Per row | Per 1,000 |
|--------------|---------|-----------|
| Business with phone (default, primary) | $0.0008 | **$0.80** |
| Business with email (fiche or website) | $0.0015 | $1.50 |
| Business without phone | $0.0004 | $0.40 |
| Actor start | $0.00005 / GB | — |

| Scenario | Approx. cost (Free) |
|----------|---------------------|
| 20 rows with phone (trial) | ~$0.016 + start |
| 20 rows with email | ~$0.03 + start |
| 1,000 rows with phone | **~$0.80** + start |
| 1,000 rows with email | ~$1.50 + start |

Bronze → Diamond pay less per row. Datacenter Apify Proxy on cloud is enough in our tests (no residential required).

### Is it legal to scrape PagesJaunes?

This Actor only reads **public** PagesJaunes directory pages. Listings can contain personal data (names, phones). You must have a lawful basis (GDPR / ePrivacy) for your use case — typically B2B outreach to professionals. We do not bypass logins or paid walls.

### Local development

```bash
cd pagesjaunes-local-leads
npm install
npm test
apify run --purge
```

Default input is in `.actor/INPUT.json` (Lyon physiotherapists, 8 rows). Local `apify run` is **not** capped at 20.

### Also available

**[HelloAsso · French Association Directory](https://apify.com/corent1robert/helloasso-scraper)** — public association names, cities and profile URLs.

### Support

Contact <corentin@outreacher.fr> if you need a custom scraper or a tailored trade mapping.

# Actor input Schema

## `searchUrls` (type: `array`):

On [pagesjaunes.fr](https://www.pagesjaunes.fr), search a trade and a city (or open any `/annuaire/{city}/{activity}` page), then **copy the URL from your browser** and paste it here.

One URL per line. We walk page 1, 2, 3… until Max businesses or the list ends.

Also works with **chercherlespros** search URLs (`quoiqui` + `ou`).

## `listingUrls` (type: `array`):

Paste one or more PagesJaunes business pages (`/pros/{id}`).

Example: `https://www.pagesjaunes.fr/pros/53957648`

No directory crawl — only these fiches. Mix with directory URLs if you want both.

## `maxItems` (type: `integer`):

Stop after this many unique listings. **0 = all matching results**. Free Apify plans cap at 20 rows per run.

## `enrichFromWebsite` (type: `boolean`):

When the listing has a website, fetch it over HTTP(S) and keep a published mailbox (prefer contact@). Off by default so a trial stays fast. Rows with an email are billed as listing-with-email.

## Actor input object example

```json
{
  "searchUrls": [
    "https://www.pagesjaunes.fr/annuaire/lyon-69/masseurs-kinesitherapeutes"
  ],
  "listingUrls": [],
  "maxItems": 20,
  "enrichFromWebsite": false
}
```

# Actor output Schema

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

One row per listing — identity, address, phones, SIRET, profile URL.

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

Name, city, phone, SIRET, listing URL.

## `outreachCrm` (type: `string`):

Email, phones, website, SIRET and address for CRM import.

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

Plain-text log of the run phases and progress.

# 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 = {
    "searchUrls": [
        "https://www.pagesjaunes.fr/annuaire/lyon-69/masseurs-kinesitherapeutes"
    ],
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("corent1robert/pagesjaunes-local-leads").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 = {
    "searchUrls": ["https://www.pagesjaunes.fr/annuaire/lyon-69/masseurs-kinesitherapeutes"],
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("corent1robert/pagesjaunes-local-leads").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 '{
  "searchUrls": [
    "https://www.pagesjaunes.fr/annuaire/lyon-69/masseurs-kinesitherapeutes"
  ],
  "maxItems": 20
}' |
apify call corent1robert/pagesjaunes-local-leads --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,corent1robert/pagesjaunes-local-leads"
        }
    }
}

```

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/vTUcPVCQusT0b6AX3/builds/xCdEye76BXJgnPOuf/openapi.json
