# Yellow Pages US Scraper — Business Details & Reviews (`datascraperes/yellowpages-mobile-api-scraper`) Actor

Scrape US Yellow Pages businesses with phones, websites, hours, categories, ratings, reviews and photos. Search many terms and cities in one run, deduplicate by Yellow Pages ID, and export rich JSON or CSV.

- **URL**: https://apify.com/datascraperes/yellowpages-mobile-api-scraper.md
- **Developed by:** [DataScraperES](https://apify.com/datascraperes) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.75 / 1,000 business delivereds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

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 examples already wired to this Actor's own input schema, see the [API](#api) section below.

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`).

# README

Turn one or more business types and US locations into a clean list of Yellow Pages businesses. The Actor returns **one row per unique business** with contact details, address, categories, hours, ratings, and optional reviews and photo URLs. It uses Yellow Pages' public mobile data service and does not need a browser.

### What this Actor does

Yellow Pages US Scraper reads public business records for the search terms and locations you provide. Each record combines the search result with the business profile, giving you fields that are often missing from a simple listing scrape: full address components, coordinates when published, opening hours, payment methods, languages, services, products, brands, social links, accreditations, and years established.

The Actor searches every term in every location, removes duplicate businesses by their Yellow Pages ID, and keeps track of which search found each record. Reviews and photo URLs are optional enrichments. Results are written to the default Dataset as they are collected, and a run summary reports coverage, per-search status, enrichment results, and request counts.

### Use cases

- Build a call-ready list of plumbers, dentists, roofers, restaurants, or other local businesses for a city.
- Compare business density and category mix across several neighborhoods or metros.
- Collect public contact details, websites, hours, and social links for CRM or directory enrichment.
- Research local competitors with ratings, review counts, years in business, and service descriptions.
- Export review text and photo URLs for market or reputation analysis.

### How to use

1. Open the Actor in Apify Console.
2. Enter one or more business types and one or more US locations. Start with a small `maxResults` value.
3. Click **Start** and open the Dataset when the run finishes. The run summary is in the run's Key-value store.

Start with `maxResults` of 10–30 to check that your terms and locations return the businesses you expect, then increase it for the full list.

### Input

`searchTerms` and `locations` are required. Every term is searched in every location; for example, two terms and three locations create six searches. Each list accepts up to 25 entries, and one run can create at most 100 search combinations. Split larger jobs into several runs.

`maxResults` is the total number of unique businesses to save across all searches, not a per-search limit. When the limit is reached, the run stops and the summary marks the result limit. The default is 100.

`includeDetails` is on by default and adds the profile fields. `includeReviews` and `includePhotos` are off by default because they add requests per business. Use `maxReviewsPerBusiness` and `maxPhotosPerBusiness` to cap that work. `sortBy` changes the order inside each search; relevance is the source default.

Quick start:

```json
{
  "searchTerms": [
    "plumbers"
  ],
  "locations": [
    "Austin, TX"
  ],
  "maxResults": 3,
  "includeDetails": true,
  "includeReviews": true,
  "maxReviewsPerBusiness": 3,
  "includePhotos": true,
  "maxPhotosPerBusiness": 3,
  "sortBy": "relevance"
}
```

Complete input contract:

```json
{
  "searchTerms": [
    "plumbers"
  ],
  "locations": [
    "Austin, TX"
  ],
  "maxResults": 3,
  "includeDetails": true,
  "includeReviews": true,
  "maxReviewsPerBusiness": 3,
  "includePhotos": true,
  "maxPhotosPerBusiness": 3,
  "sortBy": "relevance"
}
```

| Field | Type | Default | What it does |
| --- | --- | --- | --- |
| `searchTerms` | array of strings | `["plumbers"]` | Business types or keywords, one per entry. Up to 25. |
| `locations` | array of strings | `["Austin, TX"]` | US city and state, or ZIP code, one per entry. Up to 25. |
| `maxResults` | integer | `100` | Total unique businesses to save. Range 1–20,000. |
| `includeDetails` | boolean | `true` | Adds the full business profile fields. |
| `includeReviews` | boolean | `false` | Adds published reviews for each business. |
| `maxReviewsPerBusiness` | integer | `10` | Review cap when reviews are on. Range 1–100. |
| `includePhotos` | boolean | `false` | Adds public photo URLs to each record. |
| `maxPhotosPerBusiness` | integer | `10` | Photo cap when photos are on. Range 1–200. |
| `sortBy` | string | `relevance` | One of `relevance`, `rating`, `name`, `distance`, `average_rating`. |

### Output

One Dataset item represents one unique business. The item keeps the fields the source did not publish as `null` or an empty list instead of inventing values. `detailStatus`, `reviewsStatus`, and `photosStatus` tell you whether each optional part succeeded, was empty, was skipped, or was unavailable. `searchTerm`, `searchLocation`, `searchPage`, and `searchRank` record where the business was found.

`reviewCount` is the review count shown on the business profile. `reviewTotal` is the number of reviews the review feed reports, or `null` when no total is supplied. An unknown total does not stop pagination: collection continues until a verified empty page, the requested cap, or an explicit partial condition. The two counts can differ when the profile aggregates ratings from several sources. `rating` can be `0` for a business without reviews, so read it together with `reviewCount`.

Representative item from the verified run shown above:

```json
{
  "ypid": "10674347",
  "listingId": "1002194068759",
  "name": "Clarke Kent Plumbing",
  "phone": "(512) 766-0970",
  "phoneRaw": "5127660970",
  "emails": [
    "admin@clarkekentplumbing.com"
  ],
  "website": "http://www.clarkekentplumbing.com",
  "yellowPagesUrl": "https://www.yellowpages.com/austin-tx/mip/clarke-kent-plumbing-10674347",
  "street": "1408 W Ben White Blvd",
  "city": "Austin",
  "state": "TX",
  "zip": "78704",
  "country": "US",
  "latitude": 30.228342,
  "longitude": -97.78136,
  "distanceMiles": 3.45,
  "primaryCategory": "Plumbers",
  "categories": [
    "Plumbers",
    "Plumbing-Drain & Sewer Cleaning"
  ],
  "categoryBreadcrumbs": [
    {
      "code": "8009573",
      "text": "Building Contractors",
      "display": "Building Contractors"
    },
    {
      "code": "8009325",
      "text": "Plumbers",
      "display": "Plumbers"
    }
  ],
  "rating": 3.0,
  "reviewCount": 15,
  "ratingAttributes": [
    {
      "name": "Expertise",
      "id": 1007
    },
    {
      "name": "Professionalism",
      "id": 1017
    },
    {
      "name": "Promptness",
      "id": 1033
    }
  ],
  "claimed": true,
  "openNow": true,
  "open24Hours": false,
  "coupon": false,
  "listingType": "advertiser",
  "yearEstablished": "1986",
  "yearsListed": 1,
  "description": "Regardless of when you call us, you will always get a real person. We sell service as well as plumbing. What's important to us is building trust- one customer at a time. And we've been doing that since 1986.",
  "slogan": "Smart Service * Trusted Reputation",
  "paymentMethods": [
    "CASH",
    "MASTER CARD",
    "AMEX",
    "DISCOVER",
    "VISA",
    "CHECK"
  ],
  "languages": [
    "Spanish"
  ],
  "accreditations": [],
  "neighborhoods": [
    "South Lamar"
  ],
  "brands": [],
  "alsoKnownAs": [],
  "socialLinks": [
    "https://www.linkedin.com/company/clarke-kent-plumbing",
    "https://twitter.com/CKPlumingInc",
    "https://www.instagram.com/clarkekentplumbing/",
    "https://www.facebook.com/Clarke-Kent-Plumbing-Inc-140942559358301/"
  ],
  "services": [
    "Boiler Repair & Maintenance",
    "Furnace Repair & Maintenance Service(s)",
    "Conventional Gas Water Heater Installation",
    "Conventional Electric Water Heater Installation",
    "Backflow Preventer Installation",
    "Air Conditioning Repair & Maintenance Service(s)",
    "Drain Installation",
    "Drain Cleaning",
    "Frozen Pipe Repair",
    "Conventional Water Heater Installation"
  ],
  "products": [
    "Water Heaters"
  ],
  "about": null,
  "emergencyService": "true",
  "hours": {
    "today": {
      "hours": [
        [
          "Today",
          "9:00 am - 5:00 pm"
        ]
      ]
    },
    "details": [
      {
        "label": "Regular Hours",
        "text": "Mon - Fri 9:00 am - 5:00 pm, Sat - Sun Closed",
        "hours": [
          [
            "Mon - Fri",
            "9:00 am - 5:00 pm"
          ],
          [
            "Sat - Sun",
            "Closed"
          ]
        ]
      }
    ]
  },
  "hoursExtended": {
    "default": {
      "standard_hours": {
        "wednesday": "0900-1700",
        "monday": "0900-1700",
        "thursday": "0900-1700",
        "sunday": "0000-0000",
        "tuesday": "0900-1700",
        "friday": "0900-1700",
        "saturday": "0000-0000"
      }
    }
  },
  "photos": [
    {
      "id": "f4836299151475e05471929ce4083a3802453e39",
      "url": "http://i4.ypcdn.com/blob/f4836299151475e05471929ce4083a3802453e39",
      "width": 800,
      "height": 798,
      "primary": false,
      "category": "image",
      "createdAt": "2025-05-02 02:24:43 +0000"
    },
    {
      "id": "f0ea11c1b3d934453f0c27aa8469eaedaae7e8ce",
      "url": "http://i3.ypcdn.com/blob/f0ea11c1b3d934453f0c27aa8469eaedaae7e8ce",
      "width": 2048,
      "height": 1366,
      "primary": false,
      "category": "image",
      "createdAt": "2025-05-02 02:24:43 +0000"
    },
    {
      "id": "e8dfc4e3ca7b166a83ed531269226f9fe3c2c31b",
      "url": "http://i4.ypcdn.com/blob/e8dfc4e3ca7b166a83ed531269226f9fe3c2c31b",
      "width": 2048,
      "height": 1366,
      "primary": false,
      "category": "image",
      "createdAt": "2025-05-02 02:24:42 +0000"
    }
  ],
  "reviews": [
    {
      "id": "06e3e23e-af9e-45d2-997f-ee139fbd2ad9",
      "author": "Maria M.",
      "rating": 5,
      "title": null,
      "text": "Josh was wonderful and very professional. Pipe broke yesterday and no one else would come or even call us back today. Price was very reasonable, not overpriced at all.",
      "createdAt": "2017-01-09T18:58:35+00:00",
      "source": "YPmobile",
      "response": null,
      "images": [],
      "helpful": null,
      "notHelpful": null
    },
    {
      "id": "b01bff6c-cad1-4cc6-a2cb-1efda8551af6",
      "author": "Denise D.",
      "rating": 1,
      "title": null,
      "text": "My college ring went missing after two men from this company were in my house. The owner isn't helping us because it's our weird against theirs. They wear latex gloves, so there won't be proof. Please be careful when using this company.",
      "createdAt": "2015-12-13T17:02:52+00:00",
      "source": "YPmobile",
      "response": null,
      "images": [],
      "helpful": null,
      "notHelpful": null
    },
    {
      "id": "bf2f0c6a-ff99-47d7-aa47-8a09fd9c092d",
      "author": "Kenneth S.",
      "rating": 1,
      "title": null,
      "text": "They have a policy of not providing any range of repair cost on the phone, which is somewhat understandable....I asked the charges per hour for a plumber, do not give any cost per hour....technician comes out and gives a price based on a Book of Prices provided the company......company could have given this to me on the phone.....they don't charge you for the estimate, but when you have a problem, you tend to want to have it fixed when the technician comes out. Complaint is they DO HAVE A PRICING SHEET FOR THEIR REPAIRS, THEY JUST WON\"T GIVE IT TO YOU ON THE PHONE, OR GIVE YOU THE BILLING EXPENSE PER HOUR FOR THE TECHNICIAN TIME. WILL NOT USE THE COMPANY AGAIN>",
      "createdAt": "2015-07-23T02:35:08+00:00",
      "source": "YP.com",
      "response": null,
      "images": [],
      "helpful": null,
      "notHelpful": null
    }
  ],
  "reviewTotal": 15,
  "searchTerm": "plumbers",
  "searchLocation": "Austin, TX",
  "searchPage": 1,
  "searchRank": 2,
  "source": "yellowpages-mobile-api",
  "appVersion": "10.8.12",
  "scrapedAt": "2026-11-12T16:28:05+00:00",
  "detailStatus": "ok",
  "reviewsStatus": "ok",
  "photosStatus": "ok"
}
```

The Dataset can be exported as JSON, CSV, Excel, XML, or HTML. The run summary is available as the `RUN_SUMMARY` record and includes the status of every search and enrichment stage.

### Pricing

This Actor uses pay-per-event pricing. The billable event is one **unique business record successfully delivered to the Dataset**, named `business-delivered`. A business found by two searches is charged once.

Reviews use a separate `review-delivered` event: one charge for each unique review saved inside a delivered business record. An empty review feed is free. Reviews remain nested inside the business row. Published photo URLs and business details do not create additional events.

Searches with no results, duplicate businesses, failed source requests, and the run summary are not charged. The spending limit covers both business and review events. If the next complete business record and its reviews do not fit within the remaining limit, the Actor stops before delivering that record.

Check this Actor's **Pricing** tab for the currently active business and review prices before starting a run.

### Related Actors

| Actor | Best for |
| --- | --- |
| [Google Maps Business Scraper | $1 per 1,000](https://apify.com/datascraperes/actor-google-maps) | Compare local businesses from Google Maps and collect map-based leads. |
| [Website Email Scraper - Emails & Social Profiles](https://apify.com/datascraperes/website-email-social-scraper) | Enrich business websites with public emails and social profiles. |
| [Trustpilot Reviews Scraper | Business Data](https://apify.com/datascraperes/trustpilot-reviews-scraper) | Add review and reputation data for companies with Trustpilot profiles. |
| [Houzz Scraper | Photos, Products, Pros & Ideas](https://apify.com/datascraperes/houzz-content-scraper) | Collect home-services professionals, photos, products, and ideas. |

### Limits and data quality

- **United States only.** The source covers US Yellow Pages businesses.
- **Input mistakes produce a notice.** If invalid fields reach the Actor, it stops cleanly with a warning listing what to correct, without starting collection or charging business or review events. `RUN_SUMMARY` reports `status: "invalid_input"`, `complete: false`, and `inputErrors` with the affected fields. Omit an optional field to use its default; explicit `null` is not a valid value. The input form or API may reject invalid values before a run starts.
- **Unresolved locations are reported.** If the source explicitly requires a corrected location, the log identifies its entry in `locations` and asks for a US city and state or ZIP code. Other searches continue. Valid businesses already delivered remain available and retain their normal business and review charges; the summary stays incomplete and identifies the location to correct.
- **The source returns 30 listings per page.** `maxResults` caps the total unique businesses, so a large city can be stopped before every match is collected. The summary marks `resultLimitReached` when this happens.
- **Search membership can change between runs.** The total count is usually stable, but the first page can include a different mix of businesses. The Actor deduplicates by Yellow Pages ID and does not promise identical ordering between runs.
- **Some fields are optional.** A business may have no street address (service-area businesses), no published coordinates, no website, or no email. Those fields are `null` or empty. The Actor does not guess or crawl the business website.
- **Review and photo totals can differ from profile counts.** `reviewCount` is the profile rating count; `reviewTotal` is the review feed count. Photo `total_count` can exceed the number requested.
- **Photo files are not downloaded.** Each photo entry contains a public URL and its source dimensions.
- **Reviews and photos add requests.** On large runs, keep their per-business caps low or turn them off for a faster lead list.
- **Unexpected source responses produce a partial result.** If a business profile, review page, photo page, or search response is malformed, the Actor keeps verified data and records an unavailable or partial status. These source-format problems end cleanly with `RUN_SUMMARY.status: "partial"` and `complete: false`; they do not claim a complete collection. Profiles with a different business ID are never merged into the requested business. Reviews or photos collected before a later page fails are retained.
- **Large runs need planning.** The 20,000-business input ceiling is a safety cap, not a guarantee that every enrichment combination fits the default memory or timeout. Split large searches into smaller runs and keep review/photo caps appropriate to your workload.
- **Partial runs keep their data.** If the source becomes unavailable or the collection time runs out, already delivered businesses remain in the Dataset. These expected interruptions end cleanly with `RUN_SUMMARY.status: "partial"` and `complete: false`, including when no businesses could be collected. Check the record status fields and summary before using the results. Storage corruption, invalid Actor configuration, or unconfirmed delivery and payment can still fail the run explicitly.
- **Resuming preserves saved records.** If a saved business has unavailable details, reviews, or photos, resuming keeps that limitation visible and the run remains partial. Start a fresh run to request those records again.
- **Unexportable records are not silently truncated.** A business record that exceeds the supported storage size is skipped without business or review charges, and the run reports a partial result while preserving other verified businesses.
- **Unavailable progress storage remains visible.** If the progress checkpoint cannot be saved after bounded retries, delivered records remain in the Dataset and the summary reports a partial result. It does not claim complete recovery state.
- **Invalid numeric values are not exported as NaN or infinity.** Optional numeric fields with those values are treated as unavailable.
- **Descriptions and slogans are cleaned to plain text.** Source HTML is removed before output.

### Frequently asked questions

#### Do I need a Yellow Pages account or API key?

No. The Actor uses a public app identity configured by the Actor owner. You do not supply a Yellow Pages login, cookie, or token.

#### Why is a street address, website, or email missing?

The source does not publish that field for every business. Service-area businesses often have a city and ZIP but no street address. A missing email or website is not added from another source.

#### Why do `reviewCount` and `reviewTotal` disagree?

`reviewCount` comes from the business profile and can combine ratings from several sources. `reviewTotal` comes from the review feed and counts the reviews the Actor can actually request. Read both fields when you need a precise review picture.

#### Can I search many cities in one run?

Yes. Every term is searched in every location. Each list accepts up to 25 entries and one run can create at most 100 search combinations. For a large market map, split the work into several runs so each run stays within the combination limit.

#### Does the Actor use a browser?

No. It reads the public mobile data service directly, without a browser or stored cookies. This keeps runs lightweight and avoids browser challenges on the public website.

#### How fresh is the data?

Every run reads the source live. The Actor does not keep a cache between runs, so a scheduled run reflects the source at that moment. Small-business records can lag behind real-world changes; verify important contact details before outreach.

### Responsible use

This Actor collects publicly available business listing data. You are responsible for using it lawfully and in line with Yellow Pages' terms, applicable privacy rules such as CCPA and GDPR, and outreach rules such as CAN-SPAM and TCPA. Business contact details can be personal data when they identify a person. This Actor is independent and is not affiliated with, endorsed by, or sponsored by Yellow Pages or its owner.

### Support

If the source remains unavailable, check the run summary for incomplete work before using the results.

Open an issue in the Actor's **Issues** tab with your input, the run ID, and a short description of the result. Do not include credentials or private data.

[GitHub: Python, JavaScript and CSV integration examples](https://github.com/datacrawler-edu/yellowpages-us-scraper-python)

# Actor input Schema

## `searchTerms` (type: `array`):

What you would type into the Yellow Pages search box, one per line, for example plumbers or dentists. Every term is searched in every location. Up to 25 terms.

## `locations` (type: `array`):

US city and state, or a ZIP code, one per line, for example Austin, TX. Every business type is searched in every location. Up to 25 locations.

## `maxResults` (type: `integer`):

Total unique businesses to save across all searches. Default 100; maximum 20,000. The run stops when this limit is reached, even if Yellow Pages lists more matches.

## `includeDetails` (type: `boolean`):

Adds the business profile fields that are not on the search page: full address, hours, services, payment methods, languages, accreditations, and social links. Photos are added only when Include photos is enabled. Recommended.

## `includeReviews` (type: `boolean`):

Adds published review text, ratings, dates, authors, and business replies for each business. This adds one or more source requests per business.

## `maxReviewsPerBusiness` (type: `integer`):

Used only when Include reviews is on. Default 10; maximum 100. Reviews are collected in pages of 10.

## `includePhotos` (type: `boolean`):

Adds public photo URLs from the business gallery. Photo files are not downloaded; the URLs are included in each record.

## `maxPhotosPerBusiness` (type: `integer`):

Used only when Include photos is on. Default 10; maximum 200. Photos are requested in pages of up to 50.

## `sortBy` (type: `string`):

Order of businesses inside each search. Relevance is the source default. Sorting does not change the total number of matches.

## Actor input object example

```json
{
  "searchTerms": [
    "plumbers"
  ],
  "locations": [
    "Austin, TX"
  ],
  "maxResults": 3,
  "includeDetails": true,
  "includeReviews": true,
  "maxReviewsPerBusiness": 3,
  "includePhotos": true,
  "maxPhotosPerBusiness": 3,
  "sortBy": "relevance"
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `summary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "searchTerms": [
        "plumbers"
    ],
    "locations": [
        "Austin, TX"
    ],
    "maxResults": 3,
    "includeDetails": true,
    "includeReviews": true,
    "maxReviewsPerBusiness": 3,
    "includePhotos": true,
    "maxPhotosPerBusiness": 3,
    "sortBy": "relevance"
};

// Run the Actor and wait for it to finish
const run = await client.actor("datascraperes/yellowpages-mobile-api-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "searchTerms": ["plumbers"],
    "locations": ["Austin, TX"],
    "maxResults": 3,
    "includeDetails": True,
    "includeReviews": True,
    "maxReviewsPerBusiness": 3,
    "includePhotos": True,
    "maxPhotosPerBusiness": 3,
    "sortBy": "relevance",
}

# Run the Actor and wait for it to finish
run = client.actor("datascraperes/yellowpages-mobile-api-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searchTerms": [
    "plumbers"
  ],
  "locations": [
    "Austin, TX"
  ],
  "maxResults": 3,
  "includeDetails": true,
  "includeReviews": true,
  "maxReviewsPerBusiness": 3,
  "includePhotos": true,
  "maxPhotosPerBusiness": 3,
  "sortBy": "relevance"
}' |
apify call datascraperes/yellowpages-mobile-api-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,datascraperes/yellowpages-mobile-api-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/JJkv8nT0cdVgY1IaA/builds/q2fcbd7rCPrC95q35/openapi.json
