Yellow Pages Scraper avatar

Yellow Pages Scraper

Pricing

Pay per event

Go to Apify Store
Yellow Pages Scraper

Yellow Pages Scraper

Extract business listings from Yellow Pages — names, phone numbers, addresses, ratings, reviews, categories, and websites. Search by business type and location. Export to JSON, CSV, or Excel. No API key needed.

Pricing

Pay per event

Rating

0.0

(0)

Developer

Stas Persiianenko

Stas Persiianenko

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 hours ago

Last modified

Share

What does Yellow Pages Scraper do?

Yellow Pages Scraper extracts business listing data from yellowpages.com at scale. Enter a search term and location, and the scraper returns structured data for every matching business: names, phone numbers, addresses, ratings, reviews, categories, and websites.

The fastest way to try it is to click Start with the prefilled input (plumber in New York) — you'll get results in under 30 seconds.

Unlike other Yellow Pages scrapers that break on Cloudflare protection, this actor uses residential proxy + Playwright to reliably bypass anti-bot measures. It extracts data directly from the page DOM for maximum field coverage.

Who is Yellow Pages Scraper for?

Lead generation teams looking to build targeted contact lists:

  • Extract plumber, electrician, or contractor listings in specific cities
  • Build prospect databases with phone numbers and websites for outreach
  • Filter by rating to target established businesses

Market researchers analyzing local business landscapes:

  • Count businesses per category in a metro area
  • Compare rating distributions across locations
  • Track which categories are saturated vs. underserved

Data analysts building business directories or aggregators:

  • Collect structured business data at scale across multiple cities
  • Enrich CRM records with Yellow Pages data
  • Monitor new business listings appearing in target markets

Sales & marketing professionals doing competitive intelligence:

  • Find all competitors in a specific category and location
  • Analyze competitor ratings and review counts
  • Identify top-rated businesses for partnership opportunities

Why use Yellow Pages Scraper?

  • Actually works — bypasses Cloudflare protection with residential proxy
  • Rich data — extracts business name, phone, full address, rating, review count, categories, website URL, and Yellow Pages listing link
  • No API key needed — no login, no tokens, no rate limits to manage
  • Pagination support — automatically follows "Next" links to collect large result sets
  • Clean URLs — strips tracking parameters from listing URLs
  • Pay-per-event pricing — only pay for what you scrape, no monthly subscription
  • API, scheduling, and integrations — access results via REST API, schedule recurring runs, export to Google Sheets, Slack, or 5,000+ apps via Zapier and Make
  • Export formats — download results as JSON, CSV, Excel, or XML

What data can you extract?

Each business listing includes up to 13 data fields:

FieldDescriptionExample
businessNameCompany name"Aladdin Plumbing Corp."
phonePhone number"(347) 395-4715"
addressStreet address"55 Garnet Street"
cityCity"Kings County"
stateState code"NY"
zipZIP code"11231"
ratingStar rating (1-5)4.5
reviewCountNumber of reviews218
categoriesBusiness categories"Plumbers, Water Heaters"
websiteBusiness website URL"https://example.com"
urlYellow Pages listing URL"https://www.yellowpages.com/..."
latitudeLatitude coordinatenull
longitudeLongitude coordinatenull

How much does it cost to scrape Yellow Pages?

This actor uses pay-per-event pricing — you pay only for what you scrape. No monthly subscription. All platform costs (compute, proxy, storage) are included.

FreeStarter ($29/mo)Scale ($199/mo)Business ($999/mo)
Per business$0.00345$0.003$0.00234$0.0018
100 businesses$0.36$0.31$0.25$0.19
1,000 businesses$3.46$3.01$2.35$1.81

A one-time start fee of $0.01 is charged per run.

Real-world cost examples:

QueryResultsDurationCost (Free tier)
Plumber, New York10~18s~$0.04
Dentist, Los Angeles15~30s~$0.06
Pizza, Chicago50~35s~$0.18

On the free plan ($5 credit), you can scrape approximately 1,400 business listings.

How to scrape Yellow Pages business listings

  1. Go to Yellow Pages Scraper on Apify Store
  2. Click Start to try with the prefilled example (plumber in New York)
  3. Or customize the input:
    • Set Search Terms to the business type (e.g., "dentist", "pizza", "electrician")
    • Set Location to a city and state (e.g., "Los Angeles, CA") or ZIP code
    • Adjust Max Results to control how many listings to extract
  4. Click Start and wait for the run to finish
  5. Download results as JSON, CSV, or Excel from the Dataset tab

Example input for restaurants in Miami:

{
"searchTerms": "restaurant",
"location": "Miami, FL",
"maxResults": 50
}

Example input for lawyers in Seattle:

{
"searchTerms": "lawyer",
"location": "Seattle, WA",
"maxResults": 100
}

Input parameters

ParameterTypeRequiredDefaultDescription
searchTermsstringYesBusiness type or keyword (e.g., "plumber", "dentist")
locationstringYesCity/state or ZIP code (e.g., "New York, NY", "90210")
maxResultsintegerNo100Maximum number of listings to extract (1-500)

Output example

