# PagesJaunes.fr Business Directory Scraper (`trev0n/pagesjaunes-scraper`) Actor

Scraper for PagesJaunes.fr - France's largest business directory. Extract company contact info, addresses, phone numbers, emails, websites, ratings, opening hours, SIRET/SIREN numbers, and more. Supports keyword search, location filtering, and direct URL scraping.

- **URL**: https://apify.com/trev0n/pagesjaunes-scraper.md
- **Developed by:** [Paweł](https://apify.com/trev0n) (community)
- **Categories:** Lead generation, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.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/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

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

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## 🇫🇷 PagesJaunes.fr Business Directory Scraper

🎯 **Get French business leads from PagesJaunes in seconds: name, phone, e-mail, website, address, GPS, opening hours and rating, for any trade and any city.**

Search like you would on PagesJaunes ("plombier" in "Lyon", "avocat" in "75008") or paste PagesJaunes search URLs. The scraper returns every matching business in the area, not just the first result page. No browser and no proxy: runs are fast and cheap.

### 🚀 What Does It Do?

1. **🔍 Keyword + location**: a trade or keyword (`plombier`, `boulangerie`, `expert-comptable`) and a city, postcode, department or region.
2. **📋 PagesJaunes search URLs**: paste `https://www.pagesjaunes.fr/annuaire/chercherlespros?quoiqui=plombier&ou=Lyon`; keyword and location are read from the URL.

Large areas are covered completely: when an area has more businesses than one search returns, it is split into smaller tiles automatically and the results are merged and deduplicated.

### 👥 Who Is This For?

| 🏢 Use Case                 | 💬 How It Helps                                                  |
| --------------------------- | ---------------------------------------------------------------- |
| 🎯 **B2B prospecting**      | Lists of trades and professionals per city with phone and e-mail |
| 📊 **Market research**      | Count and map businesses by trade and area, with ratings         |
| 🗺️ **Local SEO / agencies** | Find businesses without a website or with few reviews            |
| 🤝 **Sales teams**          | Territory lists with GPS coordinates for route planning          |

### ✨ Features

- 📞 **Contact data**: phone, e-mail (about 80% of businesses), website
- 🚫 **Bloctel flag**: `phoneOptOut` shows when a number is registered against direct marketing
- 📍 **Address + GPS**: street, postcode, city, latitude and longitude
- ⭐ **Rating and review count**, opening hours and current open/closed status
- 📝 **Optional details**: description, listed services and photo gallery
- 🗺️ **Complete area coverage** through automatic tiling, with deduplication
- ⚡ **Fast and light**: plain HTTP JSON requests, 256 MB of memory, no proxy needed

### 🎛️ Input

| Option                                          | What It Does                                                           |
| ----------------------------------------------- | ---------------------------------------------------------------------- |
| 🔍 **Search Keyword**                           | Trade or keyword, e.g. `plombier`, `restaurant`, `avocat`              |
| 📍 **Location**                                 | City, postcode, department or region, e.g. `Lyon`, `75011`, `Bretagne` |
| 📋 **Start URLs**                               | PagesJaunes search URLs (used instead of keyword/location)             |
| 🔢 **Max Items**                                | Maximum businesses per run (0 = all)                                   |
| 📝 **Include description, services and photos** | One extra small request per business                                   |

```json
{
    "keyword": "plombier",
    "location": "Lyon",
    "maxItems": 200,
    "extractDetails": false
}
```

### 📦 Output

```json
{
    "id": "53841610",
    "name": "ADF Assistance Dépannage France",
    "category": "Plombier",
    "phone": "04 72 70 24 29",
    "phoneOptOut": false,
    "email": "actionassistance69@gmail.com",
    "website": "http://WWW.ASSISTANCEDEPANNAGEFRANCE.FR",
    "street": "19 Rue du Presbytère",
    "postalCode": "69008",
    "city": "Lyon",
    "lat": 45.735782641,
    "lon": 4.851036105,
    "rating": 5,
    "reviewsCount": 6,
    "openingHours": "Ouvert 24h/24",
    "openingStatus": "open_24h",
    "image": "https://www.pagesjaunes.fr/media/newdam/preset-export-medium/...jpg",
    "url": "https://www.pagesjaunes.fr/pros/53841610",
    "searchKeyword": "plombier",
    "searchLocation": "Lyon",
    "scrapedAt": "2026-11-15T18:00:00.000Z"
}
```

With **Include description, services and photos** the record also has `description`, `services` and `images`.

A run summary (businesses saved, searches, API requests) is stored as `RUN_SUMMARY` in the key-value store.

### 📋 Dataset Views

| View              | What It Shows                                             |
| ----------------- | --------------------------------------------------------- |
| 📊 **Overview**   | Name, category, city, phone, e-mail, rating, reviews, URL |
| 📇 **Contact**    | Name, phone, Bloctel flag, e-mail, website, full address  |
| 📋 **All fields** | Every field                                               |

### ❓ FAQ

**🤔 Where does the data come from?**
From the PagesJaunes business listings, read through the JSON search service of Mappy, the map site that shares the PagesJaunes database. Every record links back to its PagesJaunes page (`url`, `id`).

**🤔 Do I need a proxy?**
No. Leave Apify Proxy off. Turn it on only if your runs ever get rate-limited.

**🤔 Does it return SIRET, SIREN or NAF codes?**
No. Those are not part of this data source. You can match businesses to the French company register (SIRENE) by name and postcode.

**🤔 How many businesses can I get for one search?**
All of them for the area: large cities are split into tiles until every tile is fully read. Use **Max Items** to cap the run.

**🤔 What does `phoneOptOut` mean?**
`true` means the number is registered on the French opt-out list for direct marketing (Bloctel). Do not use those numbers for cold calling.

### ⚖️ Legal Disclaimer

This scraper collects publicly listed business information. Make sure your use complies with GDPR, French direct-marketing rules (Bloctel) and the terms of the sites involved. The author is not affiliated with or endorsed by Solocal, PagesJaunes or Mappy.

# Actor input Schema

## `startUrls` (type: `array`):

PagesJaunes search URLs, e.g. https://www.pagesjaunes.fr/annuaire/chercherlespros?quoiqui=plombier\&ou=Lyon. The keyword (quoiqui) and location (ou) are read from each URL. Single business pages (/pros/...) are not supported.

## `keyword` (type: `string`):

Business category or keyword to search for (e.g., 'restaurant', 'plombier', 'avocat', 'coiffeur'). Used only if startUrls is not provided.

## `location` (type: `string`):

City, postcode, department or region in France (e.g. 'Lyon', '75011', 'Bretagne'). Large areas are split into tiles automatically, so a whole city returns all matching businesses, not just the first page.

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

Maximum number of businesses to scrape (0 = unlimited).

## `extractDetails` (type: `boolean`):

Adds the business description, listed services and photo gallery from its PagesJaunes card (one extra small request per business). Phone, e-mail, website, address, opening hours and rating are always included.

## `maxConcurrency` (type: `integer`):

Parallel requests when fetching descriptions (1-20).

## `proxyConfiguration` (type: `object`):

Not needed: the data comes from a JSON API without anti-bot protection. Leave Apify Proxy off; turn it on only if your runs get rate-limited.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.pagesjaunes.fr/annuaire/chercherlespros?quoiqui=restaurant&ou=Paris"
    }
  ],
  "keyword": "restaurant",
  "location": "Paris",
  "maxItems": 100,
  "extractDetails": false,
  "maxConcurrency": 5,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

No description

## `contact` (type: `string`):

No description

## `detailed` (type: `string`):

No description

## `runSummary` (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 = {
    "startUrls": [
        {
            "url": "https://www.pagesjaunes.fr/annuaire/chercherlespros?quoiqui=restaurant&ou=Paris"
        }
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("trev0n/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 = {
    "startUrls": [{ "url": "https://www.pagesjaunes.fr/annuaire/chercherlespros?quoiqui=restaurant&ou=Paris" }],
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("trev0n/pagesjaunes-scraper").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 '{
  "startUrls": [
    {
      "url": "https://www.pagesjaunes.fr/annuaire/chercherlespros?quoiqui=restaurant&ou=Paris"
    }
  ],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call trev0n/pagesjaunes-scraper --silent --output-dataset

```

## MCP server setup

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

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/5RP9DLzEKHmq5bhmr/builds/h5VfprAJAHcJ8s3tc/openapi.json
