At a glance
What the Yellow Pages Canada Scraper does
- Search by
- Search terms x Canadian cities, e.g. plumber in Toronto ON
- Options
- Opening hours, exact rating and coordinates from each business page (on by default), or a much faster card-only run that loads one search page per 35 businesses
- Output
- 22 fields per business; JSON, CSV, Excel, API
- Automate
- Schedules, webhooks, Zapier, Make, n8n, Google Sheets, MCP for AI agents
Who it is for
- Canadian agencies and B2B sellers building trade lead lists by city
- Home-services platforms sourcing contractors by province
- Market researchers counting businesses by category and city
- Sales teams adding phones, websites and hours to a prospect list
Output
What you get
- name, category, categories, is_ad (paid placement)
- street, city, province, postal_code, latitude, longitude
- phone (E.164), website
- rating, review_count (count only), open_status, hours [{day, opens, closes}]
- listing_id, yp_url, search_term, search_location, source_url, scraped_at (ISO 8601 UTC)
Example
Input and output
Input
{
"searchTerms": [
"plumber",
"electrician"
],
"locations": [
"Toronto ON",
"Calgary AB"
],
"maxResultsPerSearch": 100,
"includeDetails": true
}One output record
{
"listing_id": "101902936",
"name": "Drain King Plumbers",
"category": "Plumbers & Plumbing Contractors",
"categories": [
"Plumbers & Plumbing Contractors"
],
"street": "100 Saint Regis Crescent",
"city": "North York",
"province": "ON",
"postal_code": "M3J 1Y8",
"phone": "+16479560539",
"website": "http://www.drainkingplumbers.ca/",
"rating": 5,
"review_count": 8,
"open_status": "Open 24 hours",
"is_ad": true,
"yp_url": "https://www.yellowpages.ca/bus/Ontario/North-York/Drain-King-Plumbers/101902936.html",
"hours": [
{
"day": "Monday",
"opens": "00:00",
"closes": "23:59"
},
{
"day": "Tuesday",
"opens": "00:00",
"closes": "23:59"
},
{
"day": "Wednesday",
"opens": "00:00",
"closes": "23:59"
},
"… 4 more"
],
"latitude": 43.7550621,
"longitude": -79.4822464,
"search_term": "plumber",
"search_location": "Toronto ON",
"source_url": "https://www.yellowpages.ca/bus/Ontario/North-York/Drain-King-Plumbers/101902936.html",
"scraped_at": "2026-11-04T11:26:27Z"
}From a real run of this tool; long text and lists shortened here.
How to use it
Three steps
- Enter one or more search terms, e.g. plumber or dentist, and one or more locations, e.g. Toronto ON or Halifax NS.
- Set Max businesses per search (default 50); turn off opening hours for a faster, card-only run.
- Click Start, then download JSON, CSV or Excel, or send the rows to Google Sheets, your CRM, Zapier, Make or n8n through the API.
API
Call it from Python
from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("aurelix/yellow-pages-canada-scraper").call(run_input={'searchTerms': ['plumber', 'electrician'],
'locations': ['Toronto ON', 'Calgary AB'],
'maxResultsPerSearch': 100,
'includeDetails': True})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item)pip install apify-client. The same input works from the Apify console, a schedule, Make, n8n, Zapier or an AI agent through the Apify MCP server.
Pricing
Pay per result
| Per 1,000 businesses, free plan | $1.50 |
| Per 1,000 businesses, paid plans | from $0.84 |
| Start fee per run | $0.01 |
Live prices from the Apify Store; no subscription and no platform usage billed on top. See the Store page.
Honest limits
What it does not do
- Results are what YellowPages.ca shows for the search, in its order, including paid placements; very broad searches stop when YellowPages.ca stops returning new businesses.
- Canada only (YellowPages.ca). YellowPages.com (US) blocks Apify's free datacenter proxy, so it is not covered.
- Emails are not collected; use the website with the Company Contact Finder for published company emails.
- Opening hours are as listed by the business on YellowPages.ca and can be out of date.
- A business whose name contains a name on the suppression list is skipped (titles such as Dr., case and accents ignored).
FAQ
Questions buyers ask
How much does the Yellow Pages Canada Scraper cost?
$1.50 per 1,000 businesses (from $0.84 on paid Apify plans), billed through your Apify account; you pay only for results. Apify's free plan includes $5 of credit a month, enough for about 3,333 businesses.
What is charged?
One business-result per business returned. Duplicates across searches, businesses on the suppression list and pages that fail are not charged.
Why do some businesses have no rating?
A rating is shown only when the business has YP reviews; review_count is then 0 and rating is empty.
What does 'Include opening hours' do?
It opens each business page for the weekly hours, the exact rating and the map coordinates. Without it you get the search-card fields (name, categories, address, phone, website, rating rounded to half stars, review count and today's open status). That run loads only the search pages, one per 35 businesses, instead of one extra page per business, so it is much faster on large runs.
Are ads included?
Yes, paid placements appear in YellowPages.ca results; they are real businesses and are flagged with is_ad so you can filter them.
Does it respect robots.txt?
Always. Only search and business pages that YellowPages.ca's robots.txt allows are requested, one at a time, about once a second.
Can I use it from an AI assistant?
Yes. Give 'searchTerms' and 'locations'; it works through Apify's MCP server and API.
Is this legal?
It reads only public data any logged-out visitor can see: YellowPages.ca search and business pages. It goes at a polite pace, respects robots.txt, never logs in and never solves CAPTCHAs. It returns business listing fields (name, categories, address, phone, website, rating, hours); no review text or reviewer data. To have a record removed, open an issue on this Actor's Issues tab; if Yellow Pages formally asks us to stop, this Actor will stop. You are responsible for using the data lawfully, incl. anti-spam and privacy laws; this is not legal advice.
How do I get a business removed?
Open an issue in the Issues tab with the business name or website. It is added to the shared suppression list within 7 days.
What happens if a search finds nothing or a page fails?
Each page is tried 3 times; if a search page still fails (for example HTTP 429), that search stops and keeps the businesses already saved. If a business page fails, the business is still returned with its search-card fields but no hours or coordinates. The status message counts failed pages, and failed pages are never charged.
How are duplicates removed?
By YellowPages.ca listing_id, within one run. The first search that finds a business keeps it, and its search_term and search_location show which one. A business that YellowPages.ca repeats as an ad on later pages is skipped and not charged. Separate runs do not share memory, so a new run returns and charges the same business again; dedupe across runs on listing_id.
How many businesses can one run return?
Up to 2,000 per search (Max businesses per search), and a run holds up to 1,000 searches (search terms x locations, up to 200 of each); searches past the first 1,000 are skipped and the run's status says so. A search also ends when YellowPages.ca runs out: two result pages in a row with no new business, or a page with fewer than 35 results. The run stops shortly before Apify's run timeout and at the maximum charge you set, and keeps every business saved so far.
How fast is it?
It loads about one page per second. With opening hours on, it opens one business page per business: in our test runs 40 businesses took about 2 minutes and 100 took about 2.5 minutes. With hours off it loads one search page per 35 businesses.
How should I write the location?
As on YellowPages.ca: a city or area plus the province code, e.g. Toronto ON or Kelowna BC. YellowPages.ca also returns businesses from nearby towns, so a Halifax NS search can include Bedford or Mount Uniacke; the city column shows the real town. A location it does not know returns no businesses.
What format are phone, address and website in?
phone is E.164: +1 and 10 digits; a number that is not a valid North American number is left empty. street, city, province and postal_code are separate columns as YellowPages.ca lists them, e.g. province ON. website is the business's own site with the YellowPages.ca redirect removed; Facebook, Instagram, LinkedIn and other social pages are dropped, so website is empty when a business lists only those.
Can I schedule it to get only new businesses?
Yes. Turn on 'Only new businesses since last run', save the input as a task and schedule it daily or weekly: each run skips businesses an earlier run with the same searches already returned, and those are not charged. Add a Slack or webhook URL to get a short digest after each run.
How do I export businesses to Google Sheets?
Download the run's results as CSV or Excel and open them in Google Sheets, or add Apify's Google Sheets integration to the run or a schedule so every run's results land in a sheet.
Guides
Tutorials using this tool
Related
Related tools
Google Maps Scraper
Local business lists from Google Maps: phones, websites, ratings, hours, coordinates; optional website emails and socials.
Recently Funded Companies
US companies that just filed an SEC Form D: amount raised, industry, state, executives, confirmed website.
Newly Funded Companies Hiring
Companies that just raised money (SEC Form D), with their open roles and business contacts, as a new-only monitor.
Try the Yellow Pages Canada Scraper
Open it on the Apify Store, paste the example input above and click Start. Results download as CSV, Excel or JSON.