# Yelp Business & Review Scraper (`technicaldost/yelp-business-review-scraper`) Actor

Scrape Yelp business listings and reviews: name, category, address, phone, rating, review count and individual review text. Build local leads and monitor reputation. Structured JSON output.

- **URL**: https://apify.com/technicaldost/yelp-business-review-scraper.md
- **Developed by:** [Technical Dost Solutions](https://apify.com/technicaldost) (community)
- **Categories:** Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 results

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/platform/actors/running/actors-in-store#pay-per-event

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

### What this Actor does

Extract business information and reviews from public Yelp business pages (or any public local-business page) as clean, structured JSON.

It processes user-provided public URLs, prioritizes JSON-LD/schema.org structured data (`LocalBusiness`, `Restaurant`, `AggregateRating`, `Review`), and can optionally use a conservative fallback that reads visible public business details and review blocks. It normalizes useful fields, emits both business-level and review-level rows, deduplicates them, and saves structured records to the Apify dataset.

### Why this Actor is useful

Agencies, analysts, and local businesses pay for this kind of extraction because it replaces manual copy-paste from listing pages, creates repeatable monitoring of ratings and reviews, feeds spreadsheets, CRMs, and dashboards, and turns scattered public business pages into a clean, API-ready dataset.

### Who this is for

- Local businesses tracking their own reputation
- Marketing and reputation-management agencies
- Market and competitive intelligence analysts
- Review and sentiment researchers
- Lead-generation and local-SEO teams
- Data teams building local-business datasets

### Common use cases

- Collect business details (name, category, rating, phone, address, price range)
- Track review text, author, rating, and date over time
- Feed a reputation dashboard or CRM with fresh review data
- Benchmark ratings across competitor pages
- Build recurring local-business intelligence datasets

### Input

| Field | Type | Description |
| --- | --- | --- |
| `startUrls` | array (required) | Public Yelp or local-business pages to extract from. Use only pages you may access without login or bypassing access controls. |
| `maxItems` | integer | Maximum rows to save (business and review rows). Default 50, min 1, max 10000. |
| `maxConcurrency` | integer | Pages processed in parallel. Default 3, min 1, max 20. |
| `extractionMode` | string | `structuredDataOnly` or `structuredDataWithFallback` (default). The fallback safely reads visible public business info and review blocks. |
| `requestTimeoutSecs` | integer | Maximum time per page. Default 30, min 5, max 180. |
| `proxyConfiguration` | object | Optional Apify proxy configuration where permitted by your source review. |

### Output

| Field | Description |
| --- | --- |
| `businessName` | Name of the business. |
| `category` | Business category or cuisine when available. |
| `ratingValue` | Aggregate rating value for the business. |
| `reviewCount` | Number of reviews reported for the business. |
| `priceRange` | Price range indicator (e.g. `$$`) when published. |
| `phone` | Public phone number when present. |
| `address` | Business address as published. |
| `businessUrl` | Public URL of the business page. |
| `reviewText` | Text of an individual review (review rows only). |
| `reviewAuthor` | Author of the review (review rows only). |
| `reviewRating` | Rating given in the review (review rows only). |
| `reviewDate` | Date the review was published (review rows only). |
| `sourceUrl` | URL where the data was extracted. |
| `detectedAt` | Timestamp when this Actor extracted the row. |
| `extractionMethod` | `structured_data` for schema data, or `fallback_public_business_page` for visible public content. |
| `confidenceScore` | Heuristic confidence based on structured data availability and completeness. |
| `missingFields` | Required fields that were not available from the source page. |

### Sample input

```json
{
  "startUrls": [
    {
      "url": "https://www.yelp.com/biz/example-business"
    }
  ],
  "maxItems": 25,
  "maxConcurrency": 3,
  "extractionMode": "structuredDataWithFallback",
  "requestTimeoutSecs": 30
}
````

### Sample output

```json
{
  "businessName": "Example Coffee House",
  "category": "Coffee & Tea, Cafes",
  "ratingValue": 4.5,
  "reviewCount": 812,
  "priceRange": "$$",
  "phone": "+1-415-555-0100",
  "address": "123 Market St, San Francisco, CA 94103, US",
  "businessUrl": "https://www.yelp.com/biz/example-business",
  "reviewText": null,
  "reviewAuthor": null,
  "reviewRating": null,
  "reviewDate": null,
  "sourceUrl": "https://www.yelp.com/biz/example-business",
  "detectedAt": "2026-06-27T00:00:00.000Z",
  "extractionMethod": "structured_data",
  "confidenceScore": 0.95,
  "missingFields": []
}
```

### Pricing

This Actor uses a pay-per-event model: **$0.005 per result** saved to the dataset. You pay only for the structured business and review rows you receive, which makes recurring monitoring predictable and low-cost.

### How to use

Run this Actor on Apify with public business page URLs, export the dataset as JSON, CSV, or Excel, or pull it through the Apify API. Connect the output to Google Sheets, Make, Zapier, a webhook, your CRM, or an internal dashboard. For monitoring, save the input as an Apify task and schedule recurring runs.

### Best practices

- Start with a small set of reviewed public business URLs.
- Prefer pages that expose schema.org / JSON-LD structured data.
- Use `structuredDataOnly` for highest precision; use `structuredDataWithFallback` for pages that only show visible content.
- Keep `maxConcurrency` low for respectful scraping.
- Review each source website's rules before scheduling recurring runs.

### Compliance and responsible use

This Actor is for public data only. It must not be used to bypass logins, paywalls, CAPTCHAs, or security systems, to collect private or sensitive personal data, or to support spam or abuse. Only publicly published business pages should be processed here. You are responsible for following applicable laws and each source website's rules.

### Limitations

- Output quality depends on the public structured data available on the source pages.
- Fallback extraction is intentionally conservative and only looks for visible public business info and review patterns. It does not claim universal page support.
- Dates, ratings, and amounts are extracted as published; formats vary by source and are not reformatted or converted.
- Some fields may be empty when the source does not publish them; these appear in `missingFields`.
- The Actor does not claim support for any specific third-party platform.
- Website markup and access policies can change.

### Troubleshooting

- Empty output usually means the page has no public structured data and no visible business or review patterns.
- Invalid URL errors mean one or more input URLs are malformed.
- Slow runs can usually be improved by lowering `maxConcurrency`.
- Missing fields are source-data limitations, not inferred values.

### Changelog

- v0.1.0: Initial release with structured-data-first extraction, conservative public business-page fallback, business and review rows, and confidence scoring.

# Actor input Schema

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

Public Yelp business pages, or any public local-business page, to extract from. Use only URLs you are allowed to access without login, paywall bypass, CAPTCHA bypass, or security circumvention.

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

Maximum number of normalized rows (business and review rows) to save. The Actor stops pushing new rows when this limit is reached.

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

How many pages to process at once. Lower this for cautious, respectful scraping.

## `extractionMode` (type: `string`):

Use structured data only, or allow a conservative fallback that reads visible public business information and review blocks.

## `requestTimeoutSecs` (type: `integer`):

Maximum time to spend processing a single page before it is treated as failed.

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

Optional Apify proxy configuration. Use only where permitted by the source website and your compliance process.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.yelp.com/biz/example-business"
    }
  ],
  "maxItems": 50,
  "maxConcurrency": 3,
  "extractionMode": "structuredDataWithFallback",
  "requestTimeoutSecs": 30
}
```

# 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": [
        {
            "url": "https://www.yelp.com/biz/example-business"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("technicaldost/yelp-business-review-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": [{ "url": "https://www.yelp.com/biz/example-business" }] }

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=technicaldost/yelp-business-review-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 reviews: name, category, address, phone, rating, review count and individual review text. Build local leads and monitor reputation. Structured JSON output.",
        "version": "0.1",
        "x-build-id": "fvTMHV4fLiWSn2H13"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/technicaldost~yelp-business-review-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-technicaldost-yelp-business-review-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/technicaldost~yelp-business-review-scraper/runs": {
            "post": {
                "operationId": "runs-sync-technicaldost-yelp-business-review-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/technicaldost~yelp-business-review-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-technicaldost-yelp-business-review-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": [
                    "startUrls"
                ],
                "properties": {
                    "startUrls": {
                        "title": "Public business page URLs",
                        "type": "array",
                        "description": "Public Yelp business pages, or any public local-business page, to extract from. Use only URLs you are allowed to access without login, paywall bypass, CAPTCHA bypass, or security circumvention.",
                        "items": {
                            "type": "object",
                            "required": [
                                "url"
                            ],
                            "properties": {
                                "url": {
                                    "type": "string",
                                    "title": "URL of a web page",
                                    "format": "uri"
                                }
                            }
                        }
                    },
                    "maxItems": {
                        "title": "Maximum results",
                        "minimum": 1,
                        "maximum": 10000,
                        "type": "integer",
                        "description": "Maximum number of normalized rows (business and review rows) to save. The Actor stops pushing new rows when this limit is reached.",
                        "default": 50
                    },
                    "maxConcurrency": {
                        "title": "Maximum concurrency",
                        "minimum": 1,
                        "maximum": 20,
                        "type": "integer",
                        "description": "How many pages to process at once. Lower this for cautious, respectful scraping.",
                        "default": 3
                    },
                    "extractionMode": {
                        "title": "Extraction mode",
                        "enum": [
                            "structuredDataOnly",
                            "structuredDataWithFallback"
                        ],
                        "type": "string",
                        "description": "Use structured data only, or allow a conservative fallback that reads visible public business information and review blocks.",
                        "default": "structuredDataWithFallback"
                    },
                    "requestTimeoutSecs": {
                        "title": "Request timeout seconds",
                        "minimum": 5,
                        "maximum": 180,
                        "type": "integer",
                        "description": "Maximum time to spend processing a single page before it is treated as failed.",
                        "default": 30
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Optional Apify proxy configuration. Use only where permitted by the source website and your compliance process."
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
