# Yelp Scraper - Businesses, Phones, Ratings & Reviews by City (`rjmacarthy/yelp-scraper`) Actor

Scrape Yelp businesses by keyword and city: name, phone, website, rating, review count, address, categories, price, claimed and open-now flags. Optional details (hours, amenities, coordinates) and reviews with owner responses, plus an only-new-reviews monitor.

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

## Pricing

from $1.00 / 1,000 business from searches

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 Scraper - Businesses, Phones, Ratings & Reviews by City

Scrape Yelp the way you search it: type a keyword ("plumbers", "pizza", "dentist") and a city, and get every business with its
**phone number, website, rating, review count, full address, categories, price range, claimed flag and open-now status**.
Turn on business details for opening hours, amenities, coordinates and the menu link, or switch to reviews mode for full
review text with **owner responses** and an **only-new-reviews monitor** for scheduled runs.

At **$1 per 1,000 businesses** with phones included and no start fee, it costs half or less what other Yelp business scrapers
charge. Page fetching is built in, so there is nothing for you to set up.

### What data can you get?

| Business (search) | Business details (optional) | Review |
|---|---|---|
| Name, Yelp URL, Yelp id | Opening hours per weekday | Review text, star rating, date |
| Phone, website | Amenities ("Outdoor seating", "Free Wi-Fi"...) | Owner response text and date |
| Rating, review count | Latitude / longitude | Language, photos count |
| Full address, street, city, state, ZIP, neighborhood | Menu link, year established | Helpful / Thanks / Love this / Oh no counts |
| Categories, price range ($-$$$$) | Photo count, specialties | Updated-review flag |
| Claimed by owner, open now | Permanently-closed flag | Reviewer town, review and friend counts (no names) |
| Search rank, ad flag, snippet, photo | | Business name, URL and id |

### Use cases

- **Lead generation:** every plumber, roofer or dentist in a city with phone and website, ready for a CRM.
- **Local market research:** ratings, review counts and price levels of all competitors in a neighborhood.
- **Reputation monitoring:** schedule reviews mode with "only new reviews" and get just the new reviews of your locations.
- **Customer-service analysis:** which reviews got an owner response, and how fast.
- **Site selection and franchise analysis:** coordinates, hours and amenities of every business of a type.

### How to use

1. Choose **Search businesses** (default) or **Business reviews**.
2. Search: add search terms and locations (each term is searched in each location), or paste Yelp search URLs with filters.
3. Reviews: paste Yelp business URLs.
4. Run, then export as JSON, CSV, Excel or via the API.

Search (the prefill):

```json
{ "searchTerms": ["pizza"], "locations": ["Austin, TX"], "maxItems": 10 }
```

Leads with details:

```json
{ "searchTerms": ["plumbers", "electricians"], "locations": ["Denver, CO"], "maxItems": 10, "includeDetails": true }
```

Reviews, only new ones on each scheduled run:

```json
{
  "mode": "reviews",
  "businessUrls": ["https://www.yelp.com/biz/home-slice-pizza-austin"],
  "maxReviews": 100,
  "monitorMode": "new",
  "stateKey": "my-restaurants"
}
```

### Output example

Real rows from a local run (trimmed):

```json
[
  {
    "type": "business",
    "id": "ED7A7vDdg8yLNKJTSVHHmg",
    "name": "% Arabica",
    "url": "https://www.yelp.com/biz/arabica-brooklyn",
    "rating": 4.4,
    "reviewCount": 366,
    "categories": ["Coffee & Tea"],
    "priceRange": "$$",
    "phone": "(718) 865-2551",
    "website": "https://www.arabicacoffee.us/location/arabica-brooklyn-dumbo-areanew-york/",
    "address": "20 Old Fulton St, Brooklyn, NY 11201",
    "neighborhood": "Brooklyn Heights",
    "latitude": 40.702601,
    "longitude": -73.99415,
    "isClaimed": true,
    "isOpenNow": true,
    "rank": 1,
    "hours": { "Mon": "8:00 AM - 6:00 PM", "Sun": "8:00 AM - 6:00 PM" },
    "amenities": ["Offers take-out", "Outdoor seating", "Free Wi-Fi", "Dogs allowed"],
    "menuUrl": "https://www.yelp.com/menu/arabica-brooklyn",
    "photosCount": 997,
    "detailsStatus": "ok"
  },
  {
    "type": "review",
    "id": "UkrsA3Kt9_F4W49L9gyboA",
    "bizName": "Brothers Plumbing, Heating & Electric",
    "bizUrl": "https://www.yelp.com/biz/brothers-plumbing-heating-and-electric-denver-3",
    "rating": 5,
    "text": "Friendly, fast and so accommodating. Impressed with the staff and technician who came out and bent over backwards to make sure  we got what we were requesting.",
    "date": "2024-12-18T22:38:43.000Z",
    "ownerResponse": "So happy to hear you had a great experience! Look forward to serving you again in the future!",
    "ownerResponseDate": "2025-01-02T23:35:24.000Z",
    "reviewerLocation": "Arvada, CO",
    "reviewerReviewCount": 30,
    "helpfulCount": 0
  }
]
```

