# Yelp Scraper | $1 per 1k | Emails, Phones & Rating Monitor (`solidrows/yelp-scraper`) Actor

Scrape Yelp businesses by keyword or category in any cities or ZIP codes: rating, review count, price, categories, address, hours. Optional phone, website, emails and social profiles from the business website. Past Yelp's 240-result limit. Rating and review monitoring. Never a silent empty run.

- **URL**: https://apify.com/solidrows/yelp-scraper.md
- **Developed by:** [SolidRows](https://apify.com/solidrows) (community)
- **Categories:** Lead generation, Travel
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 92.3% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.70 / 1,000 business scrapeds

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

## Yelp Scraper - Businesses, Leads, Hours & Ratings

Extract businesses from [Yelp](https://www.yelp.com) search results: name, star rating, review count, price range, categories, street address, neighborhood, city, opening hours, photos, business highlights and the review snippet Yelp shows in the results. Search by keyword or Yelp category in any number of cities, neighborhoods or ZIP codes, with Yelp's own filters (price, open now, sort by rating or review count, features). Turn on **business pages** to also get the business phone, website, ZIP code, coordinates, claimed flag, menu URL, amenities, review highlights and popular dishes.

> **Phone and website need business pages.** Yelp does not print them in search results. Without **Open business pages** (`includeDetails`) the `phone` and `website` fields are `null`. With it, each business costs $0.001 + $0.004 = **$0.005** ($5.00 per 1,000). Use **Only new businesses** on a schedule to get just the businesses that appeared since the last run.

### Why this scraper

| | This scraper | Other Yelp business scrapers on Apify Store |
|---|---|---|
| Price per 1,000 businesses from search | **$1.00** | $2.50-$5.00 |
| With business pages (phone, website…) | **$5.00** per 1,000 in total ($1.00 per 1,000 businesses + $4.00 per 1,000 business pages) | $2.50-$5.00 |
| Opening hours, photos, highlights without opening business pages | yes | usually need the business page |
| Filters as simple fields | price level, open now, sort by rating / review count, any Yelp feature (delivery, reservations, Wi-Fi…) | most have none; one has price, sort and features |
| Category-only searches | yes (`plumbing`, `dentists`…) | not offered as an input by the five most used ones |
| Only new businesses (monitoring) | yes | not for businesses (one has it for reviews) |
| Rating and review tracking | new reviews and rating change since the previous run, pay only for changed businesses | you compare exports yourself |
| Emails and social profiles | from the business's own website, charged only when found | a separate scraper and a second bill |
| Sponsored results | skipped by default, optional with a flag | varies |
| Full review texts | **not included** | several offer reviews |
| More than 240 results per search | optional: **Go past 240** reads the other sort orders and price levels of the same search; or split by ZIP codes or neighborhoods | one searches a grid of points automatically |

Compared on 14 November 2026 from the public Store pages of the five most used Yelp scrapers. If you need review texts, pick a review scraper: Yelp does not print reviews in the page itself, and this scraper only reads what a page contains.

### What you can do with it

- **Lead lists** of local businesses (restaurants, plumbers, dentists, salons…) for any list of cities or ZIP codes, with phone and website (business pages on).
- **New business alerts**: schedule a search with **Only new businesses**, optionally with the feature `hottest_new_opening` (Yelp's "Hot and New").
- **Reputation monitoring**: schedule a search with **Only new and changed businesses** and get a row whenever a business receives new reviews or its rating moves (`reviewCountChange`, `ratingChange`).
- **Outreach lists with email**: turn on **Add emails and social profiles** to get the contact email, Facebook, Instagram and LinkedIn of each business from its own website.
- **Competitor benchmarks**: sort by rating or review count and compare businesses in a neighborhood.
- **Unclaimed listings**: `isClaimed` shows which businesses have not claimed their Yelp page.
- **Local SEO and rank tracking**: `position` is the place among regular results for your keyword.
- **Maps and directories**: coordinates, hours, amenities, photos and menu URLs.

### How to use

1. Add **Search terms** (`pizza`, `plumbers`) and/or **Categories** (`plumbing`, `dentists`) and one or more **Locations** (`New York, NY`, `Chelsea, Manhattan, NY`, `94103`). Every term and category is searched in every location.
2. Or paste **Yelp URLs**: search result pages with any filters, or business pages (`yelp.com/biz/...`).
3. Optionally set filters, then **Max businesses**, and start the run.

Yelp shows at most 240 results per search. Turn on **Go past Yelp's 240 results per search** (`splitLargeSearches`) to also read a big search in Yelp's other sort orders and price levels; that usually adds a few hundred businesses, not every business in the area. To cover a big city completely, paste a list of ZIP codes or neighborhoods into **Locations**. Duplicates are removed automatically.

### Input

| Field | Type | Description |
|---|---|---|
| `searchTerms` | array | What to search for. Leave empty (and categories empty) to list top businesses of each location. |
| `categories` | array | Yelp category aliases for category-only searches: `plumbing`, `dentists`, `pizza`, `hair`, `autorepair`… (the `cflt=` value in a Yelp URL) |
| `locations` | array | City, neighborhood, address or ZIP code, as you type it on Yelp |
| `startUrls` | array | Yelp search URLs or business URLs. A business URL always opens the business page, so it costs both events ($0.005 per business) |
| `maxItems` | integer | Maximum businesses in total (default 100, 0 = no limit) |
| `maxItemsPerSearch` | integer | Cap per term/category + location (0 = none) |
| `splitLargeSearches` | boolean | Go past 240: when a search fills all 240 results and your limits ask for more, also read it sorted by rating and by review count (and recommended) and per price level, keeping only new businesses. Each extra order stops after two pages in a row with nothing new. Off by default |
| `sortBy` | string | `recommended`, `rating`, `review_count` |
| `priceLevels` | array | Any of `"1"`, `"2"`, `"3"`, `"4"` for `$` to `$$$$` |
| `openNow` | boolean | Only businesses open at the time of the run |
| `features` | array | Yelp feature codes: `RestaurantsDelivery`, `RestaurantsTakeOut`, `OnlineReservations`, `OutdoorSeating`, `WiFi.free`, `GoodForKids`, `DogsAllowed`, `WheelchairAccessible`, `Open24Hours`, `hottest_new_opening`… |
| `includeSponsored` | boolean | Also save sponsored results, marked `isSponsored` |
| `includeDetails` | boolean | Open each business page. **Required for `phone` and `website`**, also ZIP, coordinates, claimed flag, menu, amenities, review highlights. Adds $4.00 per 1,000 business pages |
| `includeContacts` | boolean | Open the website of each business and add `email`, `emails` and its Facebook, Instagram, LinkedIn, X, YouTube and TikTok links. Turns business pages on. Adds $2.00 per 1,000, only for businesses where something was found |
| `onlyNew` | boolean | Save only businesses not delivered by earlier runs |
| `trackChanges` | boolean | Remember rating and review count and add `changeType`, `ratingChange`, `reviewCountChange` and the previous values to every row |
| `onlyChanged` | boolean | Save and charge only new businesses and those whose rating or review count changed since the previous run |
| `monitorName` | string | Optional name of the monitoring memory |

#### Example: leads in several ZIP codes

```json
{
    "categories": ["plumbing"],
    "locations": ["94103", "94107", "94110", "94114"],
    "sortBy": "review_count",
    "includeDetails": true,
    "maxItems": 500
}
```

#### Example: filtered restaurant search

```json
{
    "searchTerms": ["sushi"],
    "locations": ["Chicago, IL"],
    "priceLevels": ["2", "3"],
    "openNow": true,
    "features": ["RestaurantsDelivery"],
    "sortBy": "rating",
    "maxItems": 100
}
```

#### Example: new businesses every week

```json
{
    "categories": ["restaurants"],
    "locations": ["Austin, TX"],
    "features": ["hottest_new_opening"],
    "onlyNew": true,
    "monitorName": "austin-new-restaurants"
}
```

### Output example

From search results (no business pages):

```json
{
    "type": "business",
    "id": "hqjCHBGnEj4nECnLJBvjQw",
    "alias": "ace-plumbing-and-rooter-san-francisco-13",
    "name": "Ace Plumbing & Rooter",
    "url": "https://www.yelp.com/biz/ace-plumbing-and-rooter-san-francisco-13",
    "rating": 4.7,
    "reviewCount": 1504,
    "priceRange": null,
    "categories": ["Plumbing", "Water Heater Installation/Repair", "Hydro-jetting"],
    "neighborhood": "SoMa",
    "city": "San Francisco",
    "serviceArea": "San Francisco",
    "hours": ["Mon: 7:00 AM - 9:00 PM", "Tue: 7:00 AM - 9:00 PM", "…"],
    "timezone": "America/Los_Angeles",
    "highlights": ["Free estimates", "Locally owned & operated"],
    "verifiedLicenses": [{ "trade": "C36 - Plumbing", "licenseNumber": "829071", "issuedBy": "CA CSLB", "verifiedDate": "2026-09-21" }],
    "isYelpGuaranteed": true,
    "responseTimeText": "20 mins",
    "quoteRequestsText": "738 locals recently requested a quote",
    "isSponsored": false,
    "imageUrl": "https://s3-media0.fl.yelpcdn.com/bphoto/YI1DDHasfDesTDK6PDmPLA/ls.jpg",
    "photoUrls": ["https://s3-media0.fl.yelpcdn.com/bphoto/YI1DDHasfDesTDK6PDmPLA/o.jpg"],
    "snippet": "Yelp review of Carlos & his professional friendly honest quality plumbing services…",
    "query": "plumbing",
    "location": "94110",
    "position": 1
}
```

Added by **business pages**:

```json
{
    "address": "413 8th Ave",
    "state": "NY",
    "postalCode": "10001",
    "country": "US",
    "latitude": 40.750178,
    "longitude": -73.995274,
    "phone": "(212) 594-8939",
    "website": "http://www.nypizzasuprema.com",
    "menuUrl": "https://www.yelp.com/menu/ny-pizza-suprema-new-york",
    "isClosed": false,
    "isClaimed": true,
    "isOpenNow": true,
    "summary": "Pizzeria near Penn Station serving classic NYC slices with crispy crust.",
    "yearEstablished": "1964",
    "amenities": ["Offers delivery", "Offers take-out", "Wheelchair accessible", "Good for kids"],
    "amenitiesUnavailable": ["Takes reservations", "Outdoor seating"],
    "reviewHighlights": [{ "text": "Place is across the street from Penn station and was perfectly located…", "phrase": "Penn station", "reviewCount": 288 }],
    "popularItems": [{ "name": "White Pizza With Garlic", "price": "$35.82", "reviewCount": 112, "photoCount": 53 }],
    "photoCount": 2712
}
```

Fields that need a business page are `null` without it. Every field is described in the **Output** tab, which also has ready-made views for leads and for hours and amenities.

### Pricing

| Event | Price | When |
|---|---|---|
| `business` | **$1.00 per 1,000** | every business saved |
| `business-details` | **$4.00 per 1,000** | every business page opened and saved (phone, website, coordinates, amenities and the rest) |
| `website-contacts` | **free until 8 December 2026**, then $2.00 per 1,000 | only with website contacts on, and only when the website gave an email or a social profile |

- Search results only: **$1.00 per 1,000 businesses**. `phone` and `website` are empty in this mode.
- With **Open business pages** on: $1.00 + $4.00 = **$5.00 per 1,000 businesses** in total.
- A direct business URL (`yelp.com/biz/...`) in **Yelp URLs** always opens the business page, so it costs both events: $0.005 per business.
- If a business page cannot be opened, the business is saved from its search card and only the `business` event is charged.
- Website contacts are **free until 8 December 2026**. After that, with **Add emails and social profiles** on, a business with contacts found costs $0.001 + $0.004 + $0.002 = $0.007. A business with no website, or a website without an email and social links, costs $0.005.
- With **Only new and changed businesses** on, unchanged businesses are free and their business pages are not opened.

Subscription tiers get lower prices automatically. There is also Apify's standard start event of $0.00005 per run.

You pay per business saved. Rows that report an error are free, and so are businesses skipped by **Only new businesses**. If nothing could be saved because pages failed, the run ends as **failed**, not as an empty success, and no business is charged. A search Yelp really has no results for ends as a normal empty run. Set a maximum cost per run in the run options if you want a hard cap: the scraper stops cleanly when it is reached.

Yelp blocks ordinary scraping, so the Actor reads Yelp through the routes that answer at the moment: residential proxies first, Apify's Unblocker as the fallback. One search page gives up to 10 businesses; with business pages on, each business costs one more page load, which is why business pages are a separate event.

### Limits and notes

- **Emails and social profiles** come from the website the business itself lists on Yelp: the home page and, when it shows no email, up to two contact or about pages. About 6 in 10 small-business websites show an email this way. Emails behind contact forms, images or script protection are not read. Some websites refuse automated visitors; those businesses keep empty contact fields and are not charged for contacts. The data is business contact information published by the business; follow the email marketing rules of your country when you use it.

- **Rating and review tracking** compares with the previous run that used the same **Monitoring name** (or the same searches and filters). Yelp review texts are not available without login, so the scraper reports that new reviews appeared and how the rating moved, not the text of the reviews. Like **Only new businesses**, it reads every page of each search on every run.

- **Full reviews are not included.** Yelp loads review texts in the browser after the page opens, not in the page itself. You get the rating, the review count, the review snippet from the search results and, with business pages on, the review highlight sentences Yelp prints on the page.

- Yelp shows at most **240 results (24 pages) per search**. **Go past 240** reads the same search in the other sort orders and price levels, which overlap a lot: expect a few hundred more businesses (in a test, `restaurants` in New York gave 195 from the 240 results and reached 300 with the other orders), not every business in the area. Price levels only narrow restaurant-type searches. For full coverage split the search into several locations (neighborhoods, ZIP codes) or categories. With this option `position` is the place in the sort order or price level the business was found in (see `searchUrl`).

- **Search results do not carry the phone, website, ZIP code or coordinates.** Turn on business pages for those ($5.00 per 1,000 businesses in total instead of $1.00).

- `photoUrls` holds the photos Yelp put on the search card (one to a few), or about 40 photos with business pages on. Full galleries are not downloaded.

- For a term with no exact matches Yelp may still return loosely related businesses; the scraper saves what Yelp shows. An unknown location returns no results.

- Sponsored results are skipped unless you turn them on, and Yelp does not show them on every route, so a run may have none; `position` is the place among regular results and is empty for sponsored ones.

- The **Only new businesses** memory lives in the key-value store `yelp-scraper-state` in your account. Delete the store (or change **Monitoring name**) to start from scratch. Yelp has no "newest first" order (only recommended, rating and review count), so a new business can sit on any page: in this mode the scraper reads every page of the search (up to 24) on each run and cannot stop early at the first known business. You are charged only for the new businesses; pages with nothing new cost you nothing, but they make the run longer (each page takes 10-60 seconds). Use **Max businesses per search** or narrower searches to keep scheduled runs short.

- Typical speed: about 300 businesses per minute from search results, about 60 to 70 per minute with business pages. When Yelp tightens its protection the Actor falls back to the Unblocker and runs several times slower, but it still finishes or fails with a clear message.

- `amenities` are given in a short normalized form (for example "Wheelchair accessible", "Restaurants delivery"); category names follow Yelp's own list.

- Only business contact data is collected (business phone and website). Reviewer names, profiles and photos of people are not collected.

- If Yelp changes its layout or a page cannot be opened, the run writes a free error row; if nothing at all could be saved, the run ends as failed instead of an empty success.

### Feedback and support

- **Did it save you time?** A [rating on the Store page](https://apify.com/solidrows/yelp-scraper/reviews) helps other users find this Actor. It takes 10 seconds.
- **Something wrong or missing?** [Open an issue](https://apify.com/solidrows/yelp-scraper/issues) with the input you used. We answer within 48 hours and fix broken runs first.
- **Never a silent empty run.** If the site blocks us and nothing is scraped, the run fails with a clear message and no results are charged.

### FAQ

**Can I use Yelp filters (price, open now, features)?** Yes, as input fields. For anything else (map area, distance), set it on yelp.com, copy the URL of the results page and paste it into **Yelp URLs**.

**How do I find a category alias or a feature code?** Tick the category or filter on yelp.com and look at the address bar: `cflt=plumbing` is the category alias, `attrs=RestaurantsDelivery` is the feature code.

**Can I scrape one specific business?** Yes. Paste its `yelp.com/biz/...` URL; the business page is opened and all fields are filled. It is charged as one business plus one business page ($0.005).

**Why are `phone` and `website` empty?** They are only on the business page. Turn on **Open business pages**.

**Can I use it as a Yelp API alternative?** Yes. Start runs and read results through the Apify API, or connect the dataset to Google Sheets, Make, Zapier or a webhook.

**Does it work outside the US?** Yes, for any location Yelp covers, for example `London, UK` or `Toronto, ON`.

# Actor input Schema

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

What to search for on Yelp, for example "pizza", "plumbers" or "coffee". Each term is searched in every location below. Leave empty (and leave Categories empty) to list the top businesses of each location.

## `categories` (type: `array`):

Optional. Yelp category aliases for category-only searches, for example "plumbing", "dentists", "pizza", "hair", "autorepair", "realestateagents". This is the cflt=… value in a Yelp category URL. Each category is searched in every location and returns only businesses listed in that category (cleaner than a keyword search).

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

Where to search: a city, neighborhood, address or ZIP code, the same way you type it on Yelp, for example "New York, NY", "Chelsea, Manhattan, NY" or "94103". Paste a list of ZIP codes or neighborhoods to cover a big city: Yelp shows at most 240 businesses per search.

## `startUrls` (type: `array`):

Optional. Yelp search result URLs (yelp.com/search?find_desc=...\&find_loc=..., with any filters you set on Yelp, including the map area) or business page URLs (yelp.com/biz/...). Filters below are added to search URLs where the URL does not set them. A business page URL always opens the business page, so it is charged as a business plus a business page ($0.005).

## `maxItems` (type: `integer`):

Maximum number of businesses to save across all searches and URLs. Yelp shows at most 240 results (24 pages of 10) per search. Use 0 for no limit.

## `maxItemsPerSearch` (type: `integer`):

Optional cap for each term + location (or category + location, or search URL) separately. 0 means no separate cap.

## `splitLargeSearches` (type: `boolean`):

Yelp shows at most 240 results for one search. When a search fills all 240 results and your limits ask for more, also read it in Yelp's other sort orders (Recommended, Highest rated, Most reviewed) and price levels ($ to $$$$), keeping only businesses not seen yet. Each extra order stops after two pages in a row with nothing new. Usually gives a few hundred more businesses for a big search, not every business in the area. Off by default; for full coverage also split the area into ZIP codes or neighborhoods in Locations.

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

Order of the search results, the same as the "Sort" menu on Yelp.

## `priceLevels` (type: `array`):

Keep only businesses in these price ranges. Leave empty for any price.

## `openNow` (type: `boolean`):

Only businesses that are open at the moment of the run (Yelp's "Open Now" filter).

## `features` (type: `array`):

Yelp feature filters by their code, one per line. Examples: RestaurantsDelivery (offers delivery), RestaurantsTakeOut (takeout), OnlineReservations (reservations), OutdoorSeating, WiFi.free, GoodForKids, DogsAllowed, WheelchairAccessible, Open24Hours, hottest_new_opening (Hot and New), BusinessAcceptsCreditCards, BusinessParking.street. The code is the attrs=… value Yelp puts in the URL when you tick the filter.

## `includeSponsored` (type: `boolean`):

Also save businesses shown as ads ("Sponsored") on the search pages, marked with isSponsored = true. Off by default: sponsored results are often less relevant to the search.

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

Phone and website are NOT in Yelp search results: without this option they are empty. Turn it on to open each business page and add the business phone, website, full address with ZIP code, latitude and longitude, claimed flag, menu URL, amenities, review highlights, popular dishes, about text, up to ~40 photo URLs and whether the business is closed. Costs $4.00 per 1,000 business pages on top of $1.00 per 1,000 businesses ($5.00 per 1,000 in total). Slower: one extra page per business.

## `includeContacts` (type: `boolean`):

Opens the website each business lists on Yelp and adds its public contact email(s) and links to its Facebook, Instagram, LinkedIn, X, YouTube and TikTok profiles. Reads the home page and, when it shows no email, up to two contact or about pages. Turns on business pages automatically (the website address is only there). Free until 8 December 2026; after that $2.00 per 1,000 businesses on top, charged only for businesses where an email or a social profile was found. Businesses without a website, or with a website that shows no contacts, are not charged for this.

## `onlyNew` (type: `boolean`):

For scheduled runs. The scraper remembers the businesses it already delivered in a named key-value store in your account and saves only businesses it has not seen before, so you pay only for new ones. The first run saves everything. Yelp has no "newest first" order, so every run reads all pages of each search (up to 24); pages with nothing new are free but take time. Combine with the feature hottest_new_opening to watch for new openings.

## `trackChanges` (type: `boolean`):

For scheduled runs. The scraper remembers the rating and the number of reviews of every business it delivered (in a key-value store in your account). On the next run every row shows changeType (new, changed or unchanged), the previous rating and review count, and the change: reviewCountChange = 3 means three new reviews since the previous run.

## `onlyChanged` (type: `boolean`):

Save and pay only for businesses that are new or whose rating or review count changed since the previous run. Unchanged businesses are skipped for free and their business pages are not opened. The first run saves everything. Turns on tracking automatically and replaces "Only new businesses".

## `monitorName` (type: `string`):

Optional name of the memory used by "Only new businesses" and by rating and review tracking, e.g. "nyc-pizza-watch". Runs with the same name share one memory. Leave empty to keep a separate memory for each distinct set of terms, locations and filters.

## Actor input object example

```json
{
  "searchTerms": [
    "pizza"
  ],
  "categories": [],
  "locations": [
    "New York, NY"
  ],
  "startUrls": [],
  "maxItems": 20,
  "maxItemsPerSearch": 0,
  "splitLargeSearches": false,
  "sortBy": "recommended",
  "priceLevels": [],
  "openNow": false,
  "features": [],
  "includeSponsored": false,
  "includeDetails": false,
  "includeContacts": false,
  "onlyNew": false,
  "trackChanges": false,
  "onlyChanged": false,
  "monitorName": ""
}
```

# Actor output Schema

## `results` (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": [
        "pizza"
    ],
    "locations": [
        "New York, NY"
    ],
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("solidrows/yelp-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": ["pizza"],
    "locations": ["New York, NY"],
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("solidrows/yelp-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": [
    "pizza"
  ],
  "locations": [
    "New York, NY"
  ],
  "maxItems": 20
}' |
apify call solidrows/yelp-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,solidrows/yelp-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/06TWo0fO2q8g0dsOy/builds/IRHcLiBNajcmqsWxd/openapi.json
