# Pagesjaunes.ca Business Info Scraper

Scrape business name, location, telephone, website, etc from pagesjaunes.ca by keywords.

- Template page: [https://www.octoparse.com/template/pagesjaunes-ca-info-scraper](https://www.octoparse.com/template/pagesjaunes-ca-info-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 general web pages.

## Output

The current workflow extracts 7 fields, including `Avis_des_magasins`, `Location`, `Nom_du_magasin`, `Telephone`, `Type_domaine`, `URL_Détaille`, `Website`.

## 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 Keyword (up to 500 per run) and start the template in local or cloud mode.
- **Flexible export:** review and export results as CSV, Excel, or JSON.

## Input

### Keyword (up to 500 per run)

Required. Please use the ; to separate the keywords and locations Constraints: minItems=1; maxItems=500; items.minLength=1; items.maxLength=10000.

## How to Use

# Pagesjaunes.ca Business Info Scraper

Collects business name, location, telephone, website, and related listing fields from Pagesjaunes.ca by keyword search. Source: [PagesJaunes](https://www.pagesjaunes.ca/), a business discovery and contact-listing service.

## Output fields

- `Nom_du_magasin`
- `Location`
- `Avis_des_magasins`
- `Type_domaine`
- `Telephone`
- `Website`
- `URL_Détaille`

These fields come from search-result listing pages. They can be empty when PagesJaunes does not provide them. This template does not add data beyond what the source displays.

## Input

- **Keyword (up to 500 per run)** (required): one or more values, one per line.

## How to use

1. Open the template and select **Try it** or **Start**.
2. Enter the keyword values.
3. Choose a local or cloud run.
4. Review the output rows, then export or process the structured data.

## Scheduling and export

- Schedule recurring runs locally or in the cloud, and export to CSV, Excel, JSON, databases, or cloud storage.
- Send collected data to reporting or AI workflows through Octoparse OpenAPI or the [AgentTools API](https://www.octoparse.com/docs/en/api-reference/agenttools-api/search-templates).
- For local scheduled runs, keep your computer and Octoparse open.
- Scheduling and API access may require a paid Octoparse plan.

## Pricing

This template currently has no per-line charge. Octoparse plan or resource limits may still apply.

## Tips

- Start with one or a few keywords and review the returned rows before scaling.
- Use the most specific valid Keyword (up to 500 per run) to reduce unrelated or duplicate records.
- Where available, use a stable URL or identifier from the output fields as the deduplication key.

## Notes

This is a demo model with limited access, adapted to Canada (French-speaking area). Please contact lea@octoparse.com to get full access to the model. If you would like a custom model, feel free to contact us.

## 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 Détails Scraper](https://www.octoparse.com/template/pagesjaunes-ca-detail-scraper)
- [Pagesjaunes Business Info Scraper](https://www.octoparse.com/template/pagesjaunes-business-info-scraper)
- [Yellow Pages Canada Scraper (Business Listing)](https://www.octoparse.com/template/yellow-pages-canada-scraper-product-listing)
- [Yellow Pages Canada Scraper (Business Details)](https://www.octoparse.com/template/yellow-pages-canada-scraper-business-details)
- [Societe.com Info Scraper](https://www.octoparse.com/template/societe-scraper)

## Input Schema

```json
{
  "title": "Pagesjaunes.ca Business Info Scraper input",
  "description": "Input parameters configured for the current published template version.",
  "type": "object",
  "schemaVersion": 1,
  "additionalProperties": false,
  "properties": {
    "keyword": {
      "title": "Keyword (up to 500 per run)",
      "description": "Please use the ; to separate the keywords and locations",
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 10000
      },
      "minItems": 1,
      "maxItems": 500,
      "x-octoparse": {
        "apiEnabled": true
      }
    }
  },
  "required": [
    "keyword"
  ]
}
```

## Input JSON Example

Example 1

```json
{
  "keyword": [
    "Restaurant;Montréal QC"
  ]
}
```

Example 2

```json
{
  "keyword": [
    "telephone systems;Toronto ON",
    "telephone systems;Montreal QC",
    "telephone systems;Vancouver BC",
    "telephone systems;Calgary AB",
    "telephone systems;Ottawa ON"
  ]
}
```

Example 3

```json
{
  "keyword": [
    "telephone systems;Toronto ON",
    "telephone systems;Montreal QC",
    "telephone systems;Vancouver BC",
    "telephone systems;Calgary AB",
    "telephone systems;Ottawa ON"
  ]
}
```


## Output Schema

```json
{
  "schemaVersion": 1,
  "type": "object",
  "properties": {
    "Avis_des_magasins": {
      "type": "string",
      "description": ""
    },
    "Location": {
      "type": "string",
      "description": ""
    },
    "Nom_du_magasin": {
      "type": "string",
      "description": ""
    },
    "Telephone": {
      "type": "string",
      "description": ""
    },
    "Type_domaine": {
      "type": "string",
      "description": ""
    },
    "URL_Détaille": {
      "type": "string",
      "description": ""
    },
    "Website": {
      "type": "string",
      "description": ""
    }
  },
  "title": "Pagesjaunes.ca Business Info 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
{
  "Avis_des_magasins": "\nPour vos événements, Edward Smoked Meat vous propose plusieurs formules adaptées à vos besoins!",
  "Location": "12001 Rue Notre Dame E, Montréal QC H1B 2Y8",
  "Nom_du_magasin": "Edward Smoked Meat",
  "Telephone": "438-558-5173",
  "Type_domaine": "Restaurants",
  "URL_Détaille": "https://www.pagesjaunes.ca/bus/Quebec/Montreal/Edward-Smoked-Meat/105268645.html?what=Restaurant&where=Montreal+QC&useContext=true&assetId=CAMS_0917b4ed-58d8-4982-b983-8bd70d0c4319",
  "Website": "https://www.pagesjaunes.ca/gourl/963ac972ba94ed6529d7ae17be43b7c2be4ab9b9?redirect=https%3A%2F%2Fwww.edwardsmokedmeat.com%2F"
}
```

Example 2

```json
{
  "Avis_des_magasins": "\nBravo Telecom est un fournisseur indépendant d'Internet, de télévision et de téléphonie résidentielle, basé à Saint-Léonard, à Montréal. Nous servons l'île de Montréal, Laval et la...\nplus...\nPlus de texte\n",
  "Location": "6001 rue Jean-Talon E, Montréal QC H1S 1M5",
  "Nom_du_magasin": "Bravo Telecom",
  "Telephone": "514-227-4647",
  "Type_domaine": "Fournisseurs de produits et de services Internet, Fournisseurs de solutions de commerce électronique",
  "URL_Détaille": "https://www.pagesjaunes.ca/bus/Quebec/Montreal/Bravo-Telecom/100533472.html?what=VoIP+services&where=Montreal+QC&useContext=true",
  "Website": "https://www.pagesjaunes.ca/gourl/5a6577be59e115ec6fc8ac7caa5fdcc0ef89bdbb?redirect=https%3A%2F%2Fwww.bravotelecom.com%3Futm_source%3Dpagesjaunes%26utm_medium%3Dannuaire%26utm_campaign%3Dfiche_pj"
}
```

Example 3

```json
{
  "Avis_des_magasins": "",
  "Location": "1565 Carling Ave, Ottawa ON",
  "Nom_du_magasin": "Standard Life",
  "Telephone": "613-234-6226",
  "Type_domaine": "Assurance",
  "URL_Détaille": "https://www.pagesjaunes.ca/bus/Ontario/Ottawa/Standard-Life/6880167.html?what=standard+t%C3%A9l%C3%A9phonique&where=Ottawa+ON&useContext=true",
  "Website": "https://www.pagesjaunes.ca/gourl/9a552d4df1bdafe4e78cd65022dba94799cc32ba?redirect=http%3A%2F%2Fstandardlife.ca%2F"
}
```

## 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-info-scraper",
  "taskName": "Pagesjaunes.ca Business Info Scraper",
  "parameters": "{\"keyword\":[\"Restaurant;Montréal QC\"]}"
}
```

## Python Example

```python
import json
import requests

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

parameters = json.loads("{\"keyword\":[\"Restaurant;Montréal QC\"]}")

response = requests.post(
    f"{OPENAPI_BASE}/api/agentTools/executeTask",
    headers={
        "Authorization": f"Bearer {ACCESS_TOKEN}",
        "Content-Type": "application/json",
    },
    json={
        "templateName": "pagesjaunes-ca-info-scraper",
        "taskName": "Pagesjaunes.ca Business Info 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-info-scraper",
  "taskName": "Pagesjaunes.ca Business Info Scraper",
  "parameters": "{\"keyword\":[\"Restaurant;Montréal QC\"]}"
}
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-info-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-info-scraper.json)
- [Manifest](https://www.octoparse.com/templates/pagesjaunes-ca-info-scraper-manifest.json)
