# YellowPages Canada Scraper - Business Leads & Phones (`delicious_zebu/yellowpages-ca-business-data-scraper`) Actor

Scrape YellowPages.ca by keyword and city: business name, address, phone numbers, website, rating and star breakdown, opening hours, payment methods and social links. Sort by relevance, distance, rating, review count or name.

- **URL**: https://apify.com/delicious_zebu/yellowpages-ca-business-data-scraper.md
- **Developed by:** [Zebu Data](https://apify.com/delicious_zebu) (community)
- **Categories:** Lead generation, Developer tools, Automation
- **Security:** Limited permissions
- **Stats:** 75 total users, 2 monthly users, 100.0% runs succeeded, 29 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $2.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.
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?

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

## YellowPages.ca Data Scraper – Extract Comprehensive Canadian Business Data Effortlessly 🚀

Unlock detailed business information from [YellowPages.ca](https://www.yellowpages.ca) (`https://www.yellowpages.ca`) with our powerful Apify actor! Designed for maximum flexibility and efficiency, this actor lets you gather a wealth of data from the Canadian business directory using keyword searches and customizable parameters—all with just a few simple inputs.

***

### Key Features

- ​**Rich Data Extraction**​: Collect comprehensive fields such as business name, address, contact details, website, ratings, descriptions, treatments, opening hours, payment methods, social media links, and more.
- ​**Flexible Sorting Options**​: Choose from six different sorting methods to prioritize your search results:
  - **Relevance**
  - **Closest**
  - **Highest Rated**
  - **Most Reviewed**
  - **Alphabetical**
  - **Recently Reviewed**
- ​**Customizable Pagination**​: Set the maximum number of pages to crawl for each search parameter, ensuring efficient and controlled data collection.
- ​**User-Friendly Parameters**​: Easily specify search keyword, location, sort order, and page limits to tailor your data scraping needs.

### Input Parameters

- ​**Search Keyword**​: e.g., `Dentists`
- ​**Location**​: e.g., `Toronto ON`
- ​**Sorting Method**​: Select from:
  - Relevance
  - Closest
  - Highest Rated
  - Most Reviewed
  - Alphabetical
  - Recently Reviewed
- ​**Max Pages per Parameter**​: Customize the number of pages to crawl for each search parameter

Prefer to watch? This video (under 4 minutes) does a real run: furnace repair companies in Toronto, ON, from filling in the input form to exporting the results to Excel.

https://www.youtube.com/watch?v=HEQyUopB_fs

***

### Sample Data Output

```
{
    "name": "Concorde Gate Dental",
    "address": "1 Concorde Gate, North York, ON M3C 3N6",
    "phones": [
        "647-360-3931"
    ],
    "website": [
        "http://www.smilexperts.ca/",
        "http://smilexperts.ca/",
        "http://www.facebook.com/152306885164316"
    ],
    "total_ratings": "1 rating & 1 review",
    "average": "5/5",
    "rating_breakdown": {
        "excellent": "1",
        "very_good": "0",
        "average": "0",
        "poor": "0",
        "terrible": "0"
    },
    "description": "Concorde Gate Dental The purpose of our 'online location' is to introduce you to us and tell you about our practice, our philosophy and our staff. We believe that making your smile the best it can be will go a long way toward improving your quality of life. A beautiful smile builds confidence; healthy teeth and gums improve your overall health. It is our goal to be your partner in achieving both of these objectives! We are WHMIS, PIPEDA, and AODA compliant.Our exceptional, helpful, knowledgeable and friendly staff is our greatest asset. They are excited about what they are doing, have the highest standards of quality and integrity, and are motivated to achieve the best results for our family of patients. All of our dental assistants and hygienists are licensed professionals with many hours of training. We pride ourselves on staying on the cutting edge of dentistry and patient communication. Feedback from our patients about an experience in our office is always welcomed.",
    "more_details": {
        "Treatments": "Crowns,Bridges And Dentures,Dental Examinations,Dental Emergency,Cosmetic Dentistry,Dental Cleanings,\n\nTooth Whitening,\nLaser Dentistry,\nDental Photography,\nDental Implants And Restorations,",
        "Patients": "Family Dentistry,Dentistry For Seniors,Dentistry For Adults,Dentistry For Children",
        "Practice": "General Dentist,Community Dentistry,Oral Medicine,Dental Implant Restorations Of All Types,Endodontics,Oral Surgery,\n\nProsthodontics,\nPeriodontics,\nPediatric Dentistry,",
        "Products and Services": "Sports Guard,Snorning And Sleep Apnea Treatment,Veneers & Bonding,Root Canals,General Dentistry,Dental Hygiene Treatment,\n\nPeriodontal Cleaning & Treatment,\nPreventive Dentistry,\nDental Implant Crowns & Bridges,\nDental Implant Supported Dentures,\nNitrous Oxide Laughing Gas Sedation,\nAppliances For Dental Grinding,\nGum Disease Treatment,\nOrthodontics,\nOral Cancer Screening,\nSealants,\nWisdom Teeth Extractions,\nImplant Placement Surgery,\nInvisalign Orthodontics,\nLaser Dentistry,",
        "Brands Carried": "Biolase Laser,Biohorizon,Colgate,Crest,Invisalign,Itero Digital Scanner,\n\nNobel Biocare,\nOral B,\nOxyfresh,\nWaterlase,\nDanville,\nSomnomed Snoring And Sleep Apnea Appliances,",
        "Languages Spoken": "English"
    },
    "opening_hours": {
        "Monday": "8:30 am - 5:00 pm",
        "Tuesday": "8:30 am - 5:00 pm",
        "Wednesday": "7:30 am - 4:00 pm",
        "Thursday": "8:30 am - 5:00 pm",
        "Friday": "7:30 am - 4:00 pm"
    },
    "payment_methods": [
        "masterCard",
        "interac",
        "visa",
        "cash"
    ],
    "social_media": {
        "Facebook": "http://www.facebook.com/152306885164316"
    },
    "source_url": "https://www.yellowpages.ca/bus/Ontario/North-York/Concorde-Gate-Dental/5897071.html?what=dentists&where=Toronto+ON&useContext=true"
}
```

### Example Use Cases

- ​**Local Business Research**​: Quickly compile detailed business directories for targeted marketing campaigns.
- ​**Lead Generation**​: Extract contact and review data to boost your sales outreach.
- ​**Competitive Analysis**​: Gather and analyze competitor information to refine your strategic decisions.
- ​**Data Enrichment**​: Enhance your existing datasets with comprehensive business profiles from a trusted Canadian directory.

### 💬 Support and Feedback

If you need assistance or have suggestions, please reach out through Apify's support channels or leave feedback directly on the actor’s page.

### Tags

`YellowPages, YellowPagesCa, DataExtraction, BusinessData, WebScraping, LeadGeneration, LocalBusiness, CompetitiveAnalysis, SEO, Apify, CanadianBusiness`

# Actor input Schema

## `searchKeyword` (type: `array`):

Business category or keyword to search for (e.g., Dentists)

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

Location for the search (e.g., Toronto ON)

## `sortBy` (type: `string`):

Sort order for search results. Options: Relevance, Closest, Highest Rated, Most Reviewed, Alphabetical, Recently Reviewed

## `maxPages` (type: `integer`):

Maximum number of pages to crawl for each parameter

## Actor input object example

```json
{
  "searchKeyword": [
    "dentists"
  ],
  "location": "Toronto ON",
  "sortBy": "Relevance",
  "maxPages": 5
}
```

# Actor output Schema

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

Table view of Canadian business leads using the 'overview' view from dataset_schema.json.

## `rawResults` (type: `string`):

All business items from the default dataset without a specific view.

# 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 = {
    "searchKeyword": [
        "dentists"
    ],
    "location": "Toronto ON",
    "sortBy": "Relevance",
    "maxPages": 1
};

// Run the Actor and wait for it to finish
const run = await client.actor("delicious_zebu/yellowpages-ca-business-data-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 = {
    "searchKeyword": ["dentists"],
    "location": "Toronto ON",
    "sortBy": "Relevance",
    "maxPages": 1,
}

# Run the Actor and wait for it to finish
run = client.actor("delicious_zebu/yellowpages-ca-business-data-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 '{
  "searchKeyword": [
    "dentists"
  ],
  "location": "Toronto ON",
  "sortBy": "Relevance",
  "maxPages": 1
}' |
apify call delicious_zebu/yellowpages-ca-business-data-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,delicious_zebu/yellowpages-ca-business-data-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/XQUyEwr8jIWsOytg7/builds/ThguhnePsuiDbcaDJ/openapi.json
