# Yelp Business and Reviews Scraper (`kingly_contest_7cb/yelp-business-reviews-scraper`) Actor

- **URL**: https://apify.com/kingly_contest_7cb/yelp-business-reviews-scraper.md
- **Developed by:** [Carina Hatton](https://apify.com/kingly_contest_7cb) (community)
- **Categories:** Lead generation, Travel, E-commerce
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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 Business and Reviews Scraper

Scrape Yelp businesses **and** their reviews in one run. For every business you get the name, phone, full address, latitude/longitude, opening hours, website, claimed status, amenities, categories, price range and photo URLs. For every review you get the full text, star rating, date, reviewer name and location, and the owner's public reply. You can also have the Actor visit each business's own website to find **emails, social profile links and extra phone numbers**.

### What you can do with it

- Build local lead lists (plumbers in Denver, dentists in 78704, ...) with phone, website and, optionally, email.
- Monitor reviews for your own or your clients' businesses, including whether the owner replied.
- Research competitors: ratings, review volume, amenities, hours and price range.
- Collect review text for sentiment analysis.

### How it works

The Actor reads the structured data Yelp embeds in its own pages and its review feed, not the visual layout, so fields like phone, address and hours do not depend on page styling. Requests go through Apify's anti-bot proxy and are retried with fresh connections when Yelp blocks or errors.

- If one business fails after all retries, the run carries on with the rest. The failure is listed in the **RUN_SUMMARY** record. **You are not charged for anything that was not saved.**
- If you set a maximum cost for the run, the Actor stops cleanly when it reaches it and keeps everything it has already collected.

### Input

You can search, give direct URLs, or do both.

| Field | What it does | Default |
|---|---|---|
| `searchTerms` | What to search for, e.g. `pizza`, `plumbers` | – |
| `locations` | Where to search, e.g. `Austin, TX`, `10001`. Every term is searched in every location. | – |
| `startUrls` | Yelp business URLs (`/biz/...`) or Yelp search URLs (`/search?...`) | – |
| `maxBusinesses` | Total businesses for the whole run | 10 |
| `maxReviewsPerBusiness` | Reviews per business (0 = no reviews) | 5 |
| `reviewsSort` | `newest`, `oldest`, `relevance` (Yelp sort), `highest`, `lowest`, `elites` | newest |
| `reviewsLanguage` | Language code of the reviews | en |
| `maxPhotosPerBusiness` | Full-size photo URLs per business | 10 |
| `enrichWebsite` | Visit the business website for emails and social links | false |

#### Example: search

```json
{
  "searchTerms": ["pizza"],
  "locations": ["Austin, TX"],
  "maxBusinesses": 3,
  "maxReviewsPerBusiness": 5,
  "reviewsSort": "highest",
  "enrichWebsite": true
}
```

#### Example: direct URLs

```json
{
  "startUrls": [
    { "url": "https://www.yelp.com/biz/home-slice-pizza-austin" },
    { "url": "https://www.yelp.com/biz/prince-street-pizza-new-york-2" }
  ],
  "maxBusinesses": 2,
  "maxReviewsPerBusiness": 12,
  "reviewsSort": "newest"
}
```

### Output

Business rows and review rows go into the same dataset. Tell them apart with the `type` field. In the Output tab, the **Businesses** and **Reviews** views show each kind separately. Review rows carry `bizId`, `businessAlias` and `businessUrl` so you can join them back to their business.

#### Business (real output from a test run, trimmed: 2 of 30+ photos, 2 of 7 days, 3 of 40 amenities)

```json
{
  "type": "business",
  "bizId": "1Eq16r_MSnvPsnIykBdy9w",
  "alias": "home-slice-pizza-austin",
  "name": "Home Slice Pizza",
  "url": "https://www.yelp.com/biz/home-slice-pizza-austin",
  "rating": 4.4,
  "reviewCount": 4964,
  "categories": [
    "Pizza",
    "Sandwiches"
  ],
  "categoryAliases": [
    "pizza",
    "sandwiches"
  ],
  "priceRange": "$$",
  "phone": "(512) 444-7437",
  "address": {
    "street": "1415 S Congress St",
    "city": "Austin",
    "region": "TX",
    "postalCode": "78704",
    "country": "US",
    "formatted": "1415 S Congress St, Austin, TX 78704"
  },
  "neighborhoods": [
    "SoCo (S. Congress Ave.)",
    "78704 (South Austin)"
  ],
  "latitude": 30.249225,
  "longitude": -97.749553,
  "timezone": "America/Chicago",
  "hours": [
    {
      "day": "Mon",
      "hours": [
        "11:00 AM - 11:00 PM"
      ],
      "hasSpecialHours": false
    },
    {
      "day": "Tue",
      "hours": [
        "11:00 AM - 11:00 PM"
      ],
      "hasSpecialHours": false
    }
  ],
  "isOpenNow": false,
  "isClosed": false,
  "closedUntil": null,
  "website": "http://www.homeslicepizza.com/",
  "menuUrl": "http://homeslicepizza.com/menus.php",
  "isClaimed": true,
  "isYelpAdvertiser": false,
  "amenities": [
    {
      "name": "Offers take-out",
      "alias": "RestaurantsTakeOut",
      "active": true
    },
    {
      "name": "Takes reservations",
      "alias": "RestaurantsReservations",
      "active": false
    },
    {
      "name": "Offers delivery",
      "alias": "RestaurantsDelivery",
      "active": false
    }
  ],
  "photosCount": 2897,
  "photoUrls": [
    "https://s3-media0.fl.yelpcdn.com/bphoto/ksLMfyvHiIyF9ae1u2bv4A/o.jpg",
    "https://s3-media0.fl.yelpcdn.com/bphoto/04ynS7ogr1o7OfGJ26WW_g/o.jpg"
  ],
  "summary": "Vibrant pizzeria known for thin-crust slices and a lively patio.",
  "specialties": "Serving authentic NY-Style Pizza by the slice or pie to nice people like you.",
  "history": "Home Slice began in the fall of 2005 with the mission of creating an Austin Institution based on the original, unfailing goodness of authentic New York Style pi…",
  "yearEstablished": 2005,
  "ownerName": "Example O.",
  "ownerRole": "Business Owner",
  "searchTerm": "pizza",
  "searchLocation": "Austin, TX",
  "scrapedAt": "2026-10-31T14:16:15.830Z",
  "contacts": {
    "emails": [
      "donations@homeslicepizza.com",
      "slices@homeslicepizza.com"
    ],
    "phones": [
      "5127077437",
      "5124447437",
      "8328107437"
    ],
    "socials": {
      "facebook": "https://www.facebook.com/homeslicepizza",
      "twitter": "https://twitter.com/homeslicepizza",
      "instagram": "https://instagram.com/homeslicepizza"
    },
    "pagesChecked": [
      "https://homeslicepizza.com/",
      "https://homeslicepizza.com/about/"
    ]
  }
}
```

`contacts` is only present when `enrichWebsite` is on. It contains whatever the business's own website publishes. Its phone numbers are as written on the site and are not normalized.

#### Review (real output, anonymized)

```json
{
  "type": "review",
  "reviewId": "ExampleReviewId0000001",
  "bizId": "1Eq16r_MSnvPsnIykBdy9w",
  "businessAlias": "home-slice-pizza-austin",
  "businessName": "Home Slice Pizza",
  "businessUrl": "https://www.yelp.com/biz/home-slice-pizza-austin",
  "reviewUrl": "https://www.yelp.com/biz/home-slice-pizza-austin?hrid=ExampleReviewId0000001",
  "rating": 5,
  "text": "SERVICE: pick up\nAMBIANCE: pick up \nFLAVORS:\nHalf pepperoni and sausage (5/5)\nHalf custom - fried eggplant + anchovies (1/5) - subjective! I was experimenting and realize I don't like anchovies \nPORTIONS: filling and hearty\nPRICE: appropriate\nBONUS TIP: parking is LIMITED. Bring a getaway driver who…",
  "language": "en",
  "date": "2026-10-29T16:40:10Z",
  "localDate": "2026-10-29T11:40:10-05:00",
  "reviewerName": "Sample R.",
  "reviewerLocation": "Austin, TX",
  "reviewerId": "ExampleUserId000000001",
  "reviewerUrl": "https://www.yelp.com/user_details?userid=ExampleUserId000000001",
  "reviewerReviewCount": 415,
  "reviewerFriendCount": 272,
  "reviewerPhotoCount": 633,
  "reviewerEliteYear": "2026",
  "reviewerPhotoUrl": "https://s3-media0.fl.yelpcdn.com/photo/EXAMPLE/60s.jpg",
  "usefulCount": 0,
  "funnyCount": 0,
  "coolCount": 0,
  "photoUrls": [],
  "checkInCount": 0,
  "ownerReply": {
    "text": "Thank You [reviewer first name]",
    "date": "2026-10-28T12:10:24Z",
    "authorName": "Example O.",
    "authorRole": "CUSTOMER_SERVICE"
  },
  "sort": "relevance",
  "scrapedAt": "2026-10-31T14:16:12.243Z",
  "_note": "Reviewer identity anonymized for this README. The ownerReply shape is from a real reply on another business in the same test run, with the name redacted."
}
```

`ownerReply` is `null` when the business has not replied.

### Pricing

This Actor uses pay-per-event pricing. You pay only for what is saved to your dataset:

| Event | Price |
|---|---|
| Business saved | $0.005 |
| Review saved | $0.0005 |
| Website emails found (only with `enrichWebsite`, once per business, only if at least one email was found) | $0.003 |
| Actor start (Apify's standard start event, once per run per GB of memory; the default run uses 512 MB) | $0.00005 |

Platform usage (compute and proxy) is included in these prices.

Examples, using the prices above:

- 100 businesses, no reviews: 100 × $0.005 = **$0.50**
- 100 businesses with 10 reviews each: $0.50 + 1,000 × $0.0005 = **$1.00**
- 100 businesses with website enrichment, where 60 had an email: $0.50 + 60 × $0.003 = **$0.68**

Set **Maximum cost per run** in the run options to cap your spend. The Actor stops cleanly at that amount and keeps everything collected so far.

### Comparison with typical Yelp scrapers

This is a capability checklist, not a judgment of any specific tool.

| Capability | This Actor |
|---|---|
| Business details and reviews in one run | Yes |
| Full review text, reviewer info, owner replies | Yes |
| Review sort (newest, oldest, highest, lowest, elites, relevance) | Yes |
| Phone, full address, lat/lng, hours, claimed status, amenities | Yes |
| Emails and social links from the business website | Optional |
| Charged only for saved results; failed businesses are free | Yes |
| Hard spending cap respected mid-run | Yes |

### FAQ

**How many results can a search return?**
Yelp shows at most 240 results (24 pages) for one search. To get more, split the search into smaller areas (ZIP codes or neighborhoods) or use more specific terms. Businesses that appear in several searches are saved only once per run.

**How many reviews can I get per business?**
Set `maxReviewsPerBusiness` up to 5,000. Reviews are fetched in pages of up to 49. Yelp's own review count can differ slightly from what the feed returns, because Yelp hides some reviews from the feed (for example "not recommended" reviews).

**How many photos?**
The Actor returns the total photo count, plus full-size URLs for the photos embedded on the business page (up to about 30–40). It does not open the separate photo gallery pages.

**Are ads included in search results?**
No. Sponsored results are skipped.

**Do emails always show up?**
No. Emails come only from the business's own website: the home page plus up to two contact or about pages. Many small businesses publish only a contact form. You are charged for enrichment only when at least one email is found.

**Which Yelp sites are supported?**
The Actor was built and tested on yelp.com (US). Other Yelp country domains are not tested.

**What happens if Yelp blocks a request?**
It is retried automatically, up to 4 more times, each through a new proxy connection. If it still fails, that item is skipped, listed in RUN_SUMMARY, and not charged.

**Is it legal to scrape Yelp?**
This Actor collects only publicly visible data. Your use of that data, especially personal data such as reviewer names, must comply with applicable laws (for example GDPR or CCPA) and with Yelp's terms. If you are unsure, consult a lawyer.

### Run summary

Every run saves a **RUN_SUMMARY** record in its key-value store. It holds counts of businesses, reviews, emails, blocked responses and failures, plus the list of URLs that failed.

# Actor input Schema

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

What to search for on Yelp, e.g. "plumbers" or "pizza". Each term is searched in every location below.

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

Where to search, e.g. "Austin, TX" or a ZIP code. Required when you use search terms.

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

Yelp business URLs (https://www.yelp.com/biz/...) or Yelp search URLs (https://www.yelp.com/search?find_desc=...\&find_loc=...). Use this instead of, or together with, search terms.

## `maxBusinesses` (type: `integer`):

Maximum number of businesses for the whole run, across all searches and URLs. Yelp shows at most 240 results per search.

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

How many reviews to collect for each business. Set 0 to skip reviews.

## `reviewsSort` (type: `string`):

Order in which reviews are collected.

## `reviewsLanguage` (type: `string`):

Two-letter language code of reviews to collect, e.g. en, es, fr.

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

How many full-size photo URLs to include per business (taken from the business page, usually up to about 25-40 are available). The total photo count is always included.

## `enrichWebsite` (type: `boolean`):

Visit each business's own website (home page plus up to 2 contact/about pages) and extract emails, social profile links and extra phone numbers. Charged per business where at least one email is found.

## `maxConcurrency` (type: `integer`):

How many requests run in parallel.

## Actor input object example

```json
{
  "searchTerms": [
    "pizza"
  ],
  "locations": [
    "Austin, TX"
  ],
  "maxBusinesses": 3,
  "maxReviewsPerBusiness": 5,
  "reviewsSort": "newest",
  "reviewsLanguage": "en",
  "maxPhotosPerBusiness": 10,
  "enrichWebsite": false,
  "maxConcurrency": 5
}
```

# Actor output Schema

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

Dataset with business rows and review rows (see the type field)

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

Counts and any failed URLs for this run

# 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": [
        "Austin, TX"
    ],
    "maxBusinesses": 3,
    "maxReviewsPerBusiness": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("kingly_contest_7cb/yelp-business-reviews-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": ["Austin, TX"],
    "maxBusinesses": 3,
    "maxReviewsPerBusiness": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("kingly_contest_7cb/yelp-business-reviews-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": [
    "Austin, TX"
  ],
  "maxBusinesses": 3,
  "maxReviewsPerBusiness": 5
}' |
apify call kingly_contest_7cb/yelp-business-reviews-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kingly_contest_7cb/yelp-business-reviews-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/sReHH2qZn00egv4ib/builds/5KZSXdUUTCEqQNgMU/openapi.json
