# Yelp Advanced Data Scraper (`delicious_zebu/yelp-advanced-data-scraper`) Actor

Search Yelp by keyword and location, or paste filtered search URLs, and get a full record per business: rating, reviews, phone, website, hours, amenities, popular dishes, health scores and Q\&A. Filter by price, sort and language. Built for market research.

- **URL**: https://apify.com/delicious_zebu/yelp-advanced-data-scraper.md
- **Developed by:** [Zebu Data](https://apify.com/delicious_zebu) (community)
- **Categories:** Lead generation, Automation, E-commerce
- **Security:** Limited permissions
- **Stats:** 432 total users, 19 monthly users, 52.8% runs succeeded, 77 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $1.50 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Advanced Data Scraper** builds research-ready datasets from Yelp. Give it a category and a city, or any Yelp search URL. It returns one structured record per business with **40+ fields**:

- **Reputation:** ratings, review counts and review highlights.
- **Location:** coordinates, neighborhoods and opening hours.
- **Offer:** price level, amenities, popular dishes and menu links.
- **Compliance:** health inspection scores, verified licenses and service areas.
- **Community:** Q\&A.

![Yelp Advanced Data Scraper output: Yelp restaurant dataset with price level, inspection grade, delivery, take-out and popular dishes](https://api.apify.com/v2/key-value-stores/B4sn6zf0ej6CXS9Gk/records/yelp-data-scraper-restaurant-dataset-output.png)

### What does Yelp Advanced Data Scraper do?

Yelp Advanced Data Scraper works like an **unofficial Yelp API for business data**. It runs a search on [Yelp](https://www.yelp.com) and opens every business in the results. For each business it saves the full profile, plus where the business was found: the search keyword, the location and its rank in the results. You get a dataset you can analyze directly, instead of search snippets you have to enrich by hand.

You can build a dataset in two ways:

- **Category and location.** For example "restaurants" in "Chicago, IL" or "dentists" in "Austin, TX".
  - Use Yelp's own **Sort** and **Price** options.
  - Choose one of 42 Yelp sites and languages, such as yelp.com, yelp.co.uk, yelp.de and yelp.co.jp.
- **Yelp search URLs.** Filter on Yelp first (neighborhoods, open now, outdoor seating, good for kids and so on). Then copy the URL from your browser and paste it in.

### Why use it for research?

- 📊 **The deep sections, not just the basics.** Records include the parts of a business page that most scrapers skip:
  - amenities, returned as true/false features;
  - popular dishes and menu links;
  - health inspection scores with dates and violations;
  - verified licenses, service areas, year established and community Q\&A.
- 🗺️ **Analysis-ready location data.** Each business comes with its latitude and longitude, neighborhoods, and its address split into city, state and ZIP code. That makes it easy to map businesses, or to compare neighborhoods and cities.
- 🏷️ **Know where every record came from.** Each record carries the search keyword, location, search URL and rank. You can use these to measure market share or track how rankings change over time. Sponsored results are flagged, so organic and paid visibility stay separate.
- 🧮 **Consistent formats.** Ratings, review counts and claimed status come out in the same format on all 42 Yelp sites, so datasets from different countries can be combined.
- 🧹 **One record per business.** A business that appears in several searches is saved once per run. Your counts aren't inflated by sponsored repeats.
- 🤖 **Ready for your tools.** Export to JSON, CSV or Excel. You can also load the data into Python, R, BI tools or AI pipelines through the Apify API or the [Apify MCP server](https://mcp.apify.com).

#### Popular research use cases

- **Restaurant and food-service analytics.** Compare menus, popular dishes, price levels and amenities, such as delivery, vegan options or reservations, across a city.
- **Food safety and public health studies.** Collect health inspection scores and violations for the restaurants in a category or area, where Yelp shows them.
- **Local market sizing.** Count businesses by category, price level and neighborhood, and see how ratings and review volume are distributed.
- **Service-provider research.** Look at verified licenses and service areas for contractors, movers, cleaners and other home services.
- **Academic and AI datasets.** Build structured, well-labeled business datasets for teaching, research papers, recommendation models or RAG pipelines.

### What data can you extract from Yelp?

| Group | Fields |
|---|---|
| **Identity** | `name`, `url`, `yelp_biz_id`, `categories`, `is_claimed`, `year_established`, `owner_name` |
| **Reputation** | `rating`, `review_count`, `reviewhighlights`, `photo_count` |
| **Location** | `full_address`, `city`, `state`, `zipcode`, `country`, `neighborhoods`, `coordinates` (`latitude`, `longitude`), `service_areas` |
| **Offer** | `price_level`, `amenities` (feature → `true`/`false`), `popular_items`, `menu_url`, `specialties`, `about` |
| **Opening status** | `hours` (by day of the week), `is_closed`, `is_temporarily_closed` |
| **Compliance** | `health_inspections` (`score`, `date`, `violations`), `verified_licenses` (`trade`, `license_number`, `issuing_authority`) |
| **Community and media** | `questions_answers`, `images`, `videos` |
| **Contact** | `phone_number`, `website` |
| **Search provenance** | `search_keyword`, `search_location`, `search_url`, `rank`, `is_ad`, `timestamp` |

Different kinds of business have different fields:

- **Restaurants** usually have `popular_items`, `menu_url` and `health_inspections`.
- **Home and local services** usually have `verified_licenses` and `service_areas`.

Fields that don't apply to a business stay empty.

### How to build a Yelp dataset

1. **Open the Actor** and click **Try for free**.
2. **Choose what to collect.**
   - **Option 1:** enter categories and locations.
   - **Option 2:** paste Yelp search URLs that already have your filters.
3. **Choose how much.** Set **Max results per search** (50 by default, up to Yelp's 240).
4. **Click Start.** Records appear in the **Output** tab as each business is scraped.
5. **Analyze or export.** Download a CSV or Excel file, or pull the dataset into your notebook or BI tool through the API.

Prefer to watch? This video (under 4 minutes) does a real run: 30 ramen restaurants in San Francisco with popular dishes and health inspections, from filling in the input form to exporting the results to Excel.

https://www.youtube.com/watch?v=BRX4AZU6yRI

### How much does it cost?

This Actor uses **pay-per-result** pricing, and Apify platform usage is included.

- **What you pay for:** each business record counts as one result. A business is saved only once per run, so repeated sponsored listings aren't billed twice. Businesses that couldn't be loaded aren't charged.
- **Capping your spend:** you can set a maximum cost for a run, and the Actor stops as soon as that cost is reached.
- **Current price:** see the **Pricing** tab. You can try the Actor on the free Apify plan.

### Input

| Field | Key | Type | Description |
|---|---|---|---|
| **Option 1: search by keyword and location** | | | |
| Search keywords | `keywords` | array of strings | What to search for, e.g. `restaurants`, `plumbers` |
| Locations | `locations` | array of strings | Where to search, e.g. `Chicago, IL`. Each keyword is searched in every location |
| Yelp site / language | `languages` | string | Which Yelp site to search (42 options, default `English (United States)`) |
| Sort by | `sort` | string | `Recommended`, `Highest Rated` or `Most Reviewed` |
| Price | `price` | array | `$`, `$$`, `$$$` and/or `$$$$` |
| **Option 2: search by URL** | | | |
| Yelp search URLs | `urls` | array of strings | Yelp search result URLs with your own filters |
| **Scraping options** (both options) | | | |
| Max results per search | `maxResults` | integer | Businesses to save per keyword + location or per URL (default 50) |
| Include sponsored results | `include_ads` | boolean | Also scrape businesses Yelp marks as "Sponsored" (default `true`) |

Here is an example that builds a dataset of the most-reviewed restaurants in two neighborhoods, with organic results only:

```json
{
    "keywords": ["restaurants"],
    "locations": ["Williamsburg, Brooklyn, NY", "Astoria, Queens, NY"],
    "sort": "Most Reviewed",
    "maxResults": 100,
    "include_ads": false
}
```

### Output

Each business is saved as one dataset record. The example below comes from a real run. Long texts and lists are shortened.

```json
{
    "is_ad": false,
    "name": "Philomena's",
    "rating": "4.6",
    "review_count": "257 reviews",
    "is_claimed": "Claimed",
    "price_level": "$$",
    "categories": "Pizza",
    "coordinates": { "latitude": 40.743243, "longitude": -73.922928 },
    "full_address": "41-16 Queens Blvd Sunnyside, NY 11104",
    "city": "Sunnyside",
    "state": "NY",
    "zipcode": "11104",
    "neighborhoods": ["Sunnyside"],
    "phone_number": "(718) 255-1778",
    "website": "https://www.philomenasqueens.com",
    "hours": { "Mon": "12:00 PM - 9:00 PM", "Fri": "12:00 PM - 10:00 PM", "...": "..." },
    "year_established": "2018",
    "reviewhighlights": ["spicy mikey pizza", "dave", "queen"],
    "amenities": {
        "Offers delivery": true,
        "Offers take-out": true,
        "Takes reservations": false,
        "Vegan options": true,
        "Wheelchair accessible": true,
        "Accepts credit cards": true
    },
    "popular_items": ["Spicy Mikey Pizza", "New York Style Margherita Pizza", "Dragon Breath Pizza"],
    "menu_url": "https://www.philomenasqueens.com",
    "questions_answers": [
        { "question": "Is it BYOB?", "answer": "They have a liquor license - I don't think it's BYOB. ..." }
    ],
    "health_inspections": [
        { "score": "A", "date": "2026-02-09T08:00:00.000Z", "violations": ["Non-food contact surface or equipment ... not kept clean ..."] },
        { "score": "A", "date": "2023-03-31T07:00:00.000Z", "violations": ["Toilet facility not maintained ..."] }
    ],
    "verified_licenses": [],
    "service_areas": [],
    "photo_count": 447,
    "url": "https://www.yelp.com/biz/philomenas-sunnyside",
    "search_keyword": "pizza",
    "search_location": "New York, NY",
    "rank": 188,
    "yelp_biz_id": "9AP2VYXrBiea6KtOwb5xjQ",
    "country": "US",
    "is_closed": false,
    "is_temporarily_closed": false,
    "timestamp": "2026-09-24 15:43:55"
}
```

### Tips for better datasets

- **Cover a whole city.** Yelp shows at most 240 organic results per search. To collect more, search neighborhoods, districts or nearby towns as separate locations.
- **Separate organic and paid.** Set `include_ads` to `false` for organic-only rankings. If you keep ads, filter on `is_ad` afterwards.
- **Take snapshots over time.** Schedule the same input weekly or monthly. You can then compare ratings, review counts and rankings between runs by matching records on `yelp_biz_id`.
- **Restore Yelp's order.** Records are saved as soon as each business is scraped. Sort by `search_keyword`, `search_location` and `rank` to get Yelp's ordering back.
- **Only want your URLs?** If you fill in both Option 1 and Option 2, both run. Clear **Search keywords** if you only want the pasted URLs.
- **Automate it.** Run the Actor from code with the [Apify API](https://docs.apify.com/api/v2), or connect it with webhooks and [integrations](https://docs.apify.com/platform/integrations).

### Related Actors

1. [Yelp Reviews Scraper](https://apify.com/delicious_zebu/yelp-reviews-scraper): add the review text, reviewer profiles and review dates to your dataset.
2. [Yelp Business Info Scraper](https://apify.com/delicious_zebu/yelp-business-info-scraper): already have Yelp business URLs? Get the same 40+ fields for each one.
3. [Yelp Scraper - Business Leads, Phones & Websites](https://apify.com/delicious_zebu/yelp-advanced-business-scraper-pay-per-result): the same search engine, set up for lead lists and outreach.

### FAQ and support

#### How is this different from Yelp Scraper - Business Leads?

Both use the same search engine, return the same fields and follow the same pay-per-result model. This page is written for research datasets. The other is written for lead generation. Pick whichever fits how you work.

#### Is it legal to scrape Yelp?

This Actor collects only publicly available business information from Yelp. It doesn't extract private user data. However, your results could contain personal data, such as the name of a business owner. Personal data is protected by the GDPR in the European Union and by other regulations around the world. Don't scrape personal data unless you have a legitimate reason to. If you're unsure whether your reason is legitimate, consult a lawyer.

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

No. Just enter what to search for, or paste Yelp search URLs.

#### Can I use it with AI agents?

Yes. AI assistants and agents that support MCP can call this Actor through the [Apify MCP server](https://mcp.apify.com). Developers can run it from code with the [Apify API](https://docs.apify.com/api/v2) or the client libraries.

#### Why are some fields empty?

Yelp shows different sections for different kinds of business, and not every owner fills in every section. For example, health inspections appear only in cities that publish them. Fields that don't apply to a business come back empty.

#### Something not working?

Open an issue from the Actor's **Issues** tab and I'll take a look.

# Actor input Schema

## `keywords` (type: `array`):

What to search for, like in Yelp's "Find" box (e.g. pizza, plumbers, dentist). One per line.

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

Where to search, like in Yelp's "Near" box (e.g. New York, NY or Houston, TX). One per line.

## `languages` (type: `string`):

Which Yelp site to search, e.g. "Deutsch (Deutschland)" searches yelp.de and returns German pages. Search URLs in Option 2 keep their own site.

## `sort` (type: `string`):

Same as the "Sort" menu on Yelp search results. For search URLs in Option 2, pick the sort on Yelp before copying the URL.

## `price` (type: `array`):

Same as the "Price" filter on Yelp search results. Pick one or more levels, or leave empty for all prices. For search URLs in Option 2, set it on Yelp before copying the URL.

## `urls` (type: `array`):

Apply any filters you need on Yelp (open now, outdoor seating, good for kids, neighborhoods...), then copy the search results URL from your browser, e.g. https://www.yelp.com/search?find_desc=pizza\&find_loc=New+York\&attrs=OutdoorSeating

## `maxResults` (type: `integer`):

How many businesses to save for each keyword + location (or each URL). If a business can't be scraped, the next one in the results is taken instead. Leave empty for 50. Yelp shows at most 240 results per search; for more, split your search into smaller areas or more keywords.

## `include_ads` (type: `boolean`):

Also scrape the businesses Yelp marks as "Sponsored". They fill the places left after the regular results. Each business is saved only once per run, even if it shows up several times.

## Actor input object example

```json
{
  "keywords": [
    "pizza",
    "plumbers"
  ],
  "locations": [
    "New York, NY",
    "Houston, TX"
  ],
  "languages": "English (United States)",
  "sort": "Recommended",
  "price": [],
  "urls": [
    "https://www.yelp.com/search?find_desc=pizza&find_loc=New+York&attrs=OutdoorSeating%2CGoodForKids"
  ],
  "maxResults": 50,
  "include_ads": true
}
```

# Actor output Schema

## `overview` (type: `string`):

Table view of Yelp search results using the 'overview' view from dataset_schema.json.

## `rawResults` (type: `string`):

All Yelp search result items from the default dataset without a specific view.

# 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 = {
    "keywords": [
        "pizza"
    ],
    "locations": [
        "New York, NY"
    ],
    "maxResults": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("delicious_zebu/yelp-advanced-data-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 = {
    "keywords": ["pizza"],
    "locations": ["New York, NY"],
    "maxResults": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("delicious_zebu/yelp-advanced-data-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 '{
  "keywords": [
    "pizza"
  ],
  "locations": [
    "New York, NY"
  ],
  "maxResults": 50
}' |
apify call delicious_zebu/yelp-advanced-data-scraper --silent --output-dataset

```

## MCP server setup

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