# Yelp Reviews Scraper ⭐ (`shahidirfan/yelp-reviews-scraper`) Actor

Collect Yelp reviews and business ratings at scale for market research and reputation monitoring. Extract customer feedback, star ratings, review dates, and business details to analyze sentiment, track competitors, and uncover trends. Export structured data for analysis.

- **URL**: https://apify.com/shahidirfan/yelp-reviews-scraper.md
- **Developed by:** [Shahid Irfan](https://apify.com/shahidirfan) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

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

### What does Yelp Reviews Scraper do?

Yelp Reviews Scraper collects public reviews from any Yelp business page and returns them as a clean, structured dataset. Paste one or more Yelp business URLs, choose how many reviews you need and how they should be sorted, and the Actor saves ratings, full review text, dates, reviewer details, photos, reactions and owner replies.

It works with the exact URL from your browser, including links that end in `#reviews`, links with tracking parameters, and regional Yelp domains such as `yelp.ca`. Several businesses can be processed in the same run.

### Why use Yelp Reviews Scraper?

- **No manual copying** - Turn many Yelp reviews into a spreadsheet or database without opening each review by hand.
- **Decision-ready fields** - Every row contains the rating, review text, date, reviewer history, business rating and review count, so sentiment work can start immediately.
- **Owner replies included** - Track how businesses respond to criticism, not only what customers wrote.
- **Repeatable monitoring** - Schedule the Actor daily or weekly to watch rating changes, new complaints and review velocity.
- **Self-healing lookups** - When Yelp changes the identifiers its pages use, the Actor reloads them and keeps the run going.
- **Export anywhere** - Download as JSON, CSV, Excel or XML, or read the dataset through the Apify API.
- **Simple input** - One URL field and a few optional controls. No account, login or Yelp API key is required.

### What data can you extract from Yelp?

| Field group        | What you get                                                                                    |
| ------------------ | ----------------------------------------------------------------------------------------------- |
| Review             | Review ID, star rating, full text, language, publish date                                       |
| Reviewer           | Display name, profile URL, location, review count, friend count, profile photo, elite year      |
| Business           | Business ID, alias, name, page URL, overall rating, total review count, categories, city, state |
| Engagement         | Helpful, Thanks, Love this and Oh no reaction counts, check-in count, first review flag         |
| Media              | Review photo URLs                                                                               |
| Owner response     | Reply text, reply date, reply author                                                            |
| Verification flags | Paid through Yelp, reservation placed                                                           |

### How to use Yelp Reviews Scraper

1. Open the Actor in Apify Console.
2. Paste one or more Yelp business URLs into `startUrls`, for example `https://www.yelp.com/biz/mcgrath-elmhurst-toyota-elmhurst-2#reviews`.
3. Set `maxReviews` to the number of reviews you want per business.
4. Pick a `sortBy` order. The default, `relevance`, follows Yelp's own ranking.
5. Run the Actor and open the dataset preview.
6. Download the results or connect the dataset to your reporting tools.

### Input Parameters

| Parameter            | Type             | Required              | Default                       | Description                                                                                                                                                   |
| -------------------- | ---------------- | --------------------- | ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `startUrls`          | Array of strings | Yes, for a useful run | One example Yelp business URL | Yelp business pages to scrape. Accepts a canonical URL, a URL with `#reviews`, a URL with query parameters, a regional Yelp domain, or a bare business alias. |
| `maxReviews`         | Integer          | No                    | `20`                          | Maximum number of reviews saved for each business. Leave empty to collect every available review.                                                             |
| `sortBy`             | String           | No                    | `relevance`                   | Review order. Options: `relevance`, `newest`, `oldest`, `highest_rated`, `lowest_rated`.                                                                      |
| `proxyConfiguration` | Object           | No                    | No proxy                      | Optional Apify Proxy settings for high-volume runs. Public reviews usually work without a proxy.                                                              |

### Output Data

| Field                  | Type    | Description                                                       |
| ---------------------- | ------- | ----------------------------------------------------------------- |
| `reviewId`             | String  | Stable Yelp review identifier. Use it to deduplicate repeat runs. |
| `businessId`           | String  | Yelp business identifier.                                         |
| `businessAlias`        | String  | Business alias used in the Yelp URL.                              |
| `businessName`         | String  | Business display name.                                            |
| `businessUrl`          | String  | Canonical Yelp business page URL.                                 |
| `businessRating`       | Number  | Overall business rating at run time.                              |
| `businessReviewCount`  | Integer | Total number of reviews for the business.                         |
| `businessCategories`   | Array   | Business categories as shown on Yelp.                             |
| `businessCity`         | String  | Business city.                                                    |
| `businessState`        | String  | Business state or region code.                                    |
| `rating`               | Integer | Review star rating from 1 to 5.                                   |
| `text`                 | String  | Full review text.                                                 |
| `language`             | String  | Review language code.                                             |
| `createdAt`            | String  | Review date with the business timezone offset.                    |
| `reviewerName`         | String  | Reviewer display name.                                            |
| `reviewerId`           | String  | Reviewer profile identifier.                                      |
| `reviewerUrl`          | String  | Reviewer Yelp profile URL.                                        |
| `reviewerLocation`     | String  | Reviewer location when published.                                 |
| `reviewerReviewCount`  | Integer | Number of reviews the reviewer has written.                       |
| `reviewerFriendCount`  | Integer | Number of Yelp friends.                                           |
| `reviewerPhotoUrl`     | String  | Reviewer profile photo URL.                                       |
| `reviewerEliteYear`    | String  | Elite badge year when the reviewer has one.                       |
| `photos`               | Array   | Photo URLs attached to the review.                                |
| `helpfulCount`         | Integer | Helpful reactions on the review.                                  |
| `thanksCount`          | Integer | Thanks reactions on the review.                                   |
| `loveThisCount`        | Integer | Love this reactions on the review.                                |
| `ohNoCount`            | Integer | Oh no reactions on the review.                                    |
| `checkInCount`         | Integer | Check-ins attached to the review.                                 |
| `isFirstReviewer`      | Boolean | True when this is the reviewer's first review of the business.    |
| `hasPaidThroughYelp`   | Boolean | True when the reviewer paid through Yelp.                         |
| `hasPlacedReservation` | Boolean | True when the reviewer placed a reservation.                      |
| `ownerReplyText`       | String  | Public business reply text when present.                          |
| `ownerReplyCreatedAt`  | String  | Date of the business reply.                                       |
| `ownerReplyAuthor`     | String  | Name of the person who replied for the business.                  |

### Usage Examples

#### Scrape one business

Collect the 20 most relevant reviews from a single Yelp business page:

```json
{
    "startUrls": ["https://www.yelp.com/biz/mcgrath-elmhurst-toyota-elmhurst-2#reviews"],
    "maxReviews": 20,
    "sortBy": "relevance"
}
```

#### Scrape several businesses

Process two businesses in one run. The review limit applies to each business separately:

```json
{
    "startUrls": [
        "https://www.yelp.com/biz/mcgrath-elmhurst-toyota-elmhurst-2",
        "https://www.yelp.com/biz/chez-panisse-berkeley"
    ],
    "maxReviews": 100,
    "sortBy": "newest"
}
```

#### Monitor the newest reviews

Collect the 200 latest reviews and enable Apify Proxy for a larger recurring run:

```json
{
    "startUrls": ["https://www.yelp.ca/biz/chez-panisse-berkeley"],
    "maxReviews": 200,
    "sortBy": "newest",
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": ["RESIDENTIAL"]
    }
}
```

### Sample Output

One real review row from a local run:

```json
{
    "reviewId": "56ZCKAabWB-WCjFEY2wh1g",
    "businessId": "_GCdHSPxqgjGlJFHwea6sw",
    "businessAlias": "mcgrath-elmhurst-toyota-elmhurst-2",
    "businessName": "McGrath Elmhurst Toyota",
    "businessUrl": "https://www.yelp.com/biz/mcgrath-elmhurst-toyota-elmhurst-2",
    "businessRating": 3.1,
    "businessReviewCount": 322,
    "businessCategories": ["Car Dealers", "Auto Parts & Supplies", "Used Car Dealers"],
    "businessCity": "Elmhurst",
    "businessState": "IL",
    "rating": 5,
    "text": "Been servicing both my Toyotas here for years. I trust this dealership service dept. all the way. I do all the recommended maintenance required and my cars run flawlessly.",
    "language": "en",
    "createdAt": "2026-09-25T12:18:03-05:00",
    "reviewerName": "Dani B.",
    "reviewerId": "3FgfTBnVm9b4z0ND7LkQ3A",
    "reviewerUrl": "https://www.yelp.com/user_details?userid=3FgfTBnVm9b4z0ND7LkQ3A",
    "reviewerLocation": "Wheaton, IL",
    "reviewerReviewCount": 25,
    "reviewerFriendCount": 0,
    "reviewerPhotoUrl": "https://s3-media0.fl.yelpcdn.com/photo/otNezecP7rOfsqDxpo5xGg/60s.jpg",
    "reviewerEliteYear": null,
    "photos": [],
    "helpfulCount": 0,
    "thanksCount": 0,
    "loveThisCount": 0,
    "ohNoCount": 0,
    "checkInCount": 0,
    "isFirstReviewer": false,
    "hasPaidThroughYelp": false,
    "hasPlacedReservation": false,
    "ownerReplyText": null,
    "ownerReplyCreatedAt": null,
    "ownerReplyAuthor": null
}
```

### Tips for Best Results

- Use the business page URL, not a Yelp search results page. Search pages list businesses, not reviews.
- Keep the `#reviews` anchor if that is what your browser shows. It is handled correctly.
- Start with a small `maxReviews` while testing, then raise it for the full dataset.
- Use `sortBy: "newest"` for monitoring and `sortBy: "relevance"` for a representative sample.
- A review limit of 20 per business keeps runs short. Large limits mean more pages and more run time.
- Owner replies, photos and elite badges are published only on some reviews, so empty values are normal.
- Re-run on a schedule and deduplicate on `reviewId` to build a review history over time.
- If a run is blocked, add Apify Proxy with the residential group. Public reviews normally work without a proxy.

### Integrations

- **Google Sheets** - Send new reviews to a spreadsheet for tracking.
- **Webhooks** - Trigger downstream workflows after each run.
- **Make or Zapier** - Route reviews into CRM, support or alerting tools.
- **Apify API** - Read the dataset programmatically from your own application.
- **CSV and Excel** - Download a flat file for analysts and stakeholders.

### Frequently Asked Questions

#### Can I export Yelp reviews to CSV or Excel?

Yes. Apify datasets can be downloaded as CSV, Excel, JSON, XML and other formats, or read through the dataset API.

#### How many reviews can the Actor collect?

Every public review Yelp shows for the business. Set `maxReviews` per business, or leave it empty to collect all available reviews.

#### Does it collect owner replies?

Yes. When a business replies publicly, `ownerReplyText`, `ownerReplyCreatedAt` and `ownerReplyAuthor` are filled. Otherwise those fields are `null`.

#### Can I scrape several Yelp businesses in one run?

Yes. Add each business page to `startUrls`. Duplicate URLs are removed automatically, and `maxReviews` applies to each business.

#### Does it work with yelp.ca and other regional Yelp sites?

Yes. Regional Yelp domains are accepted, including `yelp.ca` and country subdomains. The business alias is what identifies the business.

#### Why are some reviewer fields empty?

Yelp does not publish every detail on every review. Photos, elite badges, reviewer locations and owner replies appear only when they exist.

#### Can I run this Actor on a schedule?

Yes. Schedule it hourly, daily or weekly in Apify Console. Use `newest` sorting for incremental monitoring and deduplicate on `reviewId`.

#### Do I need a Yelp account or API key?

No. The Actor reads public business pages; no Yelp login, developer account or API key is required.

#### What happens if I paste a Yelp search URL?

The run stops with a clear error that asks for a business page URL. Search result pages are not review sources.

#### Is it legal to scrape Yelp reviews?

Scraping public data can be legal, but you are responsible for complying with Yelp's terms, local privacy law and the rights of the people whose reviews you collect.

#### What happens when Yelp changes its site?

The Actor reloads the page identifiers it needs and retries the request automatically. If the run is blocked by Yelp, retry later or configure a proxy.

### Related Actors

- [Expedia Reviews Scraper](https://apify.com/shahidirfan/expedia-reviews-scraper) - Hotel guest reviews with stay dates, sentiment and management responses.
- [OpenTable Reviews Scraper](https://apify.com/shahidirfan/opentable-reviews-scraper) - Restaurant reviews with food, service, ambience and value scores.
- [TrustRadius Review Scraper](https://apify.com/shahidirfan/trustradius-review-scraper) - B2B software reviews with pros, cons and reviewer context.

### Support

For issues, feature requests or custom Actor work, use the Issues tab on the Actor page or contact the developer through Apify.

### Legal Notice

This Actor is designed for legitimate collection of publicly available review data. You are responsible for how you use the data and for complying with applicable laws, Yelp's terms of service and privacy rules. Do not republish personal information without consent.

# Actor input Schema

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

Yelp business pages to scrape. A URL with or without the #reviews anchor works, for example https://www.yelp.com/biz/mcgrath-elmhurst-toyota-elmhurst-2#reviews. A bare business alias also works.

## `maxReviews` (type: `integer`):

Maximum number of reviews to save for each business. Leave empty to collect every available review.

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

Order in which Yelp returns the reviews.

## `proxyConfiguration` (type: `object`):

Yelp may block repeated requests from a single IP. Use Apify Proxy for larger runs.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.yelp.com/biz/mcgrath-elmhurst-toyota-elmhurst-2"
  ],
  "maxReviews": 20,
  "sortBy": "relevance",
  "proxyConfiguration": {}
}
```

# Actor output Schema

## `overview` (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 = {
    "startUrls": [
        "https://www.yelp.com/biz/mcgrath-elmhurst-toyota-elmhurst-2"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("shahidirfan/yelp-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 = { "startUrls": ["https://www.yelp.com/biz/mcgrath-elmhurst-toyota-elmhurst-2"] }

# Run the Actor and wait for it to finish
run = client.actor("shahidirfan/yelp-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 '{
  "startUrls": [
    "https://www.yelp.com/biz/mcgrath-elmhurst-toyota-elmhurst-2"
  ]
}' |
apify call shahidirfan/yelp-reviews-scraper --silent --output-dataset

```

## MCP server setup

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