# n8n node: Yellow Pages Scraper

Use this n8n community node to run the [Yellow Pages Scraper](https://apify.com/pink_comic/yellowpages-scraper) Apify actor from workflows and AI agents.

It extracts US business leads from Yellow Pages, including business names, phone numbers, emails when available, websites, addresses, categories, ratings, review counts, hours, and profile URLs.

## Install

Self-hosted n8n:

```bash
npm install n8n-nodes-yellowpages-scraper
```

Or install from **Settings → Community nodes** in n8n using:

```text
n8n-nodes-yellowpages-scraper
```

## Authentication

Create an Apify API token at `https://console.apify.com/account/integrations`, then add it to the node credentials in n8n.

## Example workflows

- Build local prospect lists for plumbers, dentists, restaurants, roofers, and other categories.
- Trigger weekly lead refreshes by city and category.
- Send leads with email or website fields to a CRM, Google Sheets, Airtable, HubSpot, or an AI agent.
- Monitor businesses by location for market research or outreach.

## Inputs

- **Search Terms**: business categories or keywords, for example `plumbers`, `dentists`, `restaurants`.
- **Locations**: Yellow Pages city-state slugs, for example `austin-tx`, `new-york-ny`, `los-angeles-ca`.
- **Max Pages Per Search**: pages to scrape per search; 1 page is usually enough for a fast test.
- **Maximum Results**: cap returned leads to control cost.
- **Include Detail Pages**: fetch profile pages for emails and richer business details.
- **Proxy Configuration**: defaults to Apify residential US proxy settings recommended for Yellow Pages reliability.

## Output

Each item is a business lead with fields such as `name`, `phone`, `email`, `website`, `streetAddress`, `city`, `state`, `postalCode`, `categories`, `rating`, `reviewCount`, `searchTerm`, `location`, and `url`.

## Cost control

Start with one search term, one location, and one page. Increase `maxPages` only after the workflow is producing the leads you want.

## Links

- Apify actor: https://apify.com/pink_comic/yellowpages-scraper
- Apify token setup: https://docs.apify.com/platform/integrations/api
- n8n community nodes: https://docs.n8n.io/integrations/community-nodes/