{
"businessName": "Jonathan M. Engel, DDS",
"phone": "(323) 934-3341",
"address": "5901 W Olympic Blvd",
"city": "Los Angeles",
"state": "CA",
"zip": "90036",
"rating": 5,
"reviewCount": 218,
"categories": "Dentists, Periodontists, Prosthodontists & Denture Centers",
"website": "https://www.socaldentalhealth.com",
"url": "https://www.yellowpages.com/los-angeles-ca/mip/jonathan-m-engel-dds-15064536",
"latitude": null,
"longitude": null
}

Tips for best results

  • Start small — use a low maxResults (10-20) for your first run to preview the data and estimate costs
  • Use specific search terms — "emergency plumber" returns more relevant results than just "plumber"
  • Include state code — "Los Angeles, CA" works better than just "Los Angeles"
  • Schedule recurring runs — set up weekly scrapes to monitor new listings appearing in your market
  • Combine queries — run multiple scrapes with different search terms to build comprehensive databases
  • Export to Google Sheets — connect the output to a Google Sheet for easy team collaboration

Integrations

  • Yellow Pages Scraper -> Google Sheets: Automatically push new business listings to a shared spreadsheet for your sales team to work through
  • Yellow Pages Scraper -> Slack: Get notified when new high-rated businesses appear in your target market — set up a scheduled run with a Slack webhook
  • Yellow Pages Scraper -> CRM (via Zapier/Make): Feed extracted business contacts directly into HubSpot, Salesforce, or Pipedrive for lead nurturing
  • Scheduled monitoring: Run weekly to track new businesses opening in specific categories and locations
  • Webhooks: Trigger your data pipeline automatically when a scrape completes — process, enrich, and store results in your database

Using the Apify API

You can run Yellow Pages Scraper programmatically using the Apify API.

Node.js

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('automation-lab/yellowpages-scraper').call({
searchTerms: 'dentist',
location: 'Los Angeles, CA',
maxResults: 50,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

Python

from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("automation-lab/yellowpages-scraper").call(run_input={
"searchTerms": "dentist",
"location": "Los Angeles, CA",
"maxResults": 50,
})
items = client.dataset(run["defaultDatasetId"]).list_items().items
print(items)

cURL

curl -X POST "https://api.apify.com/v2/acts/automation-lab~yellowpages-scraper/runs?token=YOUR_APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"searchTerms": "dentist",
"location": "Los Angeles, CA",
"maxResults": 50
}'

Use with AI agents via MCP

Yellow Pages Scraper is available as a tool for AI assistants that support the Model Context Protocol (MCP).

Add the Apify MCP server to your AI client — this gives you access to all Apify actors, including this one:

Setup for Claude Code

$claude mcp add --transport http apify "https://mcp.apify.com?tools=automation-lab/yellowpages-scraper"

Setup for Claude Desktop, Cursor, or VS Code

Add this to your MCP config file:

{
"mcpServers": {
"apify": {
"url": "https://mcp.apify.com?tools=automation-lab/yellowpages-scraper"
}
}
}

Your AI assistant will use OAuth to authenticate with your Apify account on first use.

Example prompts

Once connected, try asking your AI assistant:

  • "Find all dentists in Austin, TX with their phone numbers and ratings (use automation-lab/yellowpages-scraper)"
  • "Get me a list of 50 pizza restaurants in Chicago with their websites"
  • "Scrape plumber listings in Miami and export to a spreadsheet"

Learn more in the Apify MCP documentation.

Yellow Pages Scraper only extracts publicly available data from yellowpages.com. The scraper does not bypass any login walls or access private data. Web scraping of public data is generally legal, as confirmed by the US Ninth Circuit ruling (hiQ Labs v. LinkedIn).

Always use scraped data ethically and in compliance with applicable laws, including GDPR and CCPA. Review Yellow Pages' Terms of Service before large-scale data collection. Apify provides tools for responsible data collection.

Legality

Scraping publicly available data is generally legal according to the US Court of Appeals ruling (HiQ Labs v. LinkedIn). This actor only accesses publicly available information and does not require authentication. Always review and comply with the target website's Terms of Service before scraping. For personal data, ensure compliance with GDPR, CCPA, and other applicable privacy regulations.

FAQ

How fast is Yellow Pages Scraper? The scraper extracts 10-50 businesses in 15-35 seconds. Speed depends on the number of results and pagination. Each page contains up to 30 listings, so requests for 30+ results require multiple page loads.

How much does it cost to scrape 1,000 businesses? On the free plan, approximately $3.46. On the Scale plan ($199/mo), approximately $2.35. See the pricing section above for full tier breakdown.

Why are some fields null (rating, reviewCount)? Some listings on Yellow Pages don't have ratings or reviews — typically newer businesses or sponsored/ad listings. The scraper returns null for fields that aren't available on the source page.

Why did my run return fewer results than expected? Yellow Pages may not have enough matching listings for your search term and location combination. Try broader search terms or a larger metro area. Some listings may also be filtered by Yellow Pages internally.

Can I scrape the entire United States? Yes, but run separate queries per city/metro area for best results. Yellow Pages limits search results per query, so splitting by location ensures complete coverage.

Other business data scrapers