# Multi-city Canadian lead workflow

**Use case:** 

Run several YellowPages.ca query and location pairs in one job and export one source-labelled Canadian business lead dataset.

## Input

```json
{
  "searches": [
    {
      "searchQuery": "restaurant",
      "location": "Toronto ON",
      "maxResults": 50
    },
    {
      "searchQuery": "plumber",
      "location": "Vancouver BC",
      "maxResults": 50
    },
    {
      "searchQuery": "dentist",
      "location": "Montreal QC",
      "maxResults": 50
    }
  ],
  "searchQuery": "restaurant",
  "location": "Toronto ON",
  "maxResults": 20,
  "includeAds": true,
  "maxRequestRetries": 3
}
```

## Output

```json
{
  "name": {
    "label": "Business Name",
    "format": "string"
  },
  "phone": {
    "label": "Phone",
    "format": "string"
  },
  "fullAddress": {
    "label": "Address",
    "format": "string"
  },
  "rating": {
    "label": "Rating",
    "format": "number"
  },
  "reviewCount": {
    "label": "Reviews",
    "format": "integer"
  },
  "categories": {
    "label": "Categories",
    "format": "array"
  },
  "website": {
    "label": "Website",
    "format": "string"
  },
  "url": {
    "label": "YP Listing",
    "format": "string"
  },
  "isAd": {
    "label": "Sponsored",
    "format": "boolean"
  },
  "searchQuery": {
    "label": "Search Query",
    "format": "string"
  },
  "location": {
    "label": "Search Location",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [YellowPages Canada Business Scraper](https://apify.com/automation-lab/yellowpages-canada-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/automation-lab/yellowpages-canada-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/automation-lab/yellowpages-canada-scraper.md

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`).
