# Yellow Pages CA Scraper — Canadian Business Leads (`muhammadafzal/yellow-pages-ca-scraper`) Actor

Scrape Canadian business listings from YellowPages.ca. Extract names, phones, emails, addresses, websites, ratings, reviews, hours, social links, and coordinates. Search by keyword+location or paste direct URLs.

- **URL**: https://apify.com/muhammadafzal/yellow-pages-ca-scraper.md
- **Developed by:** [Muhammad Afzal](https://apify.com/muhammadafzal) (community)
- **Categories:** Lead generation, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 business listing scrapeds

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Yellow Pages CA Scraper — Canadian Business Leads

Scrape Canadian business listings from **YellowPages.ca** — the largest business directory in Canada. Extract business names, phone numbers, emails, addresses, websites, ratings, reviews, operating hours, social media links, and geo-coordinates. Search by keyword + location or paste direct URLs.

### Use Cases

- **B2B Lead Generation:** Build targeted prospect lists of Canadian SMBs by category and city for outbound sales
- **Local SEO Analysis:** Audit client listings against top-ranked competitors across Canadian markets
- **Market Research:** Map business density, compare ratings, and track competitor coverage across provinces
- **CRM Enrichment:** Enrich existing business databases with verified phone, website, address, and social handles
- **Recruiting:** Find trades and skilled-trade employers (plumbers, electricians, contractors) for sourcing
- **Directory Building:** Build structured local-business corpora for RAG, LLM training, or data products

### Features

- **Multi-input mode:** Search by keyword + location OR paste direct YellowPages.ca URLs
- **Detail page enrichment:** Optional visit to each business detail page for email, hours, social links, services, photos, coordinates
- **Customer reviews:** Optional review extraction (author, rating, text, date)
- **Anti-bot handling:** Residential CA proxies + session rotation + stealth browser args
- **Pagination:** Automatic pagination through search results (configurable max pages)
- **Sort options:** Default, distance, name, or rating
- **MCP-optimized:** Semantic field names, structured output, AI-agent-ready schema
- **Pay-per-event:** Only charged for results actually extracted

### Input Parameters

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `searchTerms` | string[] | `["plumber"]` | Keywords/categories to search (cross-joined with locations) |
| `locations` | string[] | `["Toronto, ON"]` | Canadian locations in "City, Province" format |
| `startUrls` | array | `[]` | Direct YellowPages.ca URLs (search, category, or detail pages) |
| `maxResults` | integer | `100` | Hard cap on total business records (0 = unlimited) |
| `maxPagesPerSearch` | integer | `10` | Max result pages to crawl per search term × location |
| `extractDetails` | boolean | `true` | Visit detail pages for richer fields (email, hours, social, etc.) |
| `includeReviews` | boolean | `false` | Extract customer reviews (requires extractDetails) |
| `maxReviewsPerBusiness` | integer | `30` | Max reviews per business (0 = all, ~500 cap) |
| `sortBy` | enum | `"default"` | Sort: default, distance, name, or rating |
| `proxyConfiguration` | object | CA residential | Proxy settings (CA residential required) |
| `maxConcurrency` | integer | `5` | Concurrent browser pages |

### Output Data

Each record contains:

| Field | Type | Description |
|-------|------|-------------|
| `businessName` | string | Business name |
| `phone` | string\|null | Phone number |
| `email` | string\|null | Email address (from detail page) |
| `website` | string\|null | Business website URL |
| `address` | object | {street, city, province, postalCode} |
| `addressFormatted` | string\|null | Full address as single string |
| `coordinates` | object\|null | {lat, lng} geo-coordinates |
| `categories` | string[] | Business categories |
| `primaryCategory` | string\|null | First category |
| `rating` | number\|null | Star rating (1-5) |
| `reviewCount` | number\|null | Total review count |
| `hours` | object\|null | Day-by-day operating hours |
| `socialLinks` | object | {facebook, instagram, linkedin, twitter, youtube} |
| `logo` | string\|null | Logo image URL |
| `photos` | string[] | Photo image URLs |
| `services` | string[] | Services offered |
| `paymentMethods` | string[] | Accepted payment methods |
| `yearsInBusiness` | number\|null | Years in operation |
| `claimed` | boolean\|null | Whether listing is owner-claimed |
| `profileUrl` | string | YellowPages.ca profile URL |
| `yellowPagesId` | string\|null | Internal YP listing ID |
| `searchTerm` | string\|null | Search keyword used |
| `searchLocation` | string\|null | Search location used |
| `sourceUrl` | string | Page URL where data was extracted |
| `scrapedAt` | string | ISO 8601 timestamp |
| `reviews` | array\|undefined | Customer reviews (if enabled) |

#### Sample Output

```json
{
  "businessName": "Joe's Plumbing Inc",
  "phone": "+1 416-555-0123",
  "email": "info@joesplumbing.ca",
  "website": "https://joesplumbing.ca",
  "address": {
    "street": "123 Main Street",
    "city": "Toronto",
    "province": "ON",
    "postalCode": "M1M 1M1"
  },
  "addressFormatted": "123 Main Street, Toronto, ON, M1M 1M1",
  "coordinates": { "lat": 43.6532, "lng": -79.3832 },
  "categories": ["Plumbing", "Contractor"],
  "primaryCategory": "Plumbing",
  "rating": 4.5,
  "reviewCount": 127,
  "hours": { "Monday": "8:00-17:00", "Tuesday": "8:00-17:00" },
  "socialLinks": {
    "facebook": "https://facebook.com/joesplumbing",
    "instagram": null,
    "linkedin": null,
    "twitter": null,
    "youtube": null
  },
  "logo": "https://...",
  "photos": ["https://..."],
  "services": ["Drain cleaning", "Pipe repair"],
  "paymentMethods": ["Visa", "Mastercard"],
  "yearsInBusiness": 15,
  "claimed": true,
  "profileUrl": "https://www.yellowpages.ca/bus/Ontario/Toronto/Joes-Plumbing/12345.html",
  "yellowPagesId": "12345",
  "searchTerm": "plumber",
  "searchLocation": "Toronto, ON",
  "sourceUrl": "https://www.yellowpages.ca/search/si/1/plumber/Toronto+ON",
  "scrapedAt": "2026-07-02T10:30:00.000Z"
}
````

### Pricing

This actor uses **pay-per-event pricing**:

| Event | Price | Description |
|-------|-------|-------------|
| Actor Start | $0.00005 | Charged once per run start |
| Business Scraped | $0.003 | Per business listing extracted |

#### Cost Examples

- Scrape 100 businesses → $0.30
- Scrape 1,000 businesses → $3.00
- Scrape 10,000 businesses → $30.00

### Code Examples

#### JavaScript

```javascript
const { ApifyClient } = require('apify-client');

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

const run = await client.actor('muhammadafzal/yellow-pages-ca-scraper').call({
  searchTerms: ['plumber'],
  locations: ['Toronto, ON', 'Montreal, QC'],
  maxResults: 200,
  extractDetails: true
});

const dataset = await client.dataset(run.defaultDatasetId).listItems();
console.log(dataset.items);
```

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_API_TOKEN")
run = client.actor("muhammadafzal/yellow-pages-ca-scraper").call(run_input={
    "search_terms": ["dentist"],
    "locations": ["Vancouver, BC"],
    "max_results": 500,
    "extract_details": True
})
dataset = client.dataset(run["defaultDatasetId"]).list_items()
for item in dataset:
    print(item["businessName"], item["phone"], item["email"])
```

### Technical Notes

- **Proxy:** Canadian residential proxies are **required** — YellowPages.ca uses CloudFront geo-blocking that blocks datacenter IPs and non-CA traffic
- **Crawler:** PlaywrightCrawler with stealth browser args and session rotation
- **Speed:** ~2-5 seconds per search page, ~3-8 seconds per detail page
- **Limits:** YellowPages.ca returns up to ~500 results per search term × location pair

### FAQ

**Q: Why am I getting 0 results?**
A: Ensure proxy is set to Canadian residential (CA). YellowPages.ca geo-blocks non-Canadian IPs. Check that your search terms and locations are valid Canadian locations.

**Q: Can I scrape all of Canada?**
A: Yes — leave `locations` empty (defaults to Toronto, ON). For comprehensive coverage, specify multiple cities: `["Toronto, ON", "Montreal, QC", "Vancouver, BC", "Calgary, AB", "Ottawa, ON"]`.

**Q: Why is email null for some businesses?**
A: Email is only available on the business detail page. Ensure `extractDetails` is `true`. Some businesses don't list emails publicly.

**Q: How do I get reviews?**
A: Enable both `extractDetails` and `includeReviews`. Reviews increase runtime significantly.

# Actor input Schema

## `searchTerms` (type: `array`):

Keywords or business categories to search for on YellowPages.ca (e.g. plumber, dentist, restaurant). Each term is cross-joined with every location — 2 terms x 3 locations = 6 searches. Use this when the user wants to find businesses by type or keyword. Do NOT use this field when the user provides specific YellowPages.ca URLs — use startUrls instead.

## `locations` (type: `array`):

Canadian locations in 'City, Province' or 'City, ST' format (e.g. 'Toronto, ON', 'Montreal, QC', 'Vancouver, BC'). Each location is cross-joined with every search term. Leave empty to search all of Canada.

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

Direct YellowPages.ca URLs to scrape. Accepts search results pages (yellowpages.ca/search/...), category pages (yellowpages.ca/ON/Toronto/Plumbers), or individual business detail pages (yellowpages.ca/bus/...). Use this when the user provides specific URLs to scrape. Do NOT use this when the user describes a keyword or business type — use searchTerms + locations instead.

## `maxResults` (type: `integer`):

Hard cap on total business records extracted across all searches and URLs. Set to 0 for unlimited (internal cap of 10,000 applies). The actor stops paginating once this number is reached.

## `maxPagesPerSearch` (type: `integer`):

Maximum number of result pages to crawl per (search term x location) pair or per start URL. YellowPages.ca typically shows up to 50 results per page. Set higher for more exhaustive crawls.

## `extractDetails` (type: `boolean`):

When enabled, follow each business's detail page on YellowPages.ca to extract additional fields (email, full hours, social links, services, payment methods, years in business, logo, photos, coordinates). Roughly 2x the runtime and proxy cost. Disable for faster runs with basic fields only.

## `includeReviews` (type: `boolean`):

Embed customer reviews for each business when 'Visit Detail Pages' is also enabled. Off by default — significantly increases runtime as each business needs additional review page fetches.

## `maxReviewsPerBusiness` (type: `integer`):

Maximum number of customer reviews to capture per business when 'Include Reviews' is enabled (most recent first). Set to 0 to capture every available review (internal hard cap of ~500 applies).

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

How YellowPages.ca sorts the search results before extraction. Applies to keyword + location searches only (ignored for direct URLs).

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

Apify proxy settings. Canadian residential proxies (RESIDENTIAL, country CA) are required — YellowPages.ca uses CloudFront geo-blocking and blocks datacenter IPs and non-CA residential ranges. Leave default unless you have custom proxy needs.

## `maxConcurrency` (type: `integer`):

Maximum number of concurrent browser pages. Lower this if you encounter rate-limiting or timeout errors. Increase for faster scraping on stable connections.

## Actor input object example

```json
{
  "searchTerms": [
    "plumber"
  ],
  "locations": [
    "Toronto, ON"
  ],
  "startUrls": [],
  "maxResults": 100,
  "maxPagesPerSearch": 10,
  "extractDetails": true,
  "includeReviews": false,
  "maxReviewsPerBusiness": 30,
  "sortBy": "default",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "CA"
  },
  "maxConcurrency": 5
}
```

# Actor output Schema

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

Link to the dataset containing all extracted Canadian business records.

# 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 = {
    "searchTerms": [
        "plumber"
    ],
    "locations": [
        "Toronto, ON"
    ],
    "startUrls": [],
    "maxResults": 100,
    "maxPagesPerSearch": 10,
    "extractDetails": true,
    "includeReviews": false,
    "maxReviewsPerBusiness": 30,
    "sortBy": "default",
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "CA"
    },
    "maxConcurrency": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("muhammadafzal/yellow-pages-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 = {
    "searchTerms": ["plumber"],
    "locations": ["Toronto, ON"],
    "startUrls": [],
    "maxResults": 100,
    "maxPagesPerSearch": 10,
    "extractDetails": True,
    "includeReviews": False,
    "maxReviewsPerBusiness": 30,
    "sortBy": "default",
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "CA",
    },
    "maxConcurrency": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("muhammadafzal/yellow-pages-ca-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searchTerms": [
    "plumber"
  ],
  "locations": [
    "Toronto, ON"
  ],
  "startUrls": [],
  "maxResults": 100,
  "maxPagesPerSearch": 10,
  "extractDetails": true,
  "includeReviews": false,
  "maxReviewsPerBusiness": 30,
  "sortBy": "default",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "CA"
  },
  "maxConcurrency": 5
}' |
apify call muhammadafzal/yellow-pages-ca-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=muhammadafzal/yellow-pages-ca-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Yellow Pages CA Scraper — Canadian Business Leads",
        "description": "Scrape Canadian business listings from YellowPages.ca. Extract names, phones, emails, addresses, websites, ratings, reviews, hours, social links, and coordinates. Search by keyword+location or paste direct URLs.",
        "version": "1.0",
        "x-build-id": "EnDQsZq2PoVGqmdnx"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/muhammadafzal~yellow-pages-ca-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-muhammadafzal-yellow-pages-ca-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/muhammadafzal~yellow-pages-ca-scraper/runs": {
            "post": {
                "operationId": "runs-sync-muhammadafzal-yellow-pages-ca-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/muhammadafzal~yellow-pages-ca-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-muhammadafzal-yellow-pages-ca-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "searchTerms": {
                        "title": "Search Terms",
                        "type": "array",
                        "description": "Keywords or business categories to search for on YellowPages.ca (e.g. plumber, dentist, restaurant). Each term is cross-joined with every location — 2 terms x 3 locations = 6 searches. Use this when the user wants to find businesses by type or keyword. Do NOT use this field when the user provides specific YellowPages.ca URLs — use startUrls instead.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "locations": {
                        "title": "Locations",
                        "type": "array",
                        "description": "Canadian locations in 'City, Province' or 'City, ST' format (e.g. 'Toronto, ON', 'Montreal, QC', 'Vancouver, BC'). Each location is cross-joined with every search term. Leave empty to search all of Canada.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "startUrls": {
                        "title": "Start URLs",
                        "type": "array",
                        "description": "Direct YellowPages.ca URLs to scrape. Accepts search results pages (yellowpages.ca/search/...), category pages (yellowpages.ca/ON/Toronto/Plumbers), or individual business detail pages (yellowpages.ca/bus/...). Use this when the user provides specific URLs to scrape. Do NOT use this when the user describes a keyword or business type — use searchTerms + locations instead.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "url": {
                                    "type": "string",
                                    "title": "URL",
                                    "description": "Full YellowPages.ca URL to scrape (required)"
                                }
                            },
                            "required": [
                                "url"
                            ]
                        }
                    },
                    "maxResults": {
                        "title": "Max Results",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Hard cap on total business records extracted across all searches and URLs. Set to 0 for unlimited (internal cap of 10,000 applies). The actor stops paginating once this number is reached.",
                        "default": 100
                    },
                    "maxPagesPerSearch": {
                        "title": "Max Pages per Search",
                        "minimum": 1,
                        "maximum": 100,
                        "type": "integer",
                        "description": "Maximum number of result pages to crawl per (search term x location) pair or per start URL. YellowPages.ca typically shows up to 50 results per page. Set higher for more exhaustive crawls.",
                        "default": 10
                    },
                    "extractDetails": {
                        "title": "Visit Detail Pages",
                        "type": "boolean",
                        "description": "When enabled, follow each business's detail page on YellowPages.ca to extract additional fields (email, full hours, social links, services, payment methods, years in business, logo, photos, coordinates). Roughly 2x the runtime and proxy cost. Disable for faster runs with basic fields only.",
                        "default": true
                    },
                    "includeReviews": {
                        "title": "Include Reviews",
                        "type": "boolean",
                        "description": "Embed customer reviews for each business when 'Visit Detail Pages' is also enabled. Off by default — significantly increases runtime as each business needs additional review page fetches.",
                        "default": false
                    },
                    "maxReviewsPerBusiness": {
                        "title": "Max Reviews per Business",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Maximum number of customer reviews to capture per business when 'Include Reviews' is enabled (most recent first). Set to 0 to capture every available review (internal hard cap of ~500 applies).",
                        "default": 30
                    },
                    "sortBy": {
                        "title": "Sort Listings By",
                        "enum": [
                            "default",
                            "distance",
                            "name",
                            "rating"
                        ],
                        "type": "string",
                        "description": "How YellowPages.ca sorts the search results before extraction. Applies to keyword + location searches only (ignored for direct URLs).",
                        "default": "default"
                    },
                    "proxyConfiguration": {
                        "title": "Proxy Configuration",
                        "type": "object",
                        "description": "Apify proxy settings. Canadian residential proxies (RESIDENTIAL, country CA) are required — YellowPages.ca uses CloudFront geo-blocking and blocks datacenter IPs and non-CA residential ranges. Leave default unless you have custom proxy needs.",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ],
                            "apifyProxyCountry": "CA"
                        }
                    },
                    "maxConcurrency": {
                        "title": "Max Concurrency",
                        "minimum": 1,
                        "maximum": 20,
                        "type": "integer",
                        "description": "Maximum number of concurrent browser pages. Lower this if you encounter rate-limiting or timeout errors. Increase for faster scraping on stable connections.",
                        "default": 5
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
