# Yelp Scraper (`mina_safwat/yelp-scraper`) Actor

Scrapes Yelp reviews and business details from business or search links: rating, full text, date, language, author, photos, reactions and owner replies, plus name, rating, price, categories, address, phone, website and hours. No login.

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

## Pricing

from $0.50 / 1,000 rows

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

### What does Yelp Scraper do?

**Yelp Scraper** collects **Yelp business details and reviews** as structured data. For each business it saves the **rating, review counts by star and language, price range, categories, address, coordinates, phone, website, opening hours, amenities, photo count and claimed status**, and then its **reviews with full text, stars, date, language, reviewer, photos, reactions and the owner's reply**. Give it **business links** from any Yelp country site, or **Yelp search links** to collect every business a search finds.

Try it with the prefilled business: click **Start**, and the business and its 10 newest reviews arrive in about 20 seconds. Because it runs on the Apify platform, you also get API access, scheduled runs, integrations (Google Sheets, Make, Zapier, webhooks), run monitoring and automatic retries when [Yelp](https://www.yelp.com) is slow to answer.

### Why scrape Yelp?

- **Reputation monitoring**: collect the newest reviews of your own locations every day and react to complaints quickly.
- **Competitor research**: compare ratings, review volume and what customers praise or criticise at competing businesses.
- **Lead generation**: build lists of businesses in a category and city with phone numbers, websites and addresses.
- **Sentiment analysis and AI**: export thousands of reviews with stars and dates for NLP models, dashboards or LLM summaries.
- **Local market studies**: map businesses with their coordinates, price ranges, amenities and opening hours.

### How to scrape Yelp reviews and business data

1. Paste **Yelp business links** into **Yelp business or search links**, for example `https://www.yelp.com/biz/tartine-bakery-san-francisco`. To collect businesses from a search, search on yelp.com and paste the address bar.
2. Set **Max reviews per business** (10 to start with), or 0 for business details only.
3. Optionally pick the **sort order**, a **language**, **star ratings** or a **date** to read only recent reviews.
4. Click **Start**, then download the results as JSON, CSV, Excel or HTML when the run finishes.

### Input

Everything is set on the Input tab. In JSON, the input looks like this:

```json
{
    "startUrls": [
        "https://www.yelp.com/biz/tartine-bakery-san-francisco",
        "https://www.yelp.co.uk/biz/dishoom-london",
        "https://www.yelp.com/search?find_desc=pizza&find_loc=San+Francisco%2C+CA"
    ],
    "maxBusinessesPerSearch": 10,
    "maxReviewsPerBusiness": 100,
    "includeBusinessDetails": true,
    "reviewsSort": "newest",
    "reviewsLanguage": "all",
    "reviewsStarRatings": [],
    "reviewsNewerThan": "30 days"
}
```

| Field | What it does |
|---|---|
| `startUrls` | Yelp links, one per line. **Business pages** from any Yelp country site (`yelp.com`, `yelp.co.uk`, `yelp.ca`, `yelp.de`…); photo, menu and write-a-review links of a business work too, as does the bare alias (`tartine-bakery-san-francisco`) or business id. **Search pages** (`https://www.yelp.com/search?find_desc=…&find_loc=…`, with any filters you picked on Yelp). Plain strings and `{"url": "…"}` objects both work, with or without `https://`. |
| `maxBusinessesPerSearch` | For search links: how many businesses to save, in Yelp's order. Sponsored results are left out. Up to 240 (Yelp's own limit). Default: 10. |
| `maxReviewsPerBusiness` | Stops after this many reviews for each business. 0 saves only the business details. Default: 100. |
| `includeBusinessDetails` | Saves one business row per business. Default: on. |
| `reviewsSort` | `newest` (default), `oldest`, `highest`, `lowest` or `relevance` (Yelp's recommended order). Highest and lowest read every 5-star (or 1-star) review first, in every language, then the next star rating; within one star rating the newest come first. |
| `reviewsLanguage` | A two-letter code such as `en`, `fr` or `de` for reviews in that language only, or `all` (default) for every language, the most common first. |
| `reviewsStarRatings` | Only reviews with these star ratings, for example `["1", "2"]` for complaints. Empty means all. |
| `reviewsNewerThan` | Skips reviews posted before a date (`2026-09-01`) or age (`30 days`). With newest-first sorting the Actor stops reading a business as soon as it reaches older reviews; with oldest-first it reads newest first down to the date and saves the oldest of those reviews. It cannot be combined with `relevance`. |
| `proxyConfiguration` | Optional; leave it empty. The Actor connects directly and falls back to Apify Proxy by itself. |

### Output

The dataset has two kinds of rows, told apart by `type`: one `business` row per business and one `review` row per review. The Output tab shows them in two views, **Reviews** and **Businesses**. Here are real rows (long texts and lists shortened):

```json
{
    "type": "business",
    "id": "ri7UUYmx21AgSpRsf4-9QA",
    "alias": "tartine-bakery-san-francisco-3",
    "name": "Tartine Bakery",
    "url": "https://www.yelp.com/biz/tartine-bakery-san-francisco-3",
    "rating": 4.2,
    "reviewCount": 9215,
    "reviewCountsByStars": { "1": 333, "2": 462, "3": 1103, "4": 2748, "5": 4576 },
    "reviewCountsByLanguage": { "en": 9193, "fr": 8, "es": 5 },
    "priceRange": "$$",
    "categories": ["Bakeries", "Cafes", "Desserts"],
    "phone": "(415) 487-2600",
    "website": "https://tartinebakery.com/san-francisco/bakery",
    "address": "600 Guerrero St",
    "city": "San Francisco",
    "region": "CA",
    "postalCode": "94110",
    "country": "US",
    "formattedAddress": "600 Guerrero St, San Francisco, CA 94110",
    "latitude": 37.76166451,
    "longitude": -122.42424233,
    "hours": { "Monday": "7:30 AM - 6:00 PM", "Tuesday": "7:30 AM - 6:00 PM", "…": "…" },
    "isClaimed": true,
    "isClosedPermanently": false,
    "closedUntil": null,
    "photoCount": 9332,
    "photoUrl": "https://s3-media0.fl.yelpcdn.com/bphoto/26rwwIIRoi81hlzqdpzDYA/l.jpg",
    "summary": "Neighborhood bakery known for flaky chocolate croissants and rich banana cream pie.",
    "about": "A humble beginnings bakery making its way in the big city circa 2002…",
    "history": null,
    "yearEstablished": null,
    "amenities": { "Offers delivery": true, "Offers take-out": true, "Takes reservations": false },
    "healthScore": "Pass",
    "searchRank": null,
    "input": "https://www.yelp.com/biz/tartine-bakery-san-francisco",
    "scrapedAt": "2026-11-23T13:40:14.177623+00:00"
}
```

```json
{
    "type": "review",
    "id": "NGkP5jd1pXg00o_tz2DePw",
    "url": "https://www.yelp.com/biz/tonys-pizza-napoletana-san-francisco?hrid=NGkP5jd1pXg00o_tz2DePw",
    "businessId": "mSMZJj2pFvttWLpcDmgrEA",
    "businessAlias": "tonys-pizza-napoletana-san-francisco",
    "businessName": "Tony's Pizza Napoletana",
    "rating": 3,
    "text": "Let me just say pizza is my FAVORITE FOOD. If there is someone who has tried pizza not only across the Bay Area…",
    "language": "en",
    "date": "2026-11-21T16:49:42Z",
    "dateLocal": "2026-11-21",
    "authorId": "kwpmz2oZtyi1BBJCgWZOOA",
    "authorName": "Kendall H.",
    "authorUrl": "https://www.yelp.com/user_details?userid=kwpmz2oZtyi1BBJCgWZOOA",
    "authorLocation": "Oakland, CA",
    "authorReviewCount": 114,
    "authorFriendCount": 3,
    "authorPhotoCount": 181,
    "authorIsElite": true,
    "authorAvatarUrl": "https://s3-media0.fl.yelpcdn.com/photo/TBjbZDGFCMp8s2Gbe1lphw/60s.jpg",
    "photos": ["https://s3-media0.fl.yelpcdn.com/bphoto/3Z54CTfgktyqWmiMxsdGmQ/o.jpg"],
    "reactions": { "helpful": 0, "thanks": 0, "loveThis": 0, "ohNo": 0 },
    "usefulCount": 0,
    "funnyCount": 0,
    "coolCount": 0,
    "checkInCount": 0,
    "ownerReplyText": "Hi Kendall, it sounds like you have been a long time guest of ours…",
    "ownerReplyDate": "2023-08-16T06:50:50Z",
    "ownerReplyAuthor": "Stephanie D.",
    "input": "https://www.yelp.com/biz/tonys-pizza-napoletana-san-francisco",
    "scrapedAt": "2026-11-23T13:44:21.639417+00:00"
}
```

You can download the dataset in various formats such as JSON, HTML, CSV, or Excel.

### Data fields

#### Business rows

| Field | Description |
|---|---|
| `id`, `alias`, `url` | Yelp's business id, its alias and its Yelp page. |
| `name`, `categories`, `priceRange` | Name, Yelp categories and price range (`$` to `$$$$`). |
| `rating`, `reviewCount` | Average star rating and total number of reviews. |
| `reviewCountsByStars`, `reviewCountsByLanguage` | Number of reviews for each star rating and each language. |
| `phone`, `website` | Phone number as Yelp shows it, and the business's own website. |
| `address`, `city`, `region`, `postalCode`, `country`, `formattedAddress` | Street address, city, state or region code, postal code, two-letter country code, and the full address on one line. |
| `latitude`, `longitude` | Map coordinates. |
| `hours` | Regular opening hours for each day of the week. |
| `isClaimed`, `isClosedPermanently`, `closedUntil` | Whether the owner has claimed the page, whether the business has closed for good, and the reopening date of a temporarily closed one. |
| `photoCount`, `photoUrl` | Number of photos on the business page and its main photo. |
| `summary`, `about`, `history`, `yearEstablished` | Yelp's one-line summary and the owner's "About the business" text, history and founding year, when present. |
| `amenities` | Each amenity Yelp lists (delivery, Wi-Fi, wheelchair access, payment methods…), `true` when offered and `false` when not. |
| `healthScore` | The latest health inspection result, where Yelp shows one. |
| `searchRank` | Position in the search results, for businesses found through a search link; `null` for business links. |

#### Review rows

| Field | Description |
|---|---|
| `id`, `url` | Yelp's review id and a link to the review. |
| `businessId`, `businessAlias`, `businessName` | The business the review is about. |
| `rating`, `text`, `language` | Stars (1–5), full review text and its language. |
| `date`, `dateLocal` | When the review was posted: an exact UTC timestamp (ISO 8601), and the calendar day Yelp shows on the review (`YYYY-MM-DD`, in the business's time zone), which can differ from the UTC day by one. |
| `authorId`, `authorName`, `authorUrl`, `authorLocation`, `authorAvatarUrl` | The reviewer's public Yelp profile: display name, profile link, home town and profile photo. |
| `authorReviewCount`, `authorFriendCount`, `authorPhotoCount`, `authorIsElite` | The reviewer's review, friend and photo counts, and whether they are in this year's Yelp Elite. |
| `photos` | Full-size photos Yelp shows with the review: the reviewer's photos of this business, so the list can grow when they add photos later. |
| `reactions` | Counts of Yelp's reactions: helpful, thanks, love this and oh no. |
| `usefulCount`, `funnyCount`, `coolCount` | Yelp's classic review votes. |
| `checkInCount` | How many times the reviewer checked in at the business. |
| `ownerReplyText`, `ownerReplyDate`, `ownerReplyAuthor` | The business owner's public reply, when there is one. |

Every row also has `input` (the link it came from) and `scrapedAt`.

### How much does it cost to scrape Yelp?

The Actor charges for each row it saves; see the **Pricing** tab for the exact prices. Every row has the same base price, and **business rows cost more than review rows**: a business row carries an extra charge, because it takes several lookups (and, for search links, a browser) to build. So 1,000 reviews cost less than 1,000 businesses, and `maxReviewsPerBusiness` and `includeBusinessDetails` decide the mix. Inputs that give nothing, such as a mistyped link or a removed business, are never charged. Business links are read over plain HTTP, so runs are fast and light: 2,100 reviews of three businesses took about 35 seconds in a test run. Search links start a browser once per run, which adds about 10–30 seconds; three searches of 25 businesses each took about a minute in a test run.

### Tips

- **Monitor new reviews cheaply**: schedule a daily run with `reviewsSort` = `newest` and `reviewsNewerThan` = `2 days`. The Actor stops at the first older review, so a quiet business costs almost nothing.
- **Find complaints**: set `reviewsStarRatings` to `["1", "2"]`.
- **Business data only**: set `maxReviewsPerBusiness` to 0 for one row per business, for example for lead lists from search links.
- **Reviews only**: turn off `includeBusinessDetails` to skip the business rows and their extra charge; each review row still names its business.
- **Search links**: run the search on yelp.com with the filters you want (category, price, open now, distance), then paste the address bar. The Actor keeps Yelp's filters and order.
- **Memory**: the default 2 GB leaves room for the browser that search links use. Runs with business links only need far less and work at 512 MB; keep at least 1 GB for search links.

### Related scrapers

See it on real data: [Katz's Delicatessen Yelp reviews](https://apify.com/mina_safwat/yelp-scraper/examples/katzs-delicatessen-yelp-reviews).

- [Google Maps Reviews Scraper](https://apify.com/mina_safwat/google-maps-reviews-scraper): the same business's Google reviews.
- [TripAdvisor Reviews Scraper](https://apify.com/mina_safwat/tripadvisor-reviews-scraper): restaurant, hotel and attraction reviews from TripAdvisor.
- [Trustpilot Reviews Scraper](https://apify.com/mina_safwat/trustpilot-reviews-scraper): company reviews from Trustpilot.

### FAQ, disclaimers and support

**Is it legal to scrape Yelp?** The Actor only reads information Yelp shows publicly to every visitor without logging in. Scraping public data is generally lawful, but you are responsible for how you use it: check Yelp's terms of service and the laws that apply to you (for example GDPR or CCPA) before you store or process the data.

**What about personal data?** Reviews include the reviewer's public display name (first name and last initial), home town and profile photo, exactly as Yelp shows them. The Actor collects nothing else about reviewers. Only keep and use such data when you have a legitimate reason to, and in line with data-protection law.

**Why did a search return businesses that don't match my words?** Yelp shows its closest matches even when nothing matches exactly, and the Actor saves what Yelp shows.

**Why do some reviews have a different language than their text?** The language comes from Yelp, which occasionally labels a review wrongly.

**Why is an input in FAILED_INPUTS?** The record lists every input that gave no rows and why: a link that is not a Yelp business or search, a business Yelp no longer has (old links of renamed businesses are followed to their new page, so only links that lead nowhere are listed), filters that match no reviews, or a page Yelp would not serve. Businesses whose reviews stopped early also appear there with how many reviews were read.

**Something is missing or broken?** Please open an issue on the **Issues** tab with the link you used, and it will be looked at quickly. Need a custom Yelp dataset or a different output format? Get in touch through the Issues tab as well.

# Actor input Schema

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

One per line. Business pages from any Yelp country site (yelp.com, yelp.co.uk, yelp.ca, yelp.de…), for example https://www.yelp.com/biz/tartine-bakery-san-francisco; photo, menu and write-a-review links of a business work too, and so does the bare business alias (tartine-bakery-san-francisco) or id. Search links work as well: run a search on yelp.com and copy the address bar, for example https://www.yelp.com/search?find_desc=pizza\&find_loc=San+Francisco%2C+CA. Links that are not a Yelp business or search are listed in the FAILED_INPUTS record.

## `maxBusinessesPerSearch` (type: `integer`):

For search links: how many businesses to save, in Yelp's order, with their reviews. Sponsored results are left out. Yelp shows at most 240 results per search. Search links are read in a real browser that starts once per run and adds about 10–30 seconds; business links do not need it.

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

Stops after this many reviews for each business. Set 0 to save only the business details.

## `includeBusinessDetails` (type: `boolean`):

Adds one row per business with its rating, review counts, price range, categories, address, coordinates, phone, website, opening hours, amenities, photo count and claimed status.

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

The order reviews are read in. Highest and lowest rated read every 5-star (or 1-star) review first, in every language, then the next star rating; within one star rating the newest come first.

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

A two-letter language code such as en, fr, de or es to read only reviews written in that language, or all to read every language, the most common language first. Yelp lists each business's languages, and the business row shows how many reviews each one has.

## `reviewsStarRatings` (type: `array`):

Reads only reviews with these star ratings, for example 1 and 2 for complaints. Leave empty for all ratings.

## `reviewsNewerThan` (type: `string`):

Skips reviews posted before this date (for example 2026-09-01) or age (for example 30 days). With newest-first sorting the Actor stops reading a business as soon as it reaches older reviews, which makes scheduled runs cheap. With oldest-first sorting it saves the oldest reviews posted after the date. Not available with Yelp's recommended order.

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

Leave this empty: Yelp answers the Actor directly, and if it ever refuses, the Actor retries through Apify's datacenter and then residential proxies on its own.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.yelp.com/biz/tartine-bakery-san-francisco"
  ],
  "maxBusinessesPerSearch": 10,
  "maxReviewsPerBusiness": 10,
  "includeBusinessDetails": true,
  "reviewsSort": "newest",
  "reviewsLanguage": "all",
  "reviewsStarRatings": [],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `dataset` (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/tartine-bakery-san-francisco"
    ],
    "maxReviewsPerBusiness": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("mina_safwat/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 = {
    "startUrls": ["https://www.yelp.com/biz/tartine-bakery-san-francisco"],
    "maxReviewsPerBusiness": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("mina_safwat/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 '{
  "startUrls": [
    "https://www.yelp.com/biz/tartine-bakery-san-francisco"
  ],
  "maxReviewsPerBusiness": 10
}' |
apify call mina_safwat/yelp-scraper --silent --output-dataset

```

## MCP server setup

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