Full sample: `samples/sample-output.json`. The dataset has three views: **Businesses**, **Business details** and **Reviews**.

### Pricing

Pay per result, no start fee beyond Apify's $0.00005:

| Event | Price | Example |
|---|---|---|
| `business` - a business from search (phone and website included) | $0.001 | 1,000 businesses = $1.00 |
| `business-details` - extra per business when "Include business details" is on | $0.003 | 1,000 businesses with details = $4.00 |
| `review` - a review | $0.0004 | 1,000 reviews = $0.40 |
| `monitor-check` - one review page checked in "only new reviews" monitor mode | $0.0015 | see below |

**Monitor mode costs.** With "only new reviews" on, each review page checked costs $0.0015 (one page per business when there is
nothing new; more if many new reviews arrived), even when there is nothing new (the page still has to be fetched), plus $0.0004 per new review found. Checking 10 businesses
**hourly** costs about $0.36 per day (~$10.80 per month); checking them **daily** costs about $0.015 per day (~$0.45 per month).
Normal runs (monitor mode "all") never pay this. A check whose page could not be fetched is not charged.

Set **Maximum cost per run** in the run options and the Actor stops cleanly when it is reached. Rows whose business page
could not be read are not charged for details.

**Free Apify plan:** runs are limited to 5 Yelp page requests per run, which is enough for the prefill (10 businesses)
or about 20 businesses / ~200 reviews. Any paid Apify plan removes the limit.

### Tips and limits

- Yelp shows 10 organic results per page and at most 24 pages (240 businesses) per search. For more, split by neighborhood or ZIP.
- Sponsored results are skipped by default; set `skipAds` to false to include them (flagged `isAd`).
- Yelp pages are slow: the first search page takes 15-25 seconds, deeper pages (results
  11+) often 60-100 seconds and are sometimes refused; a refused page is skipped with a warning in the run summary. 10 businesses
  take about 20 seconds, 30 businesses up to 2-5 minutes. That is why the default is 10 businesses per search (page 1 only):
  more than 10 per search is slower and less reliable. Reviews are fast: about 3 seconds per 49 reviews.
- For many businesses in one city, several narrower searches (by neighborhood, ZIP or a more specific term) are faster and more
  reliable than paging deep into one search.
- Coordinates, opening hours and amenities need "Include business details" (one more page per business).
- Yelp's review reactions are now Helpful / Thanks / Love this / Oh no; the old Useful / Funny / Cool counts no longer exist.
- Reviews are read in one language at a time (default English, `language`).
- "Max pages per run" caps the requests a run may make (default: what your limits need plus 20%).

### FAQ

**Do I need a proxy or a Yelp account?** No. Page fetching is built into the Actor and included in the price; there is no proxy setting.

**Is it legal to scrape Yelp?** The Actor reads public pages only, without logging in. It does not collect reviewer names,
profile links, emails or owner names. Yelp's terms of service restrict automated access; you are responsible for how you use
the data and for complying with the laws and terms that apply to you (GDPR, CCPA and so on).

**How does monitor mode work?** With `monitorMode: "new"` the Actor reads reviews newest first and stops at the first review it
output in an earlier run with the same `stateKey`. The first run outputs everything up to `maxReviews` and becomes the baseline.

**Why is a phone empty?** Some businesses list no phone. If the phone lookup itself failed, `contactStatus` is "failed" and the
run summary says so.

**Is there a limit on the free plan?** Yes: free-plan runs stop after 5 Yelp page requests with a clear message.
Paid plans are not limited.

### Integrations

Use the results from the Apify API, the Apify CLI, Make, Zapier, n8n, Google Sheets, Slack or webhooks, or call the Actor from
AI agents through the Apify MCP server.

### Changelog

- 0.1 (2026-11-18): first release - search with phones, optional business details, reviews with owner responses, review monitor.

### Ready-to-run examples

