# Yelp Reviews Dataset for NLP and Sentiment Analysis

**Use case:** 

Build a fresh Yelp reviews dataset for NLP, sentiment analysis or model training. Older public Yelp datasets are fixed snapshots of selected cities. This task collects current reviews of any business you choose, with full text, star rating as a label, date and language. This example saves 500 reviews of Mon Ami Gabi in Las Vegas without reviewer personal data. Set the limit to 0 for all.

## Input

```json
{
  "businesses": [
    "https://www.yelp.com/biz/mon-ami-gabi-las-vegas"
  ],
  "maxReviewsPerBusiness": 500,
  "onlyNewReviews": false,
  "sortBy": "newest",
  "ratings": [],
  "languages": [],
  "keywords": [],
  "maxBusinessesPerSearch": 10,
  "includeReviewerDetails": false
}
```

## Output

```json
{
  "businessName": {
    "label": "Business",
    "format": "text"
  },
  "rating": {
    "label": "Stars",
    "format": "number"
  },
  "date": {
    "label": "Date",
    "format": "date"
  },
  "text": {
    "label": "Review",
    "format": "text"
  },
  "language": {
    "label": "Lang",
    "format": "text"
  },
  "reviewerName": {
    "label": "Reviewer",
    "format": "text"
  },
  "usefulCount": {
    "label": "Useful",
    "format": "number"
  },
  "photoCount": {
    "label": "Photos",
    "format": "number"
  },
  "ownerReply": {
    "label": "Owner reply",
    "format": "text"
  },
  "reviewUrl": {
    "label": "Link",
    "format": "link"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Yelp Reviews Scraper & API: All Reviews, Owner Replies Actor is ready to run with the inputs already set for "Yelp Reviews Dataset for NLP and Sentiment Analysis". [Sign up or log in](https://console.apify.com/create-task-from-example/zMBnxGYIUIZGMXHWJ) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Yelp Reviews Dataset for NLP and Sentiment Analysis" task

The Yelp Reviews Scraper & API: All Reviews, Owner Replies Actor will start running based on the input automatically. You can also change all the input fields, like businesses, max reviews per business, and more, to match your specific use case.

### 3. Receive the "Yelp Reviews Dataset for NLP and Sentiment Analysis" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as business, stars, date, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Yelp Reviews Dataset for NLP and Sentiment Analysis" task via API](https://apify.com/epicscrapers/yelp-reviews-scraper.md).

## FAQ

### How is this different from the Yelp Open Dataset?

The Yelp Open Dataset is a fixed snapshot of selected metro areas for academic use. This task collects current reviews of any business, city or category you choose.

### How is it different from yelp_review_full on Kaggle or Hugging Face?

Those are older static datasets with text and stars only. Here you get current reviews with dates, language, owner replies, votes and business details.

### What labels does each review have?

The 1 to 5 star rating, date, language, useful/funny/cool vote counts, whether the business replied, and whether the review was edited.

### Can I build a multilingual dataset?

Yes. Leave Review languages empty to collect every language a business has, or pick codes such as "es", "fr", "de" or "ja".

### Can I get a balanced dataset across star ratings?

Yes. Run the task once per star rating (Star ratings set to one value) with the same Max reviews per business, so each rating gets the same number of reviews.

### Does the dataset contain personal data?

Not in this example: Include reviewer details is off, so reviewer names and profiles are null. Turn it on only if you have a lawful basis.

### How large a dataset can I build?

There is no fixed cap. Add many businesses or Yelp search URLs and set Max reviews per business to 0. 13,183 reviews of one business took under 2 minutes.

### Which formats can I download?

CSV, JSON, JSONL, Excel, XML and HTML from the Output tab, or the Apify API and Python client to load it straight into pandas.

### How much does a dataset cost?

It costs $0.25 per 1,000 reviews saved, with no start fee and no subscription. Apify's free plan credit covers about 20,000 reviews a month. A 10,000-review dataset costs $2.50.

### Can I use the dataset to train a model?

Check Yelp's terms and the laws that apply to you before training or publishing models on review text. You are responsible for how you use the data.

## About this Actor

This example demonstrates how to use [Yelp Reviews Scraper & API: All Reviews, Owner Replies](https://apify.com/epicscrapers/yelp-reviews-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/epicscrapers/yelp-reviews-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/epicscrapers/yelp-reviews-scraper.md

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`).
