# Enriched French Business Leads — PagesJaunes + SIRENE + Google (`rragen/pagesjaunes-scraper`) Actor

Scrape PagesJaunes.fr and enrich each business with its legal identity (SIREN registry) and Google reviews. Sales-ready B2B leads for France.

- **URL**: https://apify.com/rragen/pagesjaunes-scraper.md
- **Developed by:** [Rragen](https://apify.com/rragen) (community)
- **Categories:** Lead generation
- **Stats:** 2 total users, 1 monthly users, 75.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 listings

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

## Enriched French Business Leads (PagesJaunes + SIRENE + Google)

Turn a simple search into **sales-ready B2B leads for the French market**. Search PagesJaunes.fr by
activity and location, and get each business enriched with its **legal identity** (French company
registry) and its **real online reputation** (Google Maps) — in one dataset.

Three data layers, one row:

- 📇 **Contact (PagesJaunes)** — name, category, address, phone, website.
- 🏛️ **Legal identity (SIRENE)** — SIREN, registered legal name, activity code, legal form, headcount.
- ⭐ **Reputation (Google Maps)** — rating and review count, typically **far richer than PagesJaunes**
  (real example: 2473 Google reviews vs 13 on PagesJaunes for the same restaurant).

No CAPTCHA solving, no config — runs on a real browser and handles Cloudflare out of the box.

### Why enriched?

A raw directory scrape is a commodity. The value is the **join**: a phone number becomes a qualified
lead when you also know the legal entity behind the trade name and how well-reviewed it actually is.
SIRENE tells you *who you're really dealing with*; Google tells you *how they're doing*.

### Input

| Field | Required | Default | Description |
|-------|----------|---------|-------------|
| `quoiqui` | ✅ | — | What/who: activity or brand (`restaurant`, `plombier`, …) |
| `ou` | ✅ | — | Where: city or department (`Rennes`, `35`) |
| `pages` | | `1` | Result pages to crawl (~20 listings each) |
| `enrichSirene` | | `true` | Add legal identity from the French company registry (free public data) |
| `enrichGoogle` | | `false` | Add Google Maps rating + review count |
| `phones` | | `true` | Resolve phone numbers |
| `sites` | | `false` | Also collect websites (slower) |
| `useProxy` | | `true` | Route through Apify French residential proxies |

### Output (one row per business)

```json
{
  "name": "Crêperie La Gavotte",
  "category": "restaurants",
  "address": "41 rue St Georges 35000 Rennes",
  "phone": "02 99 38 44 12",
  "pjUrl": "https://www.pagesjaunes.fr/pros/03162506",
  "sirene": {
    "siren": "801870254",
    "denomination": "5 YEARS (LA GAVOTTE)",
    "naf": "56.10A",
    "nature_juridique": "5499",
    "effectif": "NN",
    "actif": true,
    "via": "geo"
  },
  "google": { "rating": 4.6, "reviews": 2473, "confident": true }
}
````

`sirene` / `google` are `null` when no confident match is found — matches are **address-verified**,
so you don't get a random company from the same building.

### Pricing (pay-per-event)

You only pay for what you actually get:

| Event | When it's charged |
|-------|-------------------|
| `listing` | per business returned |
| `sirene` | only when a legal identity is **matched** |
| `google` | only when Google reputation is **matched** |

Unmatched enrichments are free. Turn `enrichSirene` / `enrichGoogle` off to keep it to the base listing.

### Notes

- Phone numbers are resolved via the site's AJAX endpoint (fast, reliable, no click).
- SIRENE matching is address-verified (name search + geographic fallback), active establishments preferred.
- Google enrichment runs the Compass Google Maps actor under the hood.

### Fair use

Scrape responsibly: respect the sources' terms, keep volumes reasonable, and handle personal data
(phone numbers) in line with GDPR.

# Actor input Schema

## `quoiqui` (type: `string`):

Activity or business name — any PagesJaunes term works (e.g. "notaire", "garden center", or a brand like "McDonald's"). These categories additionally get enhanced SIRENE geo-matching (higher legal-identity hit rate): restaurant, hôtel, coiffeur, plombier, garage, pharmacie, fleuriste, opticien, boulangerie, boucherie, agence immobilière, avocat, médecin, dentiste, vétérinaire, auto-école, taxi. Maps to the PagesJaunes "quoiqui" field.

## `ou` (type: `string`):

Location: city or department, e.g. "Rennes" or "35". Maps to the PagesJaunes "où" field.

## `pages` (type: `integer`):

Number of result pages to crawl (~20 listings per page).

## `enrichSirene` (type: `boolean`):

Match each listing to the French company registry: SIREN, legal name, NACE code, legal form, headcount. Free public data.

## `enrichGoogle` (type: `boolean`):

Add Google Maps rating and review count (usually far more reviews than PagesJaunes). Uses the Compass Google Maps actor under the hood.

## `phones` (type: `boolean`):

Resolve each phone number via the PagesJaunes AJAX endpoint. Cheap; on by default.

## `sites` (type: `boolean`):

Also collect each business website. Requires one extra page navigation per listing, so noticeably slower.

## `useProxy` (type: `boolean`):

Recommended at scale: datacenter IPs get challenged by Cloudflare. Routes traffic through French residential proxies.

## Actor input object example

```json
{
  "quoiqui": "restaurant",
  "ou": "Rennes",
  "pages": 1,
  "enrichSirene": true,
  "enrichGoogle": false,
  "phones": true,
  "sites": false,
  "useProxy": true
}
```

# Actor output Schema

## `leads` (type: `string`):

One row per business: PagesJaunes contact + SIRENE legal identity + Google reputation.

# 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 = {
    "quoiqui": "restaurant",
    "ou": "Rennes"
};

// Run the Actor and wait for it to finish
const run = await client.actor("rragen/pagesjaunes-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 = {
    "quoiqui": "restaurant",
    "ou": "Rennes",
}

# Run the Actor and wait for it to finish
run = client.actor("rragen/pagesjaunes-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 '{
  "quoiqui": "restaurant",
  "ou": "Rennes"
}' |
apify call rragen/pagesjaunes-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Enriched French Business Leads — PagesJaunes + SIRENE + Google",
        "description": "Scrape PagesJaunes.fr and enrich each business with its legal identity (SIREN registry) and Google reviews. Sales-ready B2B leads for France.",
        "version": "0.2",
        "x-build-id": "tbAhj2hPBKepCyKux"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/rragen~pagesjaunes-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-rragen-pagesjaunes-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/rragen~pagesjaunes-scraper/runs": {
            "post": {
                "operationId": "runs-sync-rragen-pagesjaunes-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/rragen~pagesjaunes-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-rragen-pagesjaunes-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",
                "required": [
                    "quoiqui",
                    "ou"
                ],
                "properties": {
                    "quoiqui": {
                        "title": "What / who",
                        "type": "string",
                        "description": "Activity or business name — any PagesJaunes term works (e.g. \"notaire\", \"garden center\", or a brand like \"McDonald's\"). These categories additionally get enhanced SIRENE geo-matching (higher legal-identity hit rate): restaurant, hôtel, coiffeur, plombier, garage, pharmacie, fleuriste, opticien, boulangerie, boucherie, agence immobilière, avocat, médecin, dentiste, vétérinaire, auto-école, taxi. Maps to the PagesJaunes \"quoiqui\" field."
                    },
                    "ou": {
                        "title": "Where",
                        "type": "string",
                        "description": "Location: city or department, e.g. \"Rennes\" or \"35\". Maps to the PagesJaunes \"où\" field."
                    },
                    "pages": {
                        "title": "Pages",
                        "minimum": 1,
                        "maximum": 100,
                        "type": "integer",
                        "description": "Number of result pages to crawl (~20 listings per page).",
                        "default": 1
                    },
                    "enrichSirene": {
                        "title": "Enrich with legal identity (SIRENE)",
                        "type": "boolean",
                        "description": "Match each listing to the French company registry: SIREN, legal name, NACE code, legal form, headcount. Free public data.",
                        "default": true
                    },
                    "enrichGoogle": {
                        "title": "Enrich with Google reviews",
                        "type": "boolean",
                        "description": "Add Google Maps rating and review count (usually far more reviews than PagesJaunes). Uses the Compass Google Maps actor under the hood.",
                        "default": false
                    },
                    "phones": {
                        "title": "Fetch phone numbers",
                        "type": "boolean",
                        "description": "Resolve each phone number via the PagesJaunes AJAX endpoint. Cheap; on by default.",
                        "default": true
                    },
                    "sites": {
                        "title": "Fetch websites",
                        "type": "boolean",
                        "description": "Also collect each business website. Requires one extra page navigation per listing, so noticeably slower.",
                        "default": false
                    },
                    "useProxy": {
                        "title": "Use Apify residential proxy (FR)",
                        "type": "boolean",
                        "description": "Recommended at scale: datacenter IPs get challenged by Cloudflare. Routes traffic through French residential proxies.",
                        "default": true
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