- [Find plumbers in Denver with phone numbers](https://apify.com/rjmacarthy/yelp-scraper/examples/denver-plumbers-phone-numbers-yelp)
- [Coffee shops in Brooklyn with hours, amenities and location](https://apify.com/rjmacarthy/yelp-scraper/examples/brooklyn-coffee-shops-hours-amenities-yelp)

### More scrapers by the same developer

- [Google Maps Scraper - Places, Phones, Websites, Ratings & Hours](https://apify.com/rjmacarthy/google-maps-scraper)
- [Luma Events Scraper: Tech, AI & Crypto Events by City](https://apify.com/rjmacarthy/luma-events-scraper)
- [Meetup Events Scraper - Search Events & Groups by Topic & City](https://apify.com/rjmacarthy/meetup-events-scraper)
- [Public Tenders Scraper - EU TED & UK Find a Tender Notices](https://apify.com/rjmacarthy/public-tenders-scraper)
- [Shopify App Store Scraper - Apps, Pricing, Ratings & Reviews](https://apify.com/rjmacarthy/shopify-app-store-scraper)
- [G2 & Capterra Reviews Scraper - Ratings, Pros & Cons](https://apify.com/rjmacarthy/software-reviews-scraper)

Browse all my Actors on [my Apify Store profile](https://apify.com/rjmacarthy).

### Support

Found a bug or need a field? Open an issue on the Actor's Issues tab and it will be looked at quickly.

# Actor input Schema

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

"search": one row per business from Yelp search results. "reviews": one row per review of the businesses in "Business URLs".

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

What to search for, as on yelp.com: "pizza", "plumbers", "dentist", "coffee". Each term is searched in each location.

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

Where to search: a city ("Austin, TX"), a ZIP code, a neighborhood ("Brooklyn, NY") or any place Yelp understands.

## `searchUrls` (type: `array`):

Optional: Yelp search URLs copied from your browser (https://www.yelp.com/search?find_desc=...\&find_loc=...). Filters in the URL (price, open now, sort) are kept.

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

Stop each search after this many businesses. Yelp shows 10 per page and at most 24 pages (240 businesses). The default 10 (page 1) is fast and reliable; more than 10 per search is slower (deeper pages take 60-100 s) and Yelp often refuses them. 0 = everything Yelp shows.

## `skipAds` (type: `boolean`):

Leave out Yelp's sponsored (ad) listings and keep only the organic ranking. Turn off to include ads (flagged with isAd).

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

Also open each business page for opening hours, amenities, coordinates, menu link, year established, photo count and full address. One extra Yelp page per business, charged as the "business-details" event.

## `businessUrls` (type: `array`):

Yelp business pages to scrape reviews from, e.g. https://www.yelp.com/biz/pedrosos-pizza-austin-6 (a bare alias or Yelp business id also works).

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

Stop after this many reviews per business. 0 = all reviews (capped by the page request cap).

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

Order in which reviews are read. Monitor mode always uses newest first.

## `language` (type: `string`):

Two-letter language code of the reviews to fetch (Yelp filters by language). Default "en".

## `monitorMode` (type: `string`):

"all": every review up to the limit. "new": only reviews not output by an earlier run with the same monitor name (schedule the Actor to get new reviews only). The first run outputs everything and becomes the baseline. In this mode every review page read is charged as a "monitor-check" event ($0.0015), even when nothing new is found.

## `stateKey` (type: `string`):

Name of the monitor whose seen reviews are remembered (named key-value store "yelp-scraper-state"). Use different names for independent schedules.

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

Yelp pages fetched at the same time (each page takes 2-30 s).

## `maxZyteRequests` (type: `integer`):

Safety cap on Yelp page requests per run. 0 = automatic (the pages your limits need plus 20%, never more than 2,000). On the free Apify plan runs are limited to 5 pages.

## Actor input object example

```json
{
  "mode": "search",
  "searchTerms": [
    "pizza"
  ],
  "locations": [
    "Austin, TX"
  ],
  "maxItems": 10,
  "skipAds": true,
  "includeDetails": false,
  "maxReviews": 50,
  "sortBy": "newest",
  "language": "en",
  "monitorMode": "all",
  "stateKey": "default",
  "maxConcurrency": 8,
  "maxZyteRequests": 0
}
```

# Actor output Schema

## `businesses` (type: `string`):

Name, phone, website, rating and address per business.

## `reviews` (type: `string`):

One row per review, with the owner response.

## `all` (type: `string`):

Every field of every row.

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

Per-input status, counts, Zyte requests used and warnings.

# 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 = {
    "mode": "search",
    "searchTerms": [
        "pizza"
    ],
    "locations": [
        "Austin, TX"
    ],
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("rjmacarthy/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 = {
    "mode": "search",
    "searchTerms": ["pizza"],
    "locations": ["Austin, TX"],
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("rjmacarthy/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 '{
  "mode": "search",
  "searchTerms": [
    "pizza"
  ],
  "locations": [
    "Austin, TX"
  ],
  "maxItems": 10
}' |
apify call rjmacarthy/yelp-scraper --silent --output-dataset

```

## MCP server setup

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