Yellow Pages Scraper avatar

Yellow Pages Scraper

Pricing

from $6.00 / 1,000 results

Go to Apify Store
Yellow Pages Scraper

Yellow Pages Scraper

Yellow Pages scraper that pulls local business listings from yellowpages.com, so sales teams and researchers get business names, phones, addresses, and ratings without the manual work.

Pricing

from $6.00 / 1,000 results

Rating

0.0

(0)

Developer

Kawsar

Kawsar

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

5 days ago

Last modified

Share

Yellow Pages Scraper: Extract Local Business Listings from yellowpages.com

Yellow Pages scraper that pulls business listings from yellowpages.com. Give it a search term and a city, and it returns names, phones, addresses, websites, star ratings, and categories in a clean dataset.

Works for any business type: plumbers, dentists, restaurants, lawyers, electricians, contractors. It pages through results automatically and can pull up to 1000 listings per run.

Use cases

  • Sales prospecting: build lead lists of local businesses by industry and city
  • Competitor research: count and profile businesses in an area before opening a new location
  • Directory building: populate a business database for a specific region and category
  • Marketing outreach: collect phone numbers and websites for outreach campaigns
  • Data enrichment: add phone, address, and rating data to existing business records

What data does this actor extract?

Each listing returns:

{
"businessName": "Ritz Plumbing Heating, Air & Electrical",
"phoneNumber": "(323) 452-4915",
"streetAddress": "1355 S La Brea Ave",
"city": "Los Angeles",
"stateAbbr": "CA",
"zipCode": "90019",
"fullAddress": "1355 S La Brea Ave, Los Angeles, CA 90019",
"website": "http://www.ritzplumbinginc.org/",
"categories": ["Plumbers", "Heating Contractors & Specialties", "Air Conditioning Contractors & Systems"],
"rating": 5.0,
"reviewCount": 2,
"yearsInBusiness": 95,
"listingUrl": "https://www.yellowpages.com/los-angeles-ca/mip/ritz-plumbing-heating-air-electrical-9270807",
"searchTerms": "plumber",
"searchLocation": "Los Angeles, CA",
"scrapedAt": "2025-01-15T09:32:11.452Z",
"error": null
}

Input

ParameterTypeDefaultDescription
searchTermsstringrequiredType of business to search (e.g. plumber, dentist, pizza restaurant)
locationstringrequiredCity and state (e.g. Los Angeles, CA or Chicago, IL)
maxPagesinteger1Number of result pages to scrape. Each page has up to 30 listings.
maxItemsinteger100Maximum number of listings to return per run (up to 1000).
requestTimeoutSecsinteger30Per-request timeout in seconds.

Example input

{
"searchTerms": "plumber",
"location": "Los Angeles, CA",
"maxPages": 3,
"maxItems": 90
}

Output

The actor stores results in an Apify dataset. Each row is one business listing with the fields shown above.

FieldTypeDescription
businessNamestringBusiness name as listed on Yellow Pages
phoneNumberstringPrimary phone number
streetAddressstringStreet address
citystringCity
stateAbbrstringTwo-letter state code
zipCodestringZIP code
fullAddressstringComplete address string
websitestringBusiness website URL
categoriesarrayBusiness categories
ratingnumberStar rating out of 5.0
reviewCountintegerNumber of reviews
yearsInBusinessintegerYears in business (when listed)
listingUrlstringDirect link to the YP listing
searchTermsstringSearch term from input
searchLocationstringLocation from input
scrapedAtstringISO 8601 scrape timestamp
errorstringError message if parsing failed

FAQ

What search terms can I use? Any business category: plumber, dentist, lawyer, pizza, auto repair, electrician, HVAC, and so on. Use the same terms you would type into the Yellow Pages search box.

How many results are on each page? Yellow Pages shows up to 30 listings per page. Set maxPages to 3 to get up to 90 listings, or increase maxItems to cap the total.

Will this work for any US city? Yes. Enter the city and state in the location field (e.g. Chicago, IL or Miami, FL). Yellow Pages covers all US cities and many Canadian locations.

What if a field is missing for some listings? Not every listing has a website, rating, or years-in-business entry. Missing fields return null. The error field is only set if the listing failed to parse.

Can I run multiple searches at once? Run the actor multiple times with different search terms and locations. Use the Apify scheduler to run on a recurring basis.