# Scrape Yellow Pages Business Listings

**Use case:** 

Yellow Pages US answers plain HTTP from the Apify cloud - no proxy and no browser - with thirty rows a page carrying the company name, phone, address, category, website and years in business. The website is published on the search page for 79% of rows, which is where an email hunt starts.

## Input

```json
{
  "searchTerms": [
    "plumber",
    "electrician",
    "roofing"
  ],
  "locations": [
    "Austin, TX"
  ],
  "sources": [
    "yellowpages_us"
  ],
  "countries": [
    "US"
  ],
  "maxItems": 300,
  "expandBuckets": true,
  "requirePhone": false,
  "requireWebsite": false,
  "requireEmail": false,
  "excludeAds": false,
  "onlyAccredited": false,
  "onlyNew": false,
  "emitUnchanged": false,
  "compactOutput": false,
  "excludeEmptyFields": false
}
```

## Output

```json
{
  "name": {
    "label": "name",
    "format": "string"
  },
  "phone": {
    "label": "phone",
    "format": "string"
  },
  "website": {
    "label": "website",
    "format": "string"
  },
  "email": {
    "label": "email",
    "format": "string"
  },
  "address": {
    "label": "address",
    "format": "string"
  },
  "city": {
    "label": "city",
    "format": "string"
  },
  "region": {
    "label": "region",
    "format": "string"
  },
  "postal_code": {
    "label": "postal_code",
    "format": "string"
  },
  "country": {
    "label": "country",
    "format": "string"
  },
  "street": {
    "label": "street",
    "format": "string"
  },
  "latitude": {
    "label": "latitude",
    "format": "integer"
  },
  "longitude": {
    "label": "longitude",
    "format": "integer"
  },
  "categories": {
    "label": "categories",
    "format": "array"
  },
  "rating": {
    "label": "rating",
    "format": "integer"
  },
  "rating_count": {
    "label": "rating_count",
    "format": "integer"
  },
  "bbb_rating": {
    "label": "bbb_rating",
    "format": "string"
  },
  "bbb_score": {
    "label": "bbb_score",
    "format": "integer"
  },
  "accredited": {
    "label": "accredited",
    "format": "boolean"
  },
  "years_in_business": {
    "label": "years_in_business",
    "format": "integer"
  },
  "founded_year": {
    "label": "founded_year",
    "format": "integer"
  },
  "employee_count": {
    "label": "employee_count",
    "format": "string"
  },
  "service_areas": {
    "label": "service_areas",
    "format": "array"
  },
  "opening_hours": {
    "label": "opening_hours",
    "format": "string"
  },
  "description": {
    "label": "description",
    "format": "string"
  },
  "phones": {
    "label": "phones",
    "format": "array"
  },
  "logo_url": {
    "label": "logo_url",
    "format": "string"
  },
  "profile_url": {
    "label": "profile_url",
    "format": "string"
  },
  "business_id": {
    "label": "business_id",
    "format": "string"
  },
  "is_ad": {
    "label": "is_ad",
    "format": "boolean"
  },
  "verified": {
    "label": "verified",
    "format": "boolean"
  },
  "source": {
    "label": "source",
    "format": "string"
  },
  "source_name": {
    "label": "source_name",
    "format": "string"
  },
  "query_term": {
    "label": "query_term",
    "format": "string"
  },
  "query_location": {
    "label": "query_location",
    "format": "string"
  },
  "page": {
    "label": "page",
    "format": "integer"
  },
  "bucket": {
    "label": "bucket",
    "format": "string"
  },
  "scraped_at": {
    "label": "scraped_at",
    "format": "string"
  },
  "change_type": {
    "label": "change_type",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [Yellow Pages Scraper - BBB, Europages, Business Directory](https://apify.com/snow_leo_data/yellow-pages-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/snow_leo_data/yellow-pages-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/snow_leo_data/yellow-pages-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`).
