# Pagesjaunes.ca Business Détails Scraper

récupérer les informations de business(nom_du_magasin,location,téléphone etc. ) de PagesJaunes.

- Template page: [https://www.octoparse.com/template/pagesjaunes-ca-detail-scraper](https://www.octoparse.com/template/pagesjaunes-ca-detail-scraper)
- Categories: Directories, Lead Generation
- Status: `PUBLISHED`
- Run mode: `BOTH`

## Pricing

Free.

## What is an Octoparse template?

An Octoparse template is a ready-to-use scraping workflow with predefined inputs and structured outputs. Use the exact parameter keys below; do not invent parameters.

## Overview

This ready-to-use template collects structured data from detail pages.

## Output

The current workflow extracts 12 fields, including `Language`, `commentaires`, `date`, `location`, `nom_du_client`, `nom_du_magasin`, `site_web`, `spécialité`, `star_rating`, `type_de_restaurant`, `téléphone`, `utile`.

## Use Cases

- Use structured results for research, comparison, and monitoring.
- Collect rows without building the extraction workflow from scratch.
- Combine results with other templates for downstream enrichment.
- Review a representative result before starting a large batch.

## Why Octoparse

- **No coding required:** complete URLs and start the template in local or cloud mode.
- **Flexible export:** review and export results as CSV, Excel, or JSON.

## Input

### URLs

Optional. url Constraints: minItems=1; maxItems=10000; items.minLength=1; items.maxLength=1000.

## How to Use

# Pagesjaunes.ca Business Détails Scraper

Collects business names, locations, phone numbers, and other public listing data from PagesJaunes.

Source: <https://www.yellowpages.ca/>

## Pricing

Currently no per-line charge. Octoparse plan or resource limits may still apply.

## Input

- **URLs** (optional): Enter one or more values, one per line.

## How to Use

1. Open the template and select **Try it** or **Start**.
2. Complete the input fields.
3. Choose a local or cloud run.
4. Review the output rows and export or process the structured data.

## Workflow Notes

- For list results, first run [Pagesjaunes.ca Business Info Scraper](https://www.octoparse.com/template/pagesjaunes-ca-info-scraper), then pass its `url` values into this template.
- Schedule recurring runs locally or in the cloud, and export to CSV, Excel, JSON, databases, cloud storage, reporting, or AI workflows via Octoparse APIs.
- Scheduling and API access, including the [AgentTools API](https://www.octoparse.com/docs/en/api-reference/agenttools-api/search-templates), may require a paid Octoparse plan.
- Keep your computer and Octoparse open for local scheduled runs.

## Limitations

- Collects only the fields listed in the Output section from detail pages; no data not displayed by PagesJaunes is added.
- Fields such as `date`, `commentaires`, and `utile` can be empty when the source record does not provide them.

## Tips

- Start with one or a few inputs and review the returned rows before scaling.
- Use the most specific valid URLs to reduce unrelated or duplicate records.
- Use a stable URL or source identifier as the deduplication key when available.

## Export

Export rows to CSV, Excel, JSON, databases, or cloud storage, or send to reporting or AI workflows through Octoparse OpenAPI or the AgentTools API.

## Notes

Il s'agit d'un modèle de démonstration à accès limité. Uniquement pour le Canada francophone。 Veuillez contacter lea@octoparse.com pour obtenir l'accès complet au modèle. Si vous souhaitez avoir un modèle personnalisé, n'hésitez pas à nous contacter.

## Limitations

Results depend on what the source site exposes at run time. Fields may be empty when a source page does not provide a value. The template enforces the input limits shown above.

## Tips

Use specific, valid inputs and review a representative result before starting a large batch. Remove duplicate inputs when repeated records are not needed.

## FAQ

### What do I need to enter?

Use the exact inputs and limits listed above.

### What data does this template return?

See Output Schema below; availability can vary by source record.

### How is usage billed?

See the Pricing section above for current pricing and billing details.

## Related Templates

- [Pagesjaunes.ca Business Info Scraper](https://www.octoparse.com/template/pagesjaunes-ca-info-scraper)
- [eBay Produits Détails Scraper](https://www.octoparse.com/template/ebay-produits-details-scraper)
- [Europages Détails Scraper](https://www.octoparse.com/template/europage-details-scraper)
- [Francetravail Détails Scraper](https://www.octoparse.com/template/francetravail-details-scraper)
- [Yellow Pages Canada Scraper (Business Listing)](https://www.octoparse.com/template/yellow-pages-canada-scraper-product-listing)

## Input Schema

```json
{
  "title": "Pagesjaunes.ca Business Détails Scraper input",
  "description": "Input parameters configured for the current published template version.",
  "type": "object",
  "schemaVersion": 1,
  "additionalProperties": false,
  "properties": {
    "uRLs": {
      "title": "URLs",
      "description": "url",
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 1000
      },
      "minItems": 1,
      "maxItems": 10000,
      "x-octoparse": {
        "apiEnabled": true
      }
    }
  },
  "required": []
}
```

## Input JSON Example

Example 1

```json
{
  "uRLs": [
    "https://www.pagesjaunes.ca/bus/Quebec/Lachine/Borenstein-Plumbing-Heating-Inc/8152771.html",
    "https://www.pagesjaunes.ca/bus/Quebec/Montreal/plomberie-rapide/102031628.html",
    "https://www.pagesjaunes.ca/bus/Quebec/Lasalle/Centre-De-Gynecologie-Et-Maternite/332846.html?what=cliniques&where=Montreal+QC&useContext=true"
  ]
}
```

Example 2

```json
{
  "uRLs": [
    "https://www.pagesjaunes.ca/bus/Quebec/Lachine/Borenstein-Plumbing-Heating-Inc/8152771.html",
    "https://www.pagesjaunes.ca/bus/Quebec/Montreal/plomberie-rapide/102031628.html",
    "https://www.pagesjaunes.ca/bus/Quebec/Lasalle/Centre-De-Gynecologie-Et-Maternite/332846.html?what=cliniques&where=Montreal+QC&useContext=true"
  ]
}
```

Example 3

```json
{
  "uRLs": [
    "https://www.pagesjaunes.ca/bus/Quebec/Lachine/Borenstein-Plumbing-Heating-Inc/8152771.html",
    "https://www.pagesjaunes.ca/bus/Quebec/Montreal/plomberie-rapide/102031628.html",
    "https://www.pagesjaunes.ca/bus/Quebec/Lasalle/Centre-De-Gynecologie-Et-Maternite/332846.html?what=cliniques&where=Montreal+QC&useContext=true"
  ]
}
```

Example 4

```json
{
  "uRLs": [
    "https://www.pagesjaunes.ca/bus/Quebec/Lachine/Borenstein-Plumbing-Heating-Inc/8152771.html",
    "https://www.pagesjaunes.ca/bus/Quebec/Montreal/plomberie-rapide/102031628.html",
    "https://www.pagesjaunes.ca/bus/Quebec/Lasalle/Centre-De-Gynecologie-Et-Maternite/332846.html?what=cliniques&where=Montreal+QC&useContext=true"
  ]
}
```


## Output Schema

```json
{
  "schemaVersion": 1,
  "type": "object",
  "properties": {
    "Language": {
      "type": "string",
      "description": ""
    },
    "commentaires": {
      "type": "string",
      "description": ""
    },
    "date": {
      "type": "string",
      "description": ""
    },
    "location": {
      "type": "string",
      "description": ""
    },
    "nom_du_client": {
      "type": "string",
      "description": ""
    },
    "nom_du_magasin": {
      "type": "string",
      "description": ""
    },
    "site_web": {
      "type": "string",
      "description": ""
    },
    "spécialité": {
      "type": "string",
      "description": ""
    },
    "star_rating": {
      "type": "string",
      "description": ""
    },
    "type_de_restaurant": {
      "type": "string",
      "description": ""
    },
    "téléphone": {
      "type": "string",
      "description": ""
    },
    "utile": {
      "type": "string",
      "description": ""
    }
  },
  "title": "Pagesjaunes.ca Business Détails Scraper output",
  "description": "Initial output fields derived from the current published implementation. Field descriptions are maintained by Data Center; production field names and types should be refreshed from recent successful runs.",
  "additionalProperties": false
}
```

## Output Example

Example 1

```json
{
  "Language": "\nFrançais,\nAnglais,\n",
  "commentaires": "Nous y retournons régulièrement chaque année pour y déjeuner.Nous sommes désolés qu'il n'y est pas de serveurs en ce moment.Nous vérifions chaque semaine.Avons hâte de suspanser notre panse.!!!",
  "date": "2 octobre 2021",
  "location": "8870 Rue Lajeunesse, Montréal QC H2M 1R6\nItinéraire »",
  "nom_du_client": "\nmmlb3251",
  "nom_du_magasin": "Auberge du Dragon Rouge",
  "site_web": "https://www.yellowpages.ca/gourl/070eed39106435c7c0a8dac43d63126cc407935e?redirect=https%3A%2F%2Fwww.oyez.ca%2F",
  "spécialité": "\nAnimation médiévale,\nGibier à poils et à plumes,\nRestauration,\n",
  "star_rating": "4.5",
  "type_de_restaurant": "\nRestaurant de type mediéval,\n",
  "téléphone": "438-805-6560",
  "utile": "0"
}
```

Example 2

```json
{
  "Language": "\nFrançais,\nAnglais,\n",
  "commentaires": "Nice place outside to get pizzas, but outside pizzas, food is disappointing. I tried bruschetta and lasagna and both of them were far from what you can appreciate in Italy. My friends with pizzas were more lucky.",
  "date": "28 mai 2017",
  "location": "1251 Avenue McGill College, Montréal QC H3B 2Y4",
  "nom_du_client": "\nusername929168",
  "nom_du_magasin": "Enoteca Monza Pizzeria Moderna",
  "site_web": "https://www.yellowpages.ca/gourl/86e2b0c601927853d05785d91e7b883954fdcded?redirect=https%3A%2F%2Frestaurantmonza.com%2Fsuccursales%2Frestaurant-montreal-centre-ville%2F",
  "spécialité": "",
  "star_rating": "2.5",
  "type_de_restaurant": "\nPizzeria,\n",
  "téléphone": "514-878-3400",
  "utile": "0"
}
```

Example 3

```json
{
  "Language": "\nFrançais,\n",
  "commentaires": "Oh my god. Just got back, can barely walk the food was delicous so I stuffed my face. Amazing dishes, great for a small group or yummy weekday meal for 2. Must try!",
  "date": "13 octobre 2010",
  "location": "5210 Boul Saint-Laurent, Montréal QC H2T 1S1\nItinéraire »",
  "nom_du_client": "\nMayaBee1",
  "nom_du_magasin": "Maison de Cari Golden",
  "site_web": "https://www.yellowpages.ca/gourl/002ebcc55dbd15d48ba34de99e1862a2358070b9?redirect=http%3A%2F%2Fwww.restaurantmaisondecarigolden.com%2F",
  "spécialité": "\nCurry,\nMets végétariens,\nTandoori,\n",
  "star_rating": "4.5",
  "type_de_restaurant": "\nIndien,\n",
  "téléphone": "514-270-2561",
  "utile": "0"
}
```

Example 4

```json
{
  "Language": "\nFrançais,\n",
  "commentaires": "Oh my god. Just got back, can barely walk the food was delicous so I stuffed my face. Amazing dishes, great for a small group or yummy weekday meal for 2. Must try!",
  "date": "13 octobre 2010",
  "location": "5210 Boul Saint-Laurent, Montréal QC H2T 1S1\nItinéraire »",
  "nom_du_client": "\nMayaBee1",
  "nom_du_magasin": "Maison de Cari Golden",
  "site_web": "https://www.yellowpages.ca/gourl/002ebcc55dbd15d48ba34de99e1862a2358070b9?redirect=http%3A%2F%2Fwww.restaurantmaisondecarigolden.com%2F",
  "spécialité": "\nCurry,\nTandoori,\nMets végétariens,\n",
  "star_rating": "4.5",
  "type_de_restaurant": "\nIndien,\n",
  "téléphone": "514-270-2561",
  "utile": "0"
}
```

## API

`POST https://openapi.octoparse.com/api/agentTools/executeTask`

This is the OpenAPI Agent Tools `executeTask` endpoint. Authenticate with a Bearer token.

Request body:

`templateName` is the template slug; `parameters` is a JSON object string whose keys match Input Schema; `taskName`, `idempotencyKey`, and `maxCollectedRows` are optional.

Obtain a token:

```http
POST https://openapi.octoparse.com/token
Content-Type: application/json

{
  "username": "YOUR_USERNAME",
  "password": "YOUR_PASSWORD",
  "grant_type": "password"
}
```

Use `data.access_token` as `Authorization: Bearer <token>`. After starting, poll `getTaskStatus` and export with `exportData`.

```json
{
  "templateName": "pagesjaunes-ca-detail-scraper",
  "taskName": "Pagesjaunes.ca Business Détails Scraper",
  "parameters": "{\"uRLs\":[\"https://www.pagesjaunes.ca/bus/Quebec/Lachine/Borenstein-Plumbing-Heating-Inc/8152771.html\",\"https://www.pagesjaunes.ca/bus/Quebec/Montreal/plomberie-rapide/102031628.html\",\"https://www.pagesjaunes.ca/bus/Quebec/Lasalle/Centre-De-Gynecologie-Et-Maternite/332846.html?what=cliniques&where=Montreal+QC&useContext=true\"]}"
}
```

## Python Example

```python
import json
import requests

OPENAPI_BASE = "https://openapi.octoparse.com"
ACCESS_TOKEN = "YOUR_ACCESS_TOKEN"

parameters = json.loads("{\"uRLs\":[\"https://www.pagesjaunes.ca/bus/Quebec/Lachine/Borenstein-Plumbing-Heating-Inc/8152771.html\",\"https://www.pagesjaunes.ca/bus/Quebec/Montreal/plomberie-rapide/102031628.html\",\"https://www.pagesjaunes.ca/bus/Quebec/Lasalle/Centre-De-Gynecologie-Et-Maternite/332846.html?what=cliniques&where=Montreal+QC&useContext=true\"]}")

response = requests.post(
    f"{OPENAPI_BASE}/api/agentTools/executeTask",
    headers={
        "Authorization": f"Bearer {ACCESS_TOKEN}",
        "Content-Type": "application/json",
    },
    json={
        "templateName": "pagesjaunes-ca-detail-scraper",
        "taskName": "Pagesjaunes.ca Business Détails Scraper",
        "parameters": json.dumps(parameters, ensure_ascii=False),
    },
    timeout=60,
)
print(response.status_code)
print(response.json())
```

## HTTP/cURL Example

```bash
curl -X POST "https://openapi.octoparse.com/api/agentTools/executeTask" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'JSON'
{
  "templateName": "pagesjaunes-ca-detail-scraper",
  "taskName": "Pagesjaunes.ca Business Détails Scraper",
  "parameters": "{\"uRLs\":[\"https://www.pagesjaunes.ca/bus/Quebec/Lachine/Borenstein-Plumbing-Heating-Inc/8152771.html\",\"https://www.pagesjaunes.ca/bus/Quebec/Montreal/plomberie-rapide/102031628.html\",\"https://www.pagesjaunes.ca/bus/Quebec/Lasalle/Centre-De-Gynecologie-Et-Maternite/332846.html?what=cliniques&where=Montreal+QC&useContext=true\"]}"
}
JSON
```

## MCP Setup

Connect an MCP-compatible AI client to `https://mcp.octoparse.com` using browser OAuth or an Octoparse API key. Find `pagesjaunes-ca-detail-scraper`, inspect its inputs, create a cloud task with the exact Input Schema keys, and export JSON results.

## Machine-readable Resources

- [Template contract](https://www.octoparse.com/templates/pagesjaunes-ca-detail-scraper.json)
- [Manifest](https://www.octoparse.com/templates/pagesjaunes-ca-detail-scraper-manifest.json)
