# YellowPages.ca Scraper 🍁 (`easyapi/yellowpages-ca-scraper`) Actor

Scrape business listings from YellowPages.ca including business names, addresses, phone numbers, categories, operating hours and more. Perfect for lead generation and market research.

- **URL**: https://apify.com/easyapi/yellowpages-ca-scraper.md
- **Developed by:** [EasyApi](https://apify.com/easyapi) (community)
- **Categories:** Lead generation, Integrations, Other
- **Features:** Limited permissions
- **Stats:** 48 total users, 2 monthly users, 98.4% runs succeeded, 4 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.99 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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 Scraper 🍁

Extract detailed business information from YellowPages.ca - Canada's leading business directory.

### Features ✨

- Scrapes comprehensive business details including:
  - Business name and contact information 📞
  - Complete address details 📍
  - Business categories 🏷️
  - Operating hours ⏰
  - Website links 🌐
  - Business status (open/closed) 🟢
  - Business images 🖼️

- Advanced capabilities:
  - Handles pagination automatically 📄
  - Random delays to avoid blocking ⚡
  - Proxy support for reliable scraping 🔒
  - Configurable maximum items limit 🎯

### Use Cases 💡

- Lead generation for sales and marketing
- Market research and competitor analysis
- Business directory creation
- Local SEO and data enrichment
- Franchise opportunity research
- Service provider discovery

### Input Parameters 📝

The actor accepts the following input parameters:

- `searchUrls`: Array of YellowPages.ca search URLs to scrape
- `maxItems`: Maximum number of items to scrape (optional)
- `proxyConfiguration`: Proxy settings (optional)

### Limitations ⚠️

- Respect YellowPages.ca's terms of service and robots.txt
- Use appropriate delays between requests
- Consider using proxies for large-scale scraping

### Support 🤝

If you have any questions or need help, feel free to reach out through Apify's platform.

#### Input Example

A full explanation of an input example in JSON.

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

#### Output sample

The results will be wrapped into a dataset which you can always find in the **Storage** tab. Here's an excerpt from the data you'd get if you apply the input parameters above:

And here is the same data but in JSON. You can choose in which format to download your data: JSON, JSONL, Excel spreadsheet, HTML table, CSV, or XML.

```json
[
    {
        "searchUrl": "https://www.yellowpages.ca/search/si/1/pizza/Toronto+ON",
        "name": "Oakwood Pizzeria",
        "link": "https://www.yellowpages.ca/bus/Ontario/York/Oakwood-Pizzeria/1156684.html?what=pizza&where=Toronto+ON&useContext=true",
        "address": {
            "street": "434 Oakwood Ave",
            "city": "York",
            "province": "ON",
            "postalCode": "M6E 2W5"
        },
        "phone": "647-558-3266",
        "categories": [
            "Pizza & Pizzerias"
        ],
        "website": "https://www.yellowpages.ca/gourl/ba7cc190746e6f66f2a536a0c9dd5d0575e1fe0e?redirect=http%3A%2F%2Fwww.oakwoodpizzeria.com%2F",
        "status": "Opening at 10:30 am",
        "image": "https://cdn.ci.yp.ca/t/1529/51/15295133aa_t.gif"
    },
    ...
]
```

#### Related Actors

- 📧 [All-in-One Social Media Email Scraper](https://apify.com/easyapi/all-in-one-social-media-email-scraper) - Discover emails across 30+ social platforms for lead generation and business outreach
- 📱 [All-in-One Social Media Phone Number Scraper](https://apify.com/easyapi/all-in-one-social-media-phone-number-scraper) - Extract phone numbers from 30+ social platforms for business networking
- 🔍 [Google Maps Scraper](https://apify.com/easyapi/google-maps-scraper) - Collect local business data from Google Maps with detailed location information
- 🏢 [BBB Business Directory Scraper](https://apify.com/easyapi/bbb-business-directory-scraper) - Extract business listings from Better Business Bureau including ratings and contact info
- 📧 [Discover & Verify Professional Emails](https://apify.com/easyapi/discover-verify-professional-emails) - Find and validate professional email addresses for business outreach
- 🔍 [Email & Contact Extractor From Any Web](https://apify.com/easyapi/email-contact-extractor-from-any-web) - Extract emails and contact information from any website
- 🏥 [Practo Doctor Scraper](https://apify.com/easyapi/practo-doctor-scraper) - Scrape detailed doctor information and practice details
- 👨‍⚕️ [WebMD Doctor Scraper](https://apify.com/easyapi/webmd-doctor-scraper) - Extract comprehensive doctor profiles and contact information
- 🔍 [Keyword Discovery Tool](https://apify.com/easyapi/keyword-discovery-tool) - Discover new keyword ideas and search insights for local SEO
- 🌍 [Google RealTime Trends Data Scraper](https://apify.com/easyapi/google-realtime-trends-data-scraper) - Monitor trending search keywords across 40+ countries
- 🔍 [Google News Scraper](https://apify.com/easyapi/google-news-scraper) - Collect local news and business updates
- 🏠 [Realtor.com Scraper](https://apify.com/easyapi/realtor-com-scraper) - Extract detailed property and real estate business information
- 🏠 [Trulia Property Scraper](https://apify.com/easyapi/trulia-property-scraper) - Scrape real estate listings with agent and business details
- 🛍️ [TradeIndia Product Scraper](https://apify.com/easyapi/tradeindia-product-scraper) - Extract B2B product listings and company information
- 🔍 [URL Metadata Crawler](https://apify.com/easyapi/url-metadata-crawler) - Extract comprehensive metadata from business websites

# Actor input Schema

## `searchUrls` (type: `array`):

List of YellowPages.ca search URLs to scrape

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

Maximum number of items to scrape (default: 100)

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

Proxy settings for the scraper

## Actor input object example

```json
{
  "searchUrls": [
    "https://www.yellowpages.ca/search/si/1/restaurants/Toronto+ON"
  ],
  "maxItems": 40,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("easyapi/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 = {}

# Run the Actor and wait for it to finish
run = client.actor("easyapi/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 '{}' |
apify call easyapi/yellowpages-ca-scraper --silent --output-dataset

```

## MCP server setup

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