# Yelp Scraper – Business Listings, Ratings, Reviews & Contacts (`rl1987/yelp-api-scraper`) Actor

Scrape Yelp business listings by search term and location. Each row: name, rating, review count, price level, categories, phone, full address, geo, hours and photos — plus optional attributes, health score and reviews per business. No Yelp account or API key needed.

- **URL**: https://apify.com/rl1987/yelp-api-scraper.md
- **Developed by:** [R.L.](https://apify.com/rl1987) (community)
- **Categories:** Lead generation, Real estate
- **Features:** Limited permissions
- **Stats:** 12 total users, 4 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.54 / 1,000 business rows

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 Scraper — Business Listings, Ratings, Reviews, Hours, Photos & Contact Details

**Yelp Scraper** — Scrape Yelp business listings by search term and location. Each row carries name, rating, review count, price level, categories, phone, full address, geo, hours and photos, plus optional attributes, health score and reviews per business. It reads Yelp's own mobile API directly, so it's **fast, reliable and complete** — no login, no flaky HTML parsing, no headless browser. Export to **JSON, CSV, Excel, or an API**.

> Search any US city, ZIP or neighborhood by keyword — get full business listings with ratings, reviews, price, hours, photos, phone and geo, straight from Yelp's own mobile API.

***

### Why use this Yelp Scraper?

- Human-friendly inputs — just a search term and a location string; no raw IDs or coordinates.
- Full field coverage per business: rating, review count, price, categories, address, geo, phone, hours, photos and more.
- Optional per-business enrichment: complete detail (attributes, hours, health score, owner) and reviews with summary.
- Talks to Yelp's own mobile API (not the bot-walled website), so results match the app.

***

### What can you do with Yelp data?

- Build a local-business directory or lead list for a city or category.
- Monitor ratings, review counts and price levels of competitors.
- Enrich a CRM with verified phone numbers, addresses and opening hours.
- Analyze a market — categories, geo distribution and popularity by neighborhood.

***

### What data does the Yelp Scraper extract?

Each row includes: `id`, `alias`, `name`, `url`, `rating`, `unrounded_rating`, `review_count`, `price_level`, `price`, `categories`, `phone`, `localized_phone`, `address`, `city` …and more. See the full field list below.

***

### How do I scrape Yelp.com? (3 steps)

1. **Set your input** — provide `term` or `location` (see the table below; defaults work out of the box).
2. **Pick options** — filters, a `proxyConfiguration`, and a `maxItems` cap.
3. **Run & export** — click **Start**, then download the dataset as JSON/CSV/Excel or fetch it via the API.

***

### What inputs does it take?

| Field | Type | Default | Description |
| --- | --- | --- | --- |
| `term` | string | `coffee` | What to search for, e.g. 'coffee', 'plumbers', 'sushi'. |
| `location` | string | `San Francisco, CA` | City, neighborhood, address or ZIP — e.g. 'San Francisco, CA'. Yelp resolves it server-side. |
| `includeDetails` | boolean | `false` | Fetch the full business page (all attributes, hours, health score, owner info) for each result. |
| `includeReviews` | boolean | `false` | Fetch reviews and the per-language review-count summary for each result. |
| `maxItems` | integer | `40` | Maximum number of businesses to return (0 = as many as the API paginates). |
| `proxyConfiguration` | object | Apify Proxy | Route requests through a proxy (Apify Proxy by default). |

#### Example input

```jsonc
{
  "term": "coffee",
  "location": "San Francisco, CA",
  "includeDetails": false,
  "includeReviews": false,
  "maxItems": 40,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

***

### What does a result row look like?

Each result is a JSON object like this:

```jsonc
{
  "id": "24ym9XJUS2i9JlSFEJeZ2w",
  "alias": "the-coffee-movement-san-francisco",
  "name": "The Coffee Movement",
  "url": "https://www.yelp.com/biz/the-coffee-movement-san-francisco",
  "rating": 4.5,
  "unrounded_rating": 4.6,
  "review_count": 750,
  "price_level": "$$",
  "price": 2,
  "categories": [
    {
      "name": "Coffee & Tea",
      "alias": "coffee",
      "is_restaurant": false
    }
  ],
  "phone": "4152373375",
  "localized_phone": "(415) 237-3375",
  "address": "1030 Washington St",
  "city": "San Francisco",
  "state": "CA",
  "zip": "94108",
  "country": "US",
  "neighborhoods": [
    "Nob Hill"
  ],
  "latitude": 37.794825,
  "longitude": -122.4103212,
  "timezone": "America/Los_Angeles",
  "is_closed": false,
  "photo_count": 1885,
  "photos": [
    {
      "id": "7xnjaGpC1Gn8eXC7lvPU3w",
      "url": "https://s3-media0.fl.yelpcdn.com/bphoto/7xnjaGpC1Gn8eXC7lvPU3w/l.jpg",
      "url_original": "https://s3-media0.fl.yelpcdn.com/bphoto/7xnjaGpC1Gn8eXC7lvPU3w/o.jpg",
      "caption": "Cortado (~$4)",
      "width": 2800,
      "height": 3733,
      "type": "business"
    },
    {
      "id": "phipK7re5PrtBOZXi5jEHw",
      "url": "https://s3-media0.fl.yelpcdn.com/bphoto/phipK7re5PrtBOZXi5jEHw/l.jpg",
      "url_original": "https://s3-media0.fl.yelpcdn.com/bphoto/phipK7re5PrtBOZXi5jEHw/o.jpg",
      "caption": "Iced Vanilla Rosemary Latte (~$6)",
      "width": 4284,
      "height": 5712,
      "type": "business"
    },
    "…+1 more"
  ],
  "primary_photo": "https://s3-media0.fl.yelpcdn.com/bphoto/7xnjaGpC1Gn8eXC7lvPU3w/o.jpg",
  "hours": [
    "Mon-Fri 7:00 am - 2:00 pm",
    "Sat-Sun 7:00 am - 4:00 pm"
  ],
  "attributes": [
    {
      "id": "RestaurantsDelivery",
      "label": "Offers Delivery",
      "value": "No"
    },
    {
      "id": "RestaurantsTakeOut",
      "label": "Offers Takeout",
      "value": "Yes"
    },
    "…+14 more"
  ],
  "health_score": "Pass",
  "menu_url": "https://www.thecoffeemovement.com/menu",
  "website_url": "http://thecoffeemovement.com",
  "reviews": [
    {
      "id": "DioPsvaDWXqGt4Xac01O_Q",
      "rating": 5,
      "text": "Coffee Movement is a spot for folks who truly appreciate the simplicity of a great espresso.\n\nI've been to Coffee Movement a couple of times and have thoroug…",
      "language": "en",
      "time_created": null,
      "time_modified": 1781837480,
      "feedback": {
        "…": "3 fields"
      },
      "user": null
    },
    {
      "id": "wMbh9da-2wW40vqejvkRsw",
      "rating": 4,
      "text": "The Coffee Movement is a small specialty coffee shop that focuses on doing a few things extremely well. We walked into a minimalist, compact space with limit…",
      "language": "en",
      "time_created": null,
      "time_modified": 1781993163,
      "feedback": {
        "…": "3 fields"
      },
      "user": null
    },
    "…+8 more"
  ],
  "review_summary": {
    "language_review_counts": {
      "en": 747,
      "zh": 2,
      "de": 1
    },
    "not_recommended_review_count": 46
  }
}
```

> Fields marked *(detail)* — `attributes`, `health_score`, `health_score_detail`, `from_this_business`, `menu_url`, `website_url`, `share_url` — are only populated when **Include full business detail** is on. `reviews` and `review_summary` come from **Include reviews**, which is a separate option.

***

### Which fields does each row contain?

| Field | Type | Description |
| --- | --- | --- |
| `id` | text | Business ID |
| `alias` | text | Alias |
| `name` | text | Name |
| `url` | link | Yelp URL |
| `rating` | number | Rating |
| `unrounded_rating` | number | Unrounded rating |
| `review_count` | number | Review count |
| `price_level` | text | Price level |
| `price` | number | Price (1-4) |
| `categories` | array | Categories |
| `phone` | text | Phone, digits only |
| `localized_phone` | text | Phone formatted for the country |
| `dialable_phone` | text | Phone as a dialable string |
| `address` | text | Street address (line 1) |
| `address2` | text | Street address (line 2) |
| `localized_address` | text | Full address as Yelp renders it |
| `cross_streets` | text | Cross streets |
| `city` | text | City |
| `state` | text | State |
| `zip` | text | ZIP |
| `country` | text | Country |
| `neighborhoods` | array | Neighborhoods |
| `latitude` | number | Latitude |
| `longitude` | number | Longitude |
| `timezone` | text | Timezone |
| `is_closed` | boolean | Permanently closed |
| `is_temp_closed` | boolean | Temporarily closed |
| `is_chain` | boolean | Part of a chain |
| `is_yelp_guaranteed` | boolean | Covered by Yelp Guaranteed |
| `photo_count` | number | Photo count |
| `video_count` | number | Video count |
| `photos` | array | Photos (id, url, url_original, caption, width, height, type) |
| `primary_photo` | link | Primary photo |
| `hours` | array | Hours as display strings |
| `hours_raw` | array | Hours as Yelp's structured objects |
| `attributes` | array | Attributes *(detail)* |
| `health_score` | text | Health score *(detail)* |
| `health_score_detail` | object | Health score with inspection metadata *(detail)* |
| `from_this_business` | object | "From this business" owner content *(detail)* |
| `menu_url` | text | Menu URL *(detail, when Yelp has one)* |
| `website_url` | link | Business website *(detail, when Yelp has one)* |
| `share_url` | link | Yelp share URL *(detail, when Yelp has one)* |
| `reviews` | array | Reviews *(reviews)* |
| `review_summary` | object | Review counts per language + not-recommended count *(reviews)* |

***

### What do the Yelp-specific fields mean?

- **`alias`** — the slug Yelp uses in its own URLs, e.g. `the-coffee-movement-san-francisco`; `url` is built from it.
- **`price` / `price_level`** — `price` is Yelp's 1-4 price band as a number; `price_level` is the same band as Yelp displays it (`$`, `$$`, `$$$`, `$$$$`).
- **`rating` / `unrounded_rating`** — `rating` is the star rating rounded to the nearest half star (what the app shows); `unrounded_rating` is the raw average behind it.
- **`health_score`** — the health-inspection result Yelp publishes for the business (e.g. `Pass`), only where the local health authority feeds Yelp that data.
- **`not_recommended_review_count`** (in `review_summary`) — how many reviews Yelp's filter treats as not recommended; those reviews are not returned in `reviews`.
- **`is_yelp_guaranteed`** — the flag Yelp sets when the business takes part in Yelp Guaranteed.

***

### How much does it cost?

The current price of every event is on the **Pricing** tab of this Actor's page in Apify Store. That tab is generated from the Actor's own pricing record, so it is always current, and your plan's rung is applied automatically. A figure repeated here would be a second copy that drifts out of date.

You can cap what any single run may spend with **Max total charge**.

### How do I run it from my own code?

Run it programmatically with the [Apify API](https://docs.apify.com/api/v2):

```bash
curl -X POST "https://api.apify.com/v2/acts/yelp-api-scraper/runs?token=YOUR_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
  "term": "coffee",
  "location": "San Francisco, CA",
  "includeDetails": false,
  "includeReviews": false,
  "maxItems": 40,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}'
```

Or with the Apify CLI: `apify call yelp-api-scraper -i input.json -o`.

***

### FAQ

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

No. The scraper uses guest access to Yelp's mobile API — no login, no Fusion API key, no quota.

**What do I type for the location?**

Anything a person would: a city ('San Francisco, CA'), a ZIP code, a neighborhood or an address. Yelp resolves it server-side.

**Which countries does this work in?**

Only countries Yelp itself operates in — Yelp has no listings outside these, so any other location fails with "Bad location":

United States, Canada, Austria, Belgium, Chile, Czech Republic, Denmark, France, Germany, Greece, Iceland, Indonesia, Ireland, Italy, Malaysia, Mexico, Netherlands, New Zealand, Norway, Philippines, Poland, Singapore, South Africa, Spain, Sweden, Switzerland, Turkey, United Kingdom.

Coverage is patchy and thin outside the US/Canada — expect the most complete results there.

**Why is a proxy recommended?**

Yelp's edge blocks datacenter IPs. Use Apify Proxy (default) or supply your own residential/ISP proxy so requests come from a clean IP.

**Can I get full reviews and hours?**

Yes — enable 'Include full business detail' and 'Include reviews' to fetch complete hours, attributes, health score, owner info and reviews per business.

**Can I run it on a schedule?**

Yes. Add the actor to an Apify schedule (hourly, daily, weekly) and each run re-scrapes the same term and location, so you can track ratings and review counts over time. Every run is billed by the rows it delivers.

**How do I keep the cost bounded?**

Set `maxItems` — it stops the run at that many businesses (default 40). Leave it at `0` only if you want every page Yelp will serve. Enrichment is opt-in per option, so a search-only run stays at the base per-row price.

**What happens if a business's detail or review fetch fails?**

The row is still pushed with everything the search card gave, a warning naming the business appears in the log, and no enrichment event is charged for it — you only pay for enrichment that actually returned data. If a later page of search results keeps failing, the run stops paginating and keeps the rows already collected instead of failing.

***

### How does it work?

The actor impersonates Yelp's official app/site and calls its private API the same way the app does, then normalises each response into the flat record above. No browser, no HTML scraping — just clean, structured data.

***

### Good to know

- Scrape only public local business listing data and respect Yelp.com's Terms of Service and robots policy.
- For personal data, comply with GDPR/CCPA and applicable law — you are the data controller.
- Fields can be `null` when Yelp doesn't expose them for a given record.
- Input is a search term plus a location — there is no "scrape this one Yelp URL" mode. Search for the business by name and its city to get its row.

***

### Found this useful?

Give the **Yelp Scraper** a star on Apify and check out my other `apify-*-api-scraper` actors.

# Actor input Schema

## `term` (type: `string`):

What to search for, e.g. 'coffee', 'plumbers', 'sushi'.

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

City, neighborhood, address or ZIP — e.g. 'San Francisco, CA'. Yelp resolves it server-side.

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

Fetch the full business page (all attributes, hours, health score, owner info) for each result.

## `includeReviews` (type: `boolean`):

Fetch reviews and the per-language review-count summary for each result.

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

Maximum number of businesses to return (0 = as many as the API paginates).

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

Route requests through a proxy (Apify Proxy by default).

## Actor input object example

```json
{
  "term": "coffee",
  "location": "San Francisco, CA",
  "includeDetails": false,
  "includeReviews": false,
  "maxItems": 40,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "term": "coffee",
    "location": "San Francisco, CA",
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("rl1987/yelp-api-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 = {
    "term": "coffee",
    "location": "San Francisco, CA",
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("rl1987/yelp-api-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 '{
  "term": "coffee",
  "location": "San Francisco, CA",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call rl1987/yelp-api-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,rl1987/yelp-api-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/49hKlsY6mISNJeWyi/builds/XToKiempU8UHLmqCG/openapi.json
