# Yelp Business & Review Scraper (`formal_labyrinth/yelp-scraper`) Actor

Scrape Yelp business listings and full reviews — not capped at 3 like Yelp's API. Get business details, contact info, hours, ratings, and hundreds of reviews per location. Includes owner responses, Elite status, and vote counts. Residential proxy rotation included.

- **URL**: https://apify.com/formal\_labyrinth/yelp-scraper.md
- **Developed by:** [Lawrence Underbrink](https://apify.com/formal_labyrinth) (community)
- **Categories:** Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN 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/platform/actors/running/actors-in-store#pay-per-usage

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Yelp Business & Review Scraper

Extract complete business listings and full review histories from Yelp — including reviews, star ratings, owner responses, and business details. Yelp's official API only returns 3 reviews per business; this Actor gets them all.

### What It Does

This Actor scrapes Yelp for:

- **Business listings** — name, address, phone, website, category, overall rating, review count, price range, hours
- **Full review text** — all customer reviews with date, star rating, reviewer info, and vote counts
- **Owner responses** — captures owner reply text and date for reputation management workflows
- **Reviewer details** — reviewer name, location, Elite status
- **Search results** — find all businesses matching a query in any US city or zip code

### Use Cases

- **Reputation management agencies** — pull weekly review feeds for all client businesses automatically
- **Local SEO consultants** — monitor ratings and new reviews across a portfolio of businesses
- **Market research** — analyze sentiment, common complaints, and competitor positioning
- **Lead generation** — find local businesses with low ratings (need reputation help) or high ratings (potential partners)
- **Competitive analysis** — compare reviews and ratings across multiple businesses in a category

### Example Inputs

**Find businesses + get their reviews:**
```json
{
  "mode": "both",
  "searchQuery": "dentists",
  "location": "Chicago, IL",
  "maxBusinesses": 20,
  "maxReviewsPerBusiness": 100,
  "sortReviews": "newest"
}
````

**Get all reviews for specific businesses:**

```json
{
  "mode": "reviews",
  "businessUrls": [
    "https://www.yelp.com/biz/joes-pizza-chicago",
    "https://www.yelp.com/biz/tonys-pizza-chicago"
  ],
  "maxReviewsPerBusiness": 0,
  "sortReviews": "newest"
}
```

**Business search only (no reviews):**

```json
{
  "mode": "search",
  "searchQuery": "auto repair",
  "location": "Phoenix, AZ",
  "maxBusinesses": 50
}
```

### Example Output (business listing)

```json
{
  "recordType": "business",
  "businessName": "Mike's Plumbing",
  "yelpUrl": "https://www.yelp.com/biz/mikes-plumbing-austin",
  "address": "123 Main St",
  "city": "Austin",
  "state": "TX",
  "phone": "(512) 555-0100",
  "website": "https://mikesplumbing.com",
  "category": "Plumbers",
  "overallRating": 4.5,
  "reviewCount": 312,
  "priceRange": "$$",
  "hoursMonday": "8:00 AM - 6:00 PM",
  "yearsInBusiness": 12,
  "claimedBusiness": true
}
```

### Example Output (review)

```json
{
  "recordType": "review",
  "businessName": "Mike's Plumbing",
  "reviewerName": "Sarah T.",
  "reviewerLocation": "Austin, TX",
  "starRating": 5,
  "reviewText": "Mike showed up on time and fixed our pipe in under an hour. Highly recommend!",
  "reviewDate": "2026-04-15",
  "usefulVotes": 3,
  "ownerResponseText": "Thanks so much, Sarah! We appreciate the kind words.",
  "ownerResponseDate": "2026-04-16",
  "hasOwnerResponse": true
}
```

### Pricing

This Actor uses **Pay Per Event (PPE)** pricing — you only pay for what you extract:

| Data type | Cost per item |
|-----------|--------------|
| Business listing | $0.010 |
| Review | $0.005 |

**Example:** 20 businesses + 50 reviews each = $0.20 + $5.00 = **~$5.20 total**\
**Example:** All reviews for 1 business (300 reviews) = **~$1.51 total**\
**Example:** 100 businesses (no reviews) = **$1.00 total**

There is no minimum charge per run. Small runs (1–2 businesses) often cost under $0.25.

### Proxy Requirements

This Actor uses **Apify Residential Proxies** by default. Yelp blocks datacenter IPs, so residential proxies are required for reliable results. Residential proxy usage is included in the PPE pricing above — you do not need to set up a separate proxy subscription.

If you have your own residential proxy service, you can configure it in the proxy settings.

### Notes

- This Actor scrapes **public Yelp pages** — no login or Yelp account required
- Reviews behind login (e.g., flagged reviews) are not accessible and not scraped
- For very large runs (500+ businesses), expect runtime of 30–90 minutes depending on review depth
- The Actor streams results to the dataset in real time — you can download partial results while it's still running
- Built-in retry logic handles temporary blocks automatically; the Actor will not crash on a single bad request

### Compared to Alternatives

Yelp's official Fusion API returns a maximum of **3 reviews per business**. Every other tool that uses the official API has this same limitation. This Actor scrapes the public Yelp website to deliver the full review dataset your agency clients actually need.

### Support

If you encounter issues or need additional fields, open a report in the Issues tab. This Actor is actively maintained with prompt responses to bug reports.

# Actor input Schema

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

What to scrape: 'search' (find businesses by query + location), 'reviews' (get reviews for specific Yelp URLs you provide), 'both' (search then get reviews for each result — most common).

## `searchQuery` (type: `string`):

Business type or keyword to search for. Example: 'plumbers', 'Italian restaurants', 'auto repair'.

## `location` (type: `string`):

City, neighborhood, zip code, or address to search in.

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

Specific Yelp business page URLs to scrape reviews from. Used in 'reviews' mode only.

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

Maximum number of businesses to return from search results.

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

Maximum reviews to collect per business. Use 0 for all available reviews.

## `sortReviews` (type: `string`):

Order in which to retrieve reviews.

## `proxy` (type: `object`):

Proxy settings. Residential proxies are strongly recommended — Yelp actively blocks datacenter IPs.

## Actor input object example

```json
{
  "mode": "both",
  "searchQuery": "plumbers",
  "location": "Austin, TX",
  "businessUrls": [
    "https://www.yelp.com/biz/some-restaurant-austin"
  ],
  "maxBusinesses": 20,
  "maxReviewsPerBusiness": 50,
  "sortReviews": "newest",
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("formal_labyrinth/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 = {}

# Run the Actor and wait for it to finish
run = client.actor("formal_labyrinth/yelp-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call formal_labyrinth/yelp-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=formal_labyrinth/yelp-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Yelp Business & Review Scraper",
        "description": "Scrape Yelp business listings and full reviews — not capped at 3 like Yelp's API. Get business details, contact info, hours, ratings, and hundreds of reviews per location. Includes owner responses, Elite status, and vote counts. Residential proxy rotation included.",
        "version": "0.1",
        "x-build-id": "FsapgMs86HYce80Rq"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/formal_labyrinth~yelp-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-formal_labyrinth-yelp-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/formal_labyrinth~yelp-scraper/runs": {
            "post": {
                "operationId": "runs-sync-formal_labyrinth-yelp-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/formal_labyrinth~yelp-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-formal_labyrinth-yelp-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "mode"
                ],
                "properties": {
                    "mode": {
                        "title": "Mode",
                        "enum": [
                            "search",
                            "reviews",
                            "both"
                        ],
                        "type": "string",
                        "description": "What to scrape: 'search' (find businesses by query + location), 'reviews' (get reviews for specific Yelp URLs you provide), 'both' (search then get reviews for each result — most common).",
                        "default": "both"
                    },
                    "searchQuery": {
                        "title": "Search Query",
                        "type": "string",
                        "description": "Business type or keyword to search for. Example: 'plumbers', 'Italian restaurants', 'auto repair'."
                    },
                    "location": {
                        "title": "Location",
                        "type": "string",
                        "description": "City, neighborhood, zip code, or address to search in."
                    },
                    "businessUrls": {
                        "title": "Business URLs",
                        "type": "array",
                        "description": "Specific Yelp business page URLs to scrape reviews from. Used in 'reviews' mode only.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "maxBusinesses": {
                        "title": "Max Businesses",
                        "minimum": 1,
                        "maximum": 200,
                        "type": "integer",
                        "description": "Maximum number of businesses to return from search results.",
                        "default": 20
                    },
                    "maxReviewsPerBusiness": {
                        "title": "Max Reviews Per Business",
                        "minimum": 0,
                        "maximum": 1000,
                        "type": "integer",
                        "description": "Maximum reviews to collect per business. Use 0 for all available reviews.",
                        "default": 50
                    },
                    "sortReviews": {
                        "title": "Sort Reviews By",
                        "enum": [
                            "newest",
                            "highest_rated",
                            "lowest_rated",
                            "elites"
                        ],
                        "type": "string",
                        "description": "Order in which to retrieve reviews.",
                        "default": "newest"
                    },
                    "proxy": {
                        "title": "Proxy Configuration",
                        "type": "object",
                        "description": "Proxy settings. Residential proxies are strongly recommended — Yelp actively blocks datacenter IPs.",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ]
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
