# Yellowpages Scraper: Search & Business Details (`mof1re/yellowpages-scraper`) Actor

Scrape Yellowpages.com businesses by keyword and location, or get full details by listing URL or ID. Names, phones, addresses, websites, ratings, reviews, photos and opening hours. Fast and browserless, proxies included, optional details enrichment for search results.

- **URL**: https://apify.com/mof1re/yellowpages-scraper.md
- **Developed by:** [Vladimir Efimenco](https://apify.com/mof1re) (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.70 / 1,000 search results

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/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

## Yellowpages Scraper | Business Leads, Emails, Phones & Reviews

This Yellowpages scraper collects business data from yellowpages.com: names, phone numbers, emails, websites, addresses, opening hours, ratings, reviews and photos. Search any keyword in any US city or ZIP code, or paste Yellowpages listing links to get the full business profile. It is fast and browserless, and proxies are included.

If you need US business leads from the Yellow Pages directory, for example every dentist in Newark, DE or every plumber in Austin, TX, this Yellowpages scraper gives you a clean, ready-to-use dataset in minutes.

### ⚡ What you can do with it

- Search Yellowpages by keyword and location, for example `Dentist` in `Newark, DE` or `Plumber` in `78701`.
- Run many keywords in one go, each in the same location.
- Get up to 50 businesses per page, and as many pages as the search has.
- Sort results by relevance, name or distance, and include or skip closed businesses.
- Enrich every search result with full business details: emails, extra phone numbers, fax, all photos and up to 50 reviews.
- Paste Yellowpages listing URLs or IDs to get complete business profiles.
- Export to JSON, CSV, Excel or HTML, or connect the data to your CRM, Google Sheets or AI agent.

### 🎯 Who uses it

- **Lead generation and B2B sales:** build lists of local businesses with phones, emails and websites.
- **Marketing agencies:** find businesses by niche and city for outreach and local SEO.
- **Market research:** count and compare businesses by category, city, rating or years in business.
- **Reputation monitoring:** track Yellowpages ratings and reviews, plus TripAdvisor ratings where available.
- **Data and AI teams:** feed structured US business directory data into apps, databases and AI agents.

### 🔧 Input

The Yellowpages scraper has two modes. Pick one with the `mode` field.

#### 🔍 Search mode

Finds businesses by keyword and location, like the search box on yellowpages.com.

| Field | Description |
|---|---|
| `mode` | `SEARCH` |
| `searchQueries` | Keywords to search for, for example `Dentist`, `Pizza`, `Auto Repair`. Each keyword is a separate search |
| `location` | City and state (`Newark, DE`) or a ZIP code (`90217`). Used for every keyword |
| `maxPages` | Pages per keyword. One page has 50 businesses. The search stops earlier when there are no more results |
| `sort` | `relevance` (default), `name` or `distance` |
| `includeClosed` | Also return businesses that are currently closed. Default `true` |
| `enrichDetails` | Adds full business details to every result: emails, extra phones and fax, all photos and up to 50 reviews. Each listing is opened individually and its details are saved in the same row. Available on paid plans |

```json
{
  "mode": "SEARCH",
  "searchQueries": ["Dentist", "Orthodontist"],
  "location": "Newark, DE",
  "maxPages": 3,
  "sort": "relevance",
  "includeClosed": false,
  "enrichDetails": true
}
```

#### 📇 Listings mode

Gets the full business profile for each Yellowpages listing you provide.

| Field | Description |
|---|---|
| `mode` | `LISTINGS` |
| `listings` | Yellowpages listing URLs or listing IDs, one per line |

Both formats work, and you can mix them:

- `https://www.yellowpages.com/van-nuys-ca/mip/contractors-inc-541885348`
- `541885348`

```json
{
  "mode": "LISTINGS",
  "listings": [
    "https://www.yellowpages.com/van-nuys-ca/mip/contractors-inc-541885348",
    "6663016"
  ]
}
```

Links that are not from yellowpages.com are skipped with a warning in the log. Duplicates are removed automatically.

### 📊 Output

The Yellowpages scraper saves results to two datasets:

- **Search results** (default dataset): one row per business found in Search mode.
- **Business details** (`listings` dataset): one row per listing in Listings mode.

Both datasets use the same field names and share `listing_id`, so you can join them easily. Every row has the same columns, and a field that a business does not have is `null`. The data is flat where possible, so it works well in Excel, CSV and Google Sheets.

#### 🏢 Business and contacts

| Field | Description |
|---|---|
| `listing_id` | Yellowpages listing ID, the number at the end of the listing URL |
| `listing_url` | Yellowpages listing page |
| `name` | Business name |
| `primary_category`, `categories` | Main category and all categories |
| `phone`, `phone_international` | Main phone, for example `(302) 489-4058` and `+13024894058` |
| `email`, `emails` | Main email and all emails |
| `additional_phones`, `fax_numbers` | Extra phone numbers and fax numbers. Details only |
| `website`, `additional_urls` | Business website and all website links |
| `social_networks` | Facebook, Instagram, Yelp, X and other profile links |
| `also_known_as` | Other names of the business. Details only |

#### 📍 Location

| Field | Description |
|---|---|
| `address`, `city`, `state`, `zip` | Address parts |
| `full_address` | Street, city, state and ZIP in one line |
| `latitude`, `longitude` | Coordinates |
| `neighborhoods` | Neighborhoods. Details only |
| `location_description` | How to find the place, for example the building name |
| `distance_miles` | Distance from the searched location. Search mode only |
| `timezone` | Business timezone |

#### ⭐ Ratings and reviews

| Field | Description |
|---|---|
| `average_rating`, `rating_count` | Yellowpages rating (0 to 5) and number of ratings |
| `average_rating_precise` | Rating with two decimals. Details only |
| `review_count`, `last_review_date` | Number of written reviews and date of the latest one. Details only |
| `rating_5_stars` ... `rating_1_stars` | Number of ratings per star. Details only |
| `rating_attribute_scores` | Average score per aspect, for example Food 4.5, Service 5. Details only |
| `review_snippets` | Short reviews shown in search results |
| `reviews` | Up to 50 full reviews with rating, title, text, date, aspect scores and author. Details only |

#### 🕒 Hours

| Field | Description |
|---|---|
| `hours_text` | Opening hours as text |
| `hours_monday` ... `hours_sunday` | Hours per day, for example `08:00-17:00` or `Closed` |
| `open_now`, `open_24_hours` | Open at scrape time, open 24 hours |
| `hours` | Full opening hours data as published by Yellowpages |

#### 📝 About the business

| Field | Description |
|---|---|
| `description`, `slogan` | Business description and slogan |
| `year_established` | Year the business was founded |
| `payment_methods` | Accepted payments, for example `AMEX`, `VISA`, `CASH` |
| `languages_spoken` | Languages spoken |
| `price_range` | Price range, for example `$$` or `$35-$300` |
| `products`, `services`, `specialties`, `cuisines` | What the business sells or offers |
| `brands`, `brands_serviced` | Brands sold or serviced |
| `insurance_accepted` | Accepted insurance plans |
| `amenities`, `business_features`, `parking` | Amenities, features like Take Out, and parking options |
| `ownership`, `service_area` | Ownership (for example Locally Owned) and cities served |
| `emergency_service`, `free_estimates`, `licensed`, `insured`, `wheelchair_accessible` | Yes/no attributes |
| `accreditations`, `associations` | Accreditations and professional associations. Details only |
| `bbb_grade`, `bbb_accredited`, `bbb_url` | Better Business Bureau grade, accreditation and profile |
| `special_offer`, `discounts`, `business_history` | Offers and business history |
| `is_claimed`, `has_coupon`, `listing_type` | Claimed by the owner, has a coupon, advertiser or free listing |
| `vertical`, `category_path`, `primary_collection` | Industry and category hierarchy |
| `other_attributes` | Other attributes that depend on the category, for example `towing` for auto repair or `good_for_kids` for restaurants |

#### 📸 Photos and social stats

| Field | Description |
|---|---|
| `image_url` | Main image |
| `images` | Image links. With details: all business photos |
| `photo_count`, `cover_image_url` | Total number of photos and the cover image. Details only |
| `facebook_likes`, `facebook_checkins` | Facebook stats |

#### 🦉 TripAdvisor

Yellowpages shows TripAdvisor data for many restaurants and hotels. When it is there, you get it too.

| Field | Description |
|---|---|
| `tripadvisor_rating`, `tripadvisor_review_count`, `tripadvisor_url` | TripAdvisor rating, number of reviews and page link |
| `tripadvisor_photo_count`, `tripadvisor_photos_url` | Number of TripAdvisor photos and photos page |
| `tripadvisor_category_ratings`, `tripadvisor_good_for` | Ratings per aspect and "good for" tags |
| `tripadvisor_room_count`, `tripadvisor_price_min`, `tripadvisor_price_max` | Rooms and price range (hotels) |
| `tripadvisor_reviews`, `tripadvisor_photos` | Latest TripAdvisor reviews with owner responses, and photo links. Details only |

#### 🔎 Search context

| Field | Description |
|---|---|
| `search_query`, `search_location` | Keyword and location the business was found with |
| `search_page`, `search_position` | Results page and position in the results |
| `details_enriched` | `true` when full details were added |
| `input` | Listing URL or ID as you provided it. Listings mode only |
| `scraped_at` | Scrape time, UTC |

"Details only" fields are filled in Listings mode, and in Search mode when `enrichDetails` is on.

### 📋 Example output

Search mode, shortened:

```json
{
  "listing_id": "4170712",
  "listing_url": "https://www.yellowpages.com/newark-de/mip/honig-gordon-c-dmd-4170712",
  "name": "Honig Gordon C DMD",
  "primary_category": "Dentists",
  "categories": ["Dentists", "Orthodontists"],
  "phone": "(302) 489-4058",
  "phone_international": "+13024894058",
  "website": "https://honigorthodontics.com",
  "full_address": "2707 Kirkwood Highway, Newark, DE 19711",
  "latitude": 39.709347,
  "longitude": -75.6819,
  "average_rating": 5.0,
  "rating_count": 2,
  "year_established": 1985,
  "languages_spoken": ["English", "Spanish"],
  "payment_methods": ["AMEX", "DISCOVER", "VISA", "FINANCING AVAILABLE", "MASTERCARD"],
  "hours_monday": "08:00-17:00",
  "hours_friday": "08:00-13:00",
  "is_claimed": true,
  "products": ["Fluoride Treatments", "Dentures", "Braces", "Dental Implants"],
  "insurance_accepted": ["Delta Dental Premier", "Delta Dental PPO"],
  "ownership": ["Locally Owned"],
  "social_networks": ["https://www.facebook.com/HonigOrtho/"],
  "free_estimates": true,
  "distance_miles": 4.22,
  "details_enriched": false,
  "search_query": "Dentist",
  "search_location": "Newark, DE",
  "search_page": 1,
  "search_position": 1
}
```

Listings mode (full business details), shortened:

```json
{
  "listing_id": "6663016",
  "listing_url": "https://www.yellowpages.com/miami-fl/mip/andiamo-6663016",
  "name": "Andiamo!",
  "primary_category": "Pizza",
  "phone": "(305) 762-5751",
  "email": "info@andiamopizza.com",
  "fax_numbers": ["(305) 762-7770"],
  "website": "http://www.andiamopizza.com/pizza_menu.htm",
  "social_networks": ["https://instagram.com/andiamopizzamiami", "https://www.yelp.com/biz/andiamo-miami-2"],
  "full_address": "5600 Biscayne Blvd, Miami, FL 33137",
  "neighborhoods": ["Upper Eastside", "Bayshore"],
  "also_known_as": ["Andiamo! Brick Oven Pizza"],
  "average_rating_precise": 4.71,
  "review_count": 7,
  "rating_5_stars": 5,
  "rating_4_stars": 2,
  "rating_attribute_scores": { "Atmosphere": 5.0, "Food": 5.0, "Service": 5.0 },
  "reviews": [
    {
      "rating": 5,
      "title": "Yummy!!!",
      "text": "This pizza was awesome!! You gotta try the breadsticks too!! I'd definitively eat here again!",
      "date": "2013-07-29",
      "author_name": "Alex B.",
      "author_review_count": 79
    }
  ],
  "cuisines": ["Pizza", "Italian"],
  "hours_text": "Mon - Thu 11:30 am - 10:00 pm, Fri 11:00 am - 11:00 pm, Sat 11:30 am - 11:00 pm, Sun 11:30 am - 10:00 pm",
  "tripadvisor_rating": 4.5,
  "tripadvisor_review_count": 291,
  "tripadvisor_good_for": ["Large groups", "Dining on a budget"],
  "input": "https://www.yellowpages.com/miami-fl/mip/andiamo-6663016"
}
```

### 🐍 Use the Yellowpages scraper via API

You can run this Yellowpages scraper from your own code with the [Apify API](https://docs.apify.com/api/v2). Get your API token in [Apify Console > Settings > API & Integrations](https://console.apify.com/settings/integrations).

**Python**

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")

run = client.actor("mof1re/yellowpages-scraper").call(
    run_input={
        "mode": "SEARCH",
        "searchQueries": ["Plumber"],
        "location": "Austin, TX",
        "maxPages": 2,
    }
)

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["name"], item["phone"], item["website"])
```

**JavaScript**

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

const client = new ApifyClient({ token: '<YOUR_API_TOKEN>' });

const run = await client.actor('mof1re/yellowpages-scraper').call({
    mode: 'SEARCH',
    searchQueries: ['Pizza', 'Hotel'],
    location: 'Miami, FL',
    enrichDetails: true,
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => console.log(item.name, item.email, item.average_rating));
```

**cURL** (runs the scraper and returns the search results in one call)

```bash
curl -X POST "https://api.apify.com/v2/acts/mof1re~yellowpages-scraper/run-sync-get-dataset-items?token=<YOUR_API_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"mode": "SEARCH", "searchQueries": ["Dentist"], "location": "Newark, DE"}'
```

### 🤖 Use with AI agents (MCP)

Connect the Yellowpages scraper to Claude, ChatGPT, Cursor, VS Code or any other MCP client through the [Apify MCP server](https://mcp.apify.com). Your AI agent can then find local businesses on its own, for example: *"Find 50 roofing companies in Denver, CO with their phone numbers and websites."*

**Hosted server (recommended).** Add this server URL to your MCP client:

```
https://mcp.apify.com?tools=mof1re/yellowpages-scraper
```

On first connection your browser opens so you can sign in to Apify. If your client does not support sign-in, add your API token as a header:

```json
{
  "mcpServers": {
    "apify": {
      "url": "https://mcp.apify.com?tools=mof1re/yellowpages-scraper",
      "headers": {
        "Authorization": "Bearer <YOUR_API_TOKEN>"
      }
    }
  }
}
```

**Local server.** Runs on your machine with `npx`:

```json
{
  "mcpServers": {
    "apify": {
      "command": "npx",
      "args": ["-y", "@apify/actors-mcp-server", "--tools", "mof1re/yellowpages-scraper"],
      "env": {
        "APIFY_TOKEN": "<YOUR_API_TOKEN>"
      }
    }
  }
}
```

The scraper shows up in your agent as the tool `mof1re--yellowpages-scraper`. Ready-made configs for each client are in the [Apify MCP configurator](https://mcp.apify.com).

### ❓ FAQ

**Is this the same as Yellow Pages?** Yes. The data comes from yellowpages.com, the US Yellow Pages business directory.

**Can I get business emails?** Yes. Emails come with the full business details, so use Listings mode or turn on `enrichDetails` in Search mode. Many businesses publish an email, but not all of them do.

**How many results can I get?** Each page has 50 businesses. Set `maxPages` as high as you need, and the scraper stops on its own when a search has no more results.

**How do I find a listing ID?** It is the number at the end of the listing link. In `https://www.yellowpages.com/van-nuys-ca/mip/contractors-inc-541885348` the ID is `541885348`. You can also paste the whole link.

**What is the difference between search results and full details?** Search results already include contacts, address, hours, ratings and attributes. Full details add emails, extra phones and fax, all photos, up to 50 reviews, star breakdown, neighborhoods and TripAdvisor reviews.

**Do I need my own proxies?** No, they are built in.

**How fresh is the data?** Every run reads Yellowpages live, so you get what the site shows at that moment.

### 💳 Pricing

Pay per result. You are charged for businesses saved to the dataset, not for requests or pages. There are three result types, priced separately:

- **Search result:** a business from Search mode.
- **Search result with details:** a business from Search mode with `enrichDetails` on. Each business is opened individually to collect its details.
- **Business details:** a business from Listings mode.

See the Pricing tab for current prices.

### ⚠️ Limits

| | Free Apify plan | Paid Apify plan |
|---|---|---|
| Keyword searches | 5 per day | Unlimited |
| Pages per keyword | 1 (50 businesses) | Unlimited |
| Enrich with details | Not available | Available |
| Listings mode | 10 listings per day, 1 per run | Unlimited |

- If a free account sends more keywords than are left for the day, the scraper uses the first ones and tells you in the log and run status which keywords were skipped.
- Daily limits reset at midnight UTC.
- If you set a maximum cost per run, the scraper stops when it is reached and keeps everything collected so far.
- The data is what yellowpages.com shows publicly at the time of the run.

### 🔗 See also

More scrapers by the same author, see [all actors](https://apify.com/mof1re):

- [Yelp Scraper - Business, Reviews, Photos & Videos](https://apify.com/mof1re/yelp-scraper-pro-all-in-one)
- [Tripadvisor Reviews Scraper](https://apify.com/mof1re/tripadvisor-reviews-scraper-browserless)
- [Free Tripadvisor Reviews Scraper](https://apify.com/mof1re/free-tripadvisor-reviews-scraper)
- [Trustpilot Reviews Scraper](https://apify.com/mof1re/trustpilot-reviews-scraper-bypass-limit)
- [Booking.com Reviews Scraper](https://apify.com/mof1re/booking-reviews-scraper-browserless)
- [Free Booking.com Reviews Scraper](https://apify.com/mof1re/free-booking-reviews-scraper)
- [Airbnb Reviews Scraper](https://apify.com/mof1re/airbnb-reviews-scraper-browserless)
- [Expedia Reviews Scraper](https://apify.com/mof1re/expedia-reviews-scraper)
- [Zillow Listings Scraper](https://apify.com/mof1re/zillow-scraper)
- [Walmart Products Scraper](https://apify.com/mof1re/walmart-products-scraper)
- [Walmart Reviews Scraper](https://apify.com/mof1re/walmart-reviews-scraper)
- [Ulta Reviews Scraper](https://apify.com/mof1re/ulta-reviews-scraper)
- [Bunnings Products Scraper](https://apify.com/mof1re/bunnings-scraper)
- [Woolworths NZ Scraper](https://apify.com/mof1re/woolworths-new-zealand-scraper)
- [Arbeitsagentur Job Ads Scraper](https://apify.com/mof1re/arbeitsagentur-scraper)
- [YouTube Transcript Scraper](https://apify.com/mof1re/youtube-transcript-scraper-ai-translatiton)
- [DeepL Bulk Text Translator](https://apify.com/mof1re/deepl-bulk-text-translator)

# Actor input Schema

## `mode` (type: `string`):

Search: find businesses by keyword and location. Listings: get full business details by listing URL or ID.<br><br>Free plan limits: 5 keyword searches per day with 1 page (50 listings) per keyword and no details enrichment. Listings mode: 10 listings per day, 1 listing per run. Paid Apify plans have no limits.

## `searchQueries` (type: `array`):

What to search for, for example Dentist, Plumber or Pizza. Each keyword is a separate search. Free plan: the first 5 keywords are used.

## `location` (type: `string`):

City and state (Newark, DE) or a ZIP code (90217).

## `maxPages` (type: `integer`):

How many pages to get for each keyword. One page has 50 listings. The search stops earlier when there are no more results. Free plan: 1 page.

## `sort` (type: `string`):

Order of search results.

## `includeClosed` (type: `boolean`):

Also return businesses that are currently closed.

## `enrichDetails` (type: `boolean`):

Adds full business details to every listing found: emails, additional phones and fax, all photos, up to 50 reviews and rating breakdown. Each listing is opened individually to collect its details, and the result is saved in the same row. Available on paid plans.

## `listings` (type: `array`):

Yellowpages listing URLs (https://www.yellowpages.com/van-nuys-ca/mip/contractors-inc-541885348) or listing IDs (541885348). One per line. Free plan: 1 listing per run.

## Actor input object example

```json
{
  "mode": "SEARCH",
  "searchQueries": [
    "Dentist"
  ],
  "location": "Newark, DE",
  "maxPages": 1,
  "sort": "relevance",
  "includeClosed": true,
  "enrichDetails": false,
  "listings": [
    "https://www.yellowpages.com/van-nuys-ca/mip/contractors-inc-541885348",
    "541885348"
  ]
}
```

# Actor output Schema

## `searchResults` (type: `string`):

One row per business found by keyword search (Search mode).

## `listings` (type: `string`):

One row per listing URL or ID (Listings mode).

# 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 = {
    "searchQueries": [
        "Dentist"
    ],
    "location": "Newark, DE",
    "listings": [
        "https://www.yellowpages.com/van-nuys-ca/mip/contractors-inc-541885348",
        "541885348"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("mof1re/yellowpages-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 = {
    "searchQueries": ["Dentist"],
    "location": "Newark, DE",
    "listings": [
        "https://www.yellowpages.com/van-nuys-ca/mip/contractors-inc-541885348",
        "541885348",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("mof1re/yellowpages-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 '{
  "searchQueries": [
    "Dentist"
  ],
  "location": "Newark, DE",
  "listings": [
    "https://www.yellowpages.com/van-nuys-ca/mip/contractors-inc-541885348",
    "541885348"
  ]
}' |
apify call mof1re/yellowpages-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,mof1re/yellowpages-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/FjBJVjc9hvhJjLczb/builds/B6Xaf64u5skmf3rYG/openapi.json
