# 🇨🇦 YellowPages CA Scraper | Business Leads (`misterkhan/yellowpages-ca-scraper`) Actor

Extract structured canada business directory data from YellowPages Canada Leads (yellowpages.ca) — Canadian business names, phone numbers, addresses, postal codes, websites & categories.

- **URL**: https://apify.com/misterkhan/yellowpages-ca-scraper.md
- **Developed by:** [Khan](https://apify.com/misterkhan) (community)
- **Categories:** Lead generation, AI, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.65 / 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

### What does YellowPages CA Scraper do?

YellowPages CA Scraper is a high-performance scraping tool that allows you to **extract structured data from YellowPages CA** (yellowpages.ca). It extracts comprehensive listing attributes including title (`title`), platform identifier (`platformName`), price (`price`), rating (`rating`), review count (`reviewCount`), telephone (`telephone`), location (`address`), and direct permalink (`url`).

Whether you are monitoring competitive pricing, tracking secondary market inventory, analyzing category trends, or building automated workflow integrations, this Actor provides structured, real-time intelligence at scale with zero proxy setup.

> 🛡️ **Zero Proxy Configuration Required:** Anti-blocking and regional proxy routing are **handled automatically out of the box** — just paste your target search URLs and click **Start**.

### What data can you extract with YellowPages CA Scraper?

**🏷️ Core Details** — headline `title`, host platform `platformName` (YellowPages CA), and direct canonical `url` <br>
**💵 Pricing & Financials** — parsed numerical or formatted `price` <br>
**⭐ Reviews & Reputation** — average star `rating` and verified `reviewCount` <br>
**📍 Location & Contact** — provider or listing `address` and direct contact `telephone` <br>

### Why scrape business leads from YellowPages CA?

💪 Comprehensive competitive intelligence and pricing monitoring across yellowpages.ca <br>
🕵️ Granular inventory tracking and new listing discovery in real time <br>
✨ Feeding automated valuation models, analytics dashboards, and custom machine learning pipelines <br>
👍 Eliminating manual copy-paste research with structured JSON and CSV exports <br>
📩 Seamless lead generation, marketplace arbitrage, and CRM enrichment workflows <br>

### How do I use YellowPages CA Scraper?

YellowPages CA Scraper is designed to be simple to run for both developers and non-technical users in Apify Console:

1. [Create](https://console.apify.com/sign-up) a free Apify account using your email.
2. Open [YellowPages CA Scraper](https://apify.com/misterkhan/yellowpages-ca-scraper).
3. Paste one or more direct filtered search URLs in `startUrls`.
4. Set `maxItems` to specify how many business leads you wish to collect.
5. Click **Start** and watch structured records stream into your dataset in real time.
6. Export your data from the **Dataset** tab in JSON, CSV, Excel, XML, or HTML table format.

### Input

YellowPages CA Scraper accepts direct yellowpages.ca search result URLs. Click on the [Input tab](https://apify.com/misterkhan/yellowpages-ca-scraper/input-schema) for the full interactive schema.

```json
{
  "startUrls": [
    {
      "url": "https://www.yellowpages.ca"
    }
  ],
  "maxItems": 40
}
```

**🔗 `startUrls`** — one or more direct yellowpages.ca search result URLs or category listing URLs with custom browser filters applied <br>
**🔢 `maxItems`** — maximum number of business leads to collect per run (defaults to 20; Free plan runs are capped at 40 items per run, while paid plans support unlimited extraction) <br>

### Output sample

Results are streamed into your default Apify Dataset as they are extracted. Below is an excerpt of a real record extracted from yellowpages.ca:

```json
[
  {
    "title": "Sample YellowPages CA Item",
    "platformName": "YellowPages CA",
    "price": "149.00",
    "rating": 4.8,
    "reviewCount": 128,
    "telephone": "+1 555-0199",
    "address": "San Francisco, CA",
    "url": "https://www.yellowpages.ca/item/12345678"
  }
]
```

### How much does it cost to scrape YellowPages CA?

YellowPages CA Scraper uses transparent **Pay-Per-Event (PPE)** pricing with **no Actor start fee**. You only pay for records successfully delivered to your dataset, with automatic Apify Store volume discounts on higher subscription plans:

**🆓 Free Plan ($5/mo free credit)** — `$5.00 / 1,000 listings` ($0.0050 per listing · up to 1,000 listings free every month) <br>
**🥉 Starter / Bronze Plan** — `$1.35 / 1,000 listings` ($0.00135 per listing · 73% discount) <br>
**🥈 Scale / Silver Plan** — `$0.95 / 1,000 listings` ($0.00095 per listing · 81% discount) <br>
**🥇 Business / Gold+ Plan** — `$0.65 / 1,000 listings` ($0.00065 per listing · 85% discount) <br>

> 💡 **Predictable, All-Inclusive Pay-Per-Event Pricing:** There is a **`$0.00` run start fee** and **no separate proxy configuration required**. You only pay the flat per-result rate above for data successfully delivered to your dataset — works out of the box on both **Free** and **Paid** Apify plans.

### How many listings can you scrape with YellowPages CA Scraper?

YellowPages CA Scraper can return hundreds or thousands of business leads across yellowpages.ca. Keep the following factors in mind when planning your scrape:

- yellowpages.ca segments search results across multi-page pagination; entering specific category or query URLs in `startUrls` ensures comprehensive localized coverage
- Passing multiple filtered category URLs inside `startUrls` allows you to extract inventory across diverse segments in a single automated run
- Free plan runs are capped at 40 records per run to prevent unintended credit consumption, while paid Apify plans support unlimited scraping

### Want to scrape other Canadian Business & Service Directories?

Combine YellowPages CA Scraper with our companion high-performance scrapers:

⌚ **[Chrono24 Luxury Watch Scraper](https://apify.com/misterkhan/chrono24-listings-scraper)** — extract luxury watch listings, dial specifications, and seller prices (From $0.90 / 1K) <br>
🛍️ **[Shopify Universal Store Scraper](https://apify.com/misterkhan/shopify-products-scraper)** — scrape products, inventory levels, and variants from any Shopify storefront (From $0.75 / 1K) <br>
🌐 **[Website Tech Stack Scanner](https://apify.com/misterkhan/website-tech-stack-scanner)** — audit full CMS, e-commerce, and analytics technology stacks (From $0.50 / 1K) <br>
💼 **[Indeed Jobs Scraper](https://apify.com/misterkhan/indeed-scraper)** — extract job postings, salaries, locations, and employer details (From $0.75 / 1K) <br>
📍 **[Google Maps Places Scraper](https://apify.com/misterkhan/google-maps-scraper)** — scrape local business leads, addresses, ratings, and phone numbers (From $0.75 / 1K) <br>

### Integrations and YellowPages CA Scraper

YellowPages CA Scraper connects seamlessly with your cloud databases, CRMs, and automation workflows through [Apify integrations](https://apify.com/integrations):

- **Automation platforms** — trigger daily data extraction and dispatch instant notifications via Make, Zapier, n8n, or Airbyte
- **Spreadsheets & BI** — sync live records directly into Google Sheets, Airtable, BigQuery, or Snowflake
- **Webhooks** — fire automated webhook payloads to Slack, Discord, or your internal API whenever a run completes

### Using YellowPages CA Scraper with the Apify API

The Apify API provides programmatic control over Actor runs, schedules, and dataset exports. Use the official `apify-client` libraries for Node.js and Python to launch runs and retrieve records:

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({
    token: 'YOUR_APIFY_TOKEN',
});

const run = await client.actor('misterkhan/yellowpages-ca-scraper').call({
    startUrls: [{ url: 'https://www.yellowpages.ca' }],
    maxItems: 40,
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(`Extracted ${items.length} YellowPages CA records:`, items);
```

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")

run = client.actor("misterkhan/yellowpages-ca-scraper").call(
    run_input={
        "startUrls": [{"url": "https://www.yellowpages.ca"}],
        "maxItems": 40,
    }
)

dataset_items = client.dataset(run["defaultDatasetId"]).list_items().items
print(f"Extracted {len(dataset_items)} YellowPages CA records: {dataset_items[:2]}")
```

For comprehensive documentation, visit the [Apify API reference](https://docs.apify.com/api/v2) or the [API tab](https://apify.com/misterkhan/yellowpages-ca-scraper/api).

### Using YellowPages CA Scraper with AI Agents and Apify MCP

This Actor is optimized as an on-demand data extraction tool for AI developer assistants, Claude Desktop, Cursor, and autonomous agent workflows connected via the official Apify MCP Server (`https://mcp.apify.com`).

**Example prompts for Claude Desktop and Cursor:** <br>
• Extract the latest 20 items from yellowpages.ca with price and rating. <br>
• Search YellowPages CA for items matching specific keyword filters. <br>
• Monitor price fluctuations and export structured summary metrics. <br>

**Agent tool advantages:** <br>
• **Fast structured execution** — Direct API streaming responds in seconds to avoid agent tool-call timeouts. <br>
• **Context-protective JSON** — Clean, structured property records built for LLM prompt context windows. <br>
• **Pay-Per-Event pricing** — Only pay per extracted property result with zero platform start fees. <br>

### Frequently asked questions about YellowPages CA Scraper

**🛡️ Do I need to configure residential proxies? <br>**
**No — everything works out of the box with zero setup.** Regional routing, session management, and anti-blocking are handled automatically so you do not need to configure custom proxy settings.

**🔍 Can I scrape custom filtered searches? <br>**
Yes. Apply any desired filters on yellowpages.ca in your browser, copy the resulting search URL from your address bar, and paste it into `startUrls`.

**🗺️ How do I scrape thousands of items across multiple categories? <br>**
Pass multiple search URLs inside `startUrls`. The Actor processes each URL sequentially, streaming clean records directly into your shared dataset.

### Is it legal to scrape YellowPages CA data?

Our scrapers are ethical and **do not extract any private user data**. They only extract publicly displayed facts published on yellowpages.ca. However, you should always comply with applicable local laws and website terms when using extracted data.

If you are unsure about your specific use case, read Apify's guide on the [legality of web scraping](https://blog.apify.com/is-web-scraping-legal/) and [ethical web scraping](https://blog.apify.com/what-is-ethical-web-scraping-and-how-do-you-do-it/).

### Your feedback

We keep this Actor under active maintenance. If a run finishes successfully but returns fewer results than you expected, hangs, or errors — please **open an Issue before posting a public review** so we can diagnose and fix it for you.

**🛠️ How to report** — Use the Actor’s [Issues tab](https://apify.com/misterkhan/yellowpages-ca-scraper/issues/open) in Apify Console. Include the run ID, your input JSON, and what you expected vs. what you got. <br>
**⏱️ Response time** — We aim to reply within 24 hours on business days. <br>
**⭐ Reviews** — Happy with the results? A short positive review helps other users find a reliable scraper. Ran into a problem? Open an Issue first — we’ll work with you to resolve it before you leave a rating. <br>

# Actor input Schema

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

Paste one or more YellowPages Canada Leads (yellowpages.ca) search, category, or target URLs (e.g., `https://www.yellowpages.ca/search/si/1/Plumbers/Toronto+ON`).

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

Maximum number of items to collect (Free plan runs collect up to 40 results per run; paid plans support unlimited results).

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.yellowpages.ca/search/si/1/Plumbers/Toronto+ON"
    }
  ],
  "maxItems": 40
}
```

# Actor output Schema

## `results` (type: `string`):

All extracted records from YellowPages Canada Leads (yellowpages.ca).

## `usage_summary` (type: `string`):

Execution telemetry and extraction summary stored in the default key-value store.

# 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.yellowpages.ca/search/si/1/Plumbers/Toronto+ON"
        }
    ],
    "maxItems": 40
};

// Run the Actor and wait for it to finish
const run = await client.actor("misterkhan/yellowpages-ca-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.yellowpages.ca/search/si/1/Plumbers/Toronto+ON" }],
    "maxItems": 40,
}

# Run the Actor and wait for it to finish
run = client.actor("misterkhan/yellowpages-ca-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.yellowpages.ca/search/si/1/Plumbers/Toronto+ON"
    }
  ],
  "maxItems": 40
}' |
apify call misterkhan/yellowpages-ca-scraper --silent --output-dataset

```

## MCP server setup

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