# yelp.reviews

A page of a business's reviews on Yelp, 20 a page: rating, text, date, photos, reactions and the business's answer.

Yelp reviews, one of the Yelp scrapers.

| | |
| --- | --- |
| Id | `yelp.reviews` |
| Version | 1 |
| Billed per | request — 1 unit for a charged run |
| Runs | within one request |

Start it with `POST /v1/scrapers/yelp.reviews/runs`. How runs work is in [Running a scraper](https://docs.enrichednow.com/running-a-scraper.md); what a run costs is in [Usage and units](https://docs.enrichednow.com/usage-and-units.md).

## Inputs

The fields of `input`. A field that is not listed here is refused.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `business` | string | no | The business's name on Yelp, the last part of its page's address, e.g. `home-slice-pizza-austin`; or that address itself. Give this or `business_id`. Limit: at least 1 characters, at most 400 characters. |
| `business_id` | string | no | Yelp's id of the business, the `business_id` of a `yelp.business` record, e.g. `1Eq16r_MSnvPsnIykBdy9w`. With it the run does not read the business's page first. |
| `page` | integer | no | The page of the reviews, from 1; 20 reviews a page. Limit: 1 to 50. Default: `1`. |
| `sort` | "newest" \| "oldest" \| "highest_rated" \| "lowest_rated" \| "yelp" \| "elites" | no | The order: `newest`, `oldest`, `highest_rated`, `lowest_rated`, `yelp` (the order Yelp shows by default) or `elites` (reviews by Yelp's Elite members first). Default: `"newest"`. |
| `language` | string | no | The language of the reviews, as a two-letter code. Yelp lists a business's reviews one language at a time. Limit: matches ^[a-z]{2}$. Default: `"en"`. |

## Record fields

Every record of a run has these fields. A value that is not known is `null` — never an empty string and never `0`.

| Field | Type | Notes |
| --- | --- | --- |
| `position` | integer | The review's rank in the order asked for, from 1, counted across pages. Limit: at least 1. |
| `page` | integer | The page of the reviews it was on. Limit: at least 1. |
| `business_id` | string | Yelp's id of the business reviewed. |
| `business_alias` | string | The name Yelp files the business under, the last part of its page's address. |
| `review_id` | string | Yelp's id of the review. |
| `url` | string | The business's page on Yelp, opened at this review. |
| `rating` | integer | The stars the reviewer gave, 1 to 5. Limit: 1 to 5. |
| `text` | string or null | The review's text, in the language it was written in. |
| `language` | string or null | The language of the text, as a two-letter code. |
| `written_at` | string (date-time) | When the review was written, in the business's local time. |
| `photos` | array of string | The photos attached to the review. |
| `helpful` | integer or null | How many readers marked the review Helpful. |
| `thanks` | integer or null | How many readers reacted with Thanks. |
| `love_this` | integer or null | How many readers reacted with Love this. |
| `oh_no` | integer or null | How many readers reacted with Oh no. |
| `check_ins` | integer or null | How many times the reviewer checked in at the business, as Yelp shows beside the review. |
| `earlier_reviews` | integer | How many earlier reviews of the same business by the same reviewer this one updates. Default: `0`. |
| `reviewer_name` | string or null | The reviewer's display name, as the review shows it, e.g. `Jordan R.`. |
| `response` | string or null | The business's public answer to the review, when there is one. |
| `response_written_at` | string (date-time) or null | When that answer was written. |
| `fetched_at` | string (date-time) | When the reviews were read. |

## Example request

It starts a run with this scraper's example input and waits up to 60 seconds for it. The key is read from `ENRICHEDNOW_API_KEY`.

```bash
curl -X POST "https://api.enrichednow.com/v1/scrapers/yelp.reviews/runs?wait=60" \
  -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"business":"home-slice-pizza-austin"}}'
```

## Example response

The run, once it has ended. A run that has not ended within `wait` comes back with `202` and the status `queued` or `running`.

```json
{
  "id": "run_841742f37553189ff9c27ba1",
  "scraper_id": "yelp.reviews",
  "scraper_version": 1,
  "status": "ok",
  "reason": null,
  "input": {
    "business": "home-slice-pizza-austin"
  },
  "record_count": 1,
  "units": 1,
  "units_per_request": 1,
  "units_per_record": null,
  "units_per_page": null,
  "diagnostics": {
    "requests": 1,
    "bytes": 259214,
    "wall_ms": 885,
    "facts": {}
  },
  "created_at": "2026-11-16T22:37:50.170950Z",
  "started_at": "2026-11-16T22:37:50.178331Z",
  "finished_at": "2026-11-16T22:37:51.066313Z"
}
```

Its records, from `GET /v1/runs/{id}/records`. The record is a real one: this scraper's own parser read it from a page recorded from the site.

```json
{
  "records": [
    {
      "position": 1,
      "page": 1,
      "business_id": "1Eq16r_MSnvPsnIykBdy9w",
      "business_alias": "home-slice-pizza-austin",
      "review_id": "vPxmL8eHA2MKjHaLUizPaQ",
      "url": "https://www.yelp.com/biz/home-slice-pizza-austin?hrid=vPxmL8eHA2MKjHaLUizPaQ",
      "rating": 5,
      "text": "Pizza was great! Got the #5 pepperoni + mushroom and added basil and bell pepper, also threw on Mike's hot honey, parm, and chili flakes",
      "language": "en",
      "written_at": "2026-11-14T20:45:36-06:00",
      "photos": [
        "https://s3-media0.fl.yelpcdn.com/bphoto/_2dgdzQbROtup22dke_JGQ/o.jpg"
      ],
      "helpful": 0,
      "thanks": 0,
      "love_this": 0,
      "oh_no": 0,
      "check_ins": 0,
      "earlier_reviews": 0,
      "reviewer_name": null,
      "response": null,
      "response_written_at": null,
      "fetched_at": "2026-11-19T18:07:42.781089Z"
    }
  ],
  "next_cursor": null
}
```

What was done to the record for this page, and nothing else — the API returns every value whole. A text that was cut ends with `… [truncated]`.

- Left out: `reviewer_name`: it is the display name of a private person.

A run does not always end `ok`. [Results and statuses](https://docs.enrichednow.com/results-and-statuses.md#reason-codes) lists every status and the reasons every scraper shares; [the reasons of the Yelp scrapers](https://docs.enrichednow.com/results-and-statuses.md#yelp) are in their own section there.
