# Yelp: Search businesses

`yelp/businesses/search` · version 1.0.0 · pilot · 5 credits a call

One page of the businesses Yelp lists for a search, 10 at most, and the sponsored ones it shows with them: each business with its Yelp rating, categories, price, address, coordinates, this week's hours and a review's excerpt.

Categories: Lead generation, Restaurants

## When to use

You need the businesses Yelp lists for a search, as its results page shows them: what you would type in Yelp's search box (`query`: pizza, dentist, plumber, a business's name) and where (`location`: a city, a ZIP code, a neighborhood, an address). Each comes with its Yelp rating out of 5 and review count, categories, price level, street and neighborhood, coordinates, this week's opening hours, the excerpt of a review that matched the search, the highlights the business chose, its order or quote buttons, and its main photo. Narrow the list as Yelp's page does: a category (`category`), features (`features`: offers delivery, outdoor seating, free Wi-Fi), price levels (`price`), a box on the map (`map_area`); sort it by Yelp's recommendation, rating or review count. Follow `next` for the following page: Yelp lists 240 businesses at most for a search, 24 pages. The sponsored results Yelp shows with them (above the list and below it) come too, in the page's order, marked `sponsored`: where each was shown, the advertiser's campaign, the offer it promotes and its phone, to see who advertises on a search. For a business's reviews, use yelp/reviews/list with its `url` or `id`.

## Call

```bash
curl https://api.lobstr.io/v2/run \
  -H "Authorization: Bearer $LOBSTR_API_KEY" \
  -H "content-type: application/json" \
  -d '{"source": "yelp", "operation": "businesses/search", "options": {"query": "pizza", "location": "Brooklyn, NY", "page": 2}}'
```

It answers:

```json
{"object": "run", "status": "succeeded", "count": 10, "has_more": true, "next": {"source": "yelp", "operation": "businesses/search", "options": {...}},
 "cost": {"credits": 5}, "balance": {"credits": 9990}, "results": [...]}
```

`cost` and `balance` are objects: a call's credits are `cost.credits`. `results` holds the records (below). `next` is the whole call for the following page: send it as it is; `null` on the last page.

Beside `options`, the call takes:

| Parameter | Type | Description |
|---|---|---|
| `fields` | array of string | The record fields to keep, by path: inside an object with a dot (`ad.placement`), in each item of a list with `[]` (`categories[].alias`, or with a dot: `categories.alias`); `object`, `id` and `position` always come. Left out: every field. |
| `limit` | integer | Only the first N records of this call (1 to 1000), in the call's order; the call costs the same, and `next` keeps the limit. Left out: every record. |

## Options

| Option | Type | Required | Default | Description |
|---|---|---|---|---|
| `query` | string | yes |  | What you would type in Yelp's search box: a kind of business (pizza, dentist, plumber), a dish, or a business's name. Yelp always lists businesses near `location`: a search it cannot match lists others nearby. |
| `location` | string | yes |  | Where to search, as Yelp's location box takes it: a city with its state ("Brooklyn, NY"), a ZIP code (78701), a neighborhood ("Park Slope, Brooklyn, NY"), an address, or a city elsewhere ("Toronto, ON", "London, UK"). |
| `category` | string |  |  | Only the businesses of one Yelp category, by its alias, as the page's Category filter does: italian, pizza, coffee, generaldentistry, plumbing. A record's `categories` say each category's alias. |
| `features` | array of string |  |  | Only the businesses with all these features, by Yelp's names for them, as the page's filters do: RestaurantsDelivery (offers delivery), RestaurantsTakeOut, OnlineReservations, OutdoorSeating, WiFi.free, DogsAllowed, GoodForKids, Open24Hours, BusinessAcceptsApplePay, WheelchairAccessible. A name Yelp does not know is ignored by Yelp. |
| `price` | array of integer |  |  | Only these price levels, from 1 ($, inexpensive) to 4 ($$$$, very expensive): [1, 2] for $ and $$. |
| `sort` | `recommended`, `highest_rated`, `most_reviewed` |  | `"recommended"` | The order of the list: Yelp's own recommendation (its default), the highest rated first, or the most reviewed first. |
| `map_area` | object |  |  | Only the businesses inside this box on the map, as the page's "Search as map moves" and its distances (walking, within 4 blocks) do; `location` still names the place searched. In degrees: south and north latitudes, west and east longitudes. |
| `page` | integer, 1 to 24 |  | `1` | The page to start at, 10 businesses a page; `next` in an answer goes on from it with `cursor`. Yelp lists 240 businesses at most for a search: page 24 is the last. |
| `cursor` | string |  |  | Where to go on, from `next` in an answer, as it is: opaque, and only for the search it was given with (otherwise `invalid_cursor`). Leave it out to start at `page`. |

## Record

Each item of `results`. Every field is always present, `null` when the site gives nothing.

| Field | Type | Description |
|---|---|---|
| `object` | `"business"` | The kind of record: a business on Yelp. |
| `id` | string | Yelp's id for the business (22 letters and digits), as yelp/reviews/list takes it. |
| `alias` | string | null | The business's name in its page's address: yelp.com/biz/<alias>. |
| `position` | integer | null | Its rank in the search's results, across pages and without sponsored results: 11 is the first of page 2. Null for a sponsored result. |
| `sponsored` | boolean | Whether it is a sponsored result, an ad bought for the search; a business that advertises and also ranks comes twice, once each way. |
| `ad` | object | null | Where a sponsored result was shown and what it promotes; null for a result. |
| `ad.placement` | string | null | Where on the page: top (the block above the results) or bottom (below them); Yelp's own name for another place. |
| `ad.slot` | integer | null | Its place in that block, from 1. |
| `ad.campaign_id` | string | null | The advertiser's campaign on Yelp: the same id on every search the campaign appears in. |
| `ad.showcase` | boolean | Whether it is a Showcase ad, Yelp's larger ad with an offer. |
| `ad.offer` | object | null | The offer the ad promotes, when it promotes one. |
| `ad.offer.type` | string | null | special_offer. |
| `ad.offer.title` | string | Two pizzas and a dessert for $21.99. |
| `ad.offer.description` | string | null |  |
| `ad.offer.photo_url` | string | null (uri) |  |
| `ad.offer.button` | string | null | The offer's button: Order online. |
| `name` | string |  |
| `alternate_names` | array of string | Other names Yelp knows the business by, in other languages or scripts. |
| `phone` | string | null | E.164. Yelp's search says a sponsored result's phone, not a result's: null for those (the business's page has it). |
| `categories` | array | Yelp's categories for the business, the main one first. |
| `categories[].alias` | string | null | The category's alias, as `category` takes it: pizza. |
| `categories[].title` | string | Its name on Yelp: Pizza. |
| `categories[].root` | string | null | The family of categories it belongs to, by alias: restaurants, health, homeservices. |
| `price` | object | null | The business's price level, as Yelp shows it; null when Yelp gives none. |
| `price.display` | string | As the page shows it, in the place's currency symbol: $$, or €€ in Paris. |
| `price.level` | integer, 1 to 4 | From 1 (inexpensive) to 4 (very expensive), as `price` takes it. |
| `rating` | object | null | The average rating and how many reviews make it; null when the business has no review yet. |
| `rating.value` | number |  |
| `rating.scale` | `5` | The best possible value: ratings from other sites compare once divided by it. |
| `rating.count` | integer | The reviews Yelp recommends and counts on the business's page. |
| `address` | object | Where the business is, as Yelp lists it: the street address and the city (a search gives no postal code; its page does). |
| `address.street` | string | null | The street address: 237 5th Ave. Null for a business that serves an area from no public address. |
| `address.city` | string | null |  |
| `address.neighborhoods` | array of string | The neighborhoods Yelp files it under: Park Slope. |
| `service_area` | string | null | For a business that comes to its customers (a plumber, a mover): the area it serves, as Yelp names it. Null otherwise. |
| `location` | object | null | The business's point on Yelp's map. |
| `location.latitude` | number |  |
| `location.longitude` | number |  |
| `timezone` | string | null | The business's time zone, its hours' own: America/New_York. |
| `hours` | object | null | This week's opening hours, in the business's time, a holiday's special hours included: each day's openings, none on a day it is closed. A closing after midnight says the next day's time (03:00), midnight itself 24:00. Null when Yelp gives no hours. |
| `hours.monday` | array |  |
| `hours.monday[].open` | string |  |
| `hours.monday[].close` | string |  |
| `hours.tuesday` | array |  |
| `hours.tuesday[].open` | string |  |
| `hours.tuesday[].close` | string |  |
| `hours.wednesday` | array |  |
| `hours.wednesday[].open` | string |  |
| `hours.wednesday[].close` | string |  |
| `hours.thursday` | array |  |
| `hours.thursday[].open` | string |  |
| `hours.thursday[].close` | string |  |
| `hours.friday` | array |  |
| `hours.friday[].open` | string |  |
| `hours.friday[].close` | string |  |
| `hours.saturday` | array |  |
| `hours.saturday[].open` | string |  |
| `hours.saturday[].close` | string |  |
| `hours.sunday` | array |  |
| `hours.sunday[].open` | string |  |
| `hours.sunday[].close` | string |  |
| `snippet` | object | null | The excerpt Yelp shows under the business for this search; null when it shows none. |
| `snippet.type` | string | null | Where the excerpt comes from: review. |
| `snippet.text` | string | As the page shows it, cut by Yelp (it ends with ...). |
| `snippet.highlights` | array of string | The words of the excerpt Yelp shows in bold, those that matched the search: Delicious pizza. |
| `snippet.review_id` | string | null | The review's id on Yelp, as yelp/reviews/list's records give it. |
| `snippet.url` | string | null (uri) | The review on the business's page. |
| `highlights` | array | What the business chose to show about itself under its name: Established in 2009, Consultations available. |
| `highlights[].id` | string | null | Yelp's name for the highlight, the same in every search: YEARS_IN_BUSINESS. |
| `highlights[].title` | string |  |
| `tags` | array of string | The features of a filter the business has, as the page notes them under it: Pets allowed. |
| `actions` | array | The buttons the page shows with the business: order food through a delivery partner, request a quote. |
| `actions[].type` | `order`, `quote`, null | What the button does: order (food, through a partner), quote (ask the business for a quote); null for another kind, its label said. |
| `actions[].label` | string | Its text on the page: Start Order, Request a quote. |
| `actions[].partner` | string | null | The service an order goes through, as Yelp names it: DoorDash, grubhub_linkout. |
| `actions[].url` | string | null (uri) | Where the button leads: the partner's order page, or Yelp's quote form. |
| `actions[].note` | string | null | The line under the button, when there is one: 139 locals recently requested a quote. |
| `photo` | object | null | The business's main photo on Yelp. |
| `photo.id` | string |  |
| `photo.url` | string | null (uri) | The photo, 1000 pixels wide. |
| `photo.caption` | string | null |  |
| `photo.author` | string | null | Who posted it, as Yelp names them: Carmen H. |
| `photo.keywords` | array of string | What Yelp sees in it: pizza, food. |
| `photo.uploaded_at` | string | null (date-time) |  |
| `photos` | array of string | The photos the results list shows with the business. |
| `photos_url` | string | null (uri) | The business's page of photos on Yelp. |
| `portfolio_projects` | array | The work a service business shows under its name (a car wrapped, a kitchen redone). |
| `portfolio_projects[].id` | string | null |  |
| `portfolio_projects[].caption` | string | null |  |
| `portfolio_projects[].photo_url` | string | null (uri) |  |
| `verified_licenses` | array | The professional licenses Yelp verified for the business (a contractor, an electrician). |
| `verified_licenses[].trade` | string | null |  |
| `verified_licenses[].licensee` | string | null |  |
| `verified_licenses[].number` | string | null |  |
| `verified_licenses[].authority` | string | null | Who issued it. |
| `verified_licenses[].verified_on` | string | null | When Yelp verified it, as Yelp says it. |
| `verified_licenses[].expires_on` | string | null | When it expires (2027-01-31), where the search says it: on a sponsored result. |
| `container_business` | object | null | The place the business is inside of, on Yelp (a shopping center, a food hall); null otherwise. |
| `container_business.id` | string | null |  |
| `container_business.alias` | string | null |  |
| `container_business.name` | string | null |  |
| `yelp_guaranteed` | boolean | Whether the business is in Yelp Guaranteed, Yelp's guarantee on a service business's work. |
| `ids` | object |  |
| `ids.business_id` | string | Yelp's id for the business, as `id`. |
| `ids.alias` | string | null |  |
| `url` | string (uri) | The business's page on Yelp. |
| `source_url` | string (uri) | The search's page on Yelp, at this page. |
| `observed_at` | string (date-time) |  |

Example:

```json
{
  "object": "business",
  "id": "Ab3Kd8Zq1Vx6Mb2Ny9Lr4T",
  "alias": "acme-pizza-brooklyn",
  "position": 11,
  "sponsored": false,
  "ad": null,
  "name": "Acme Pizza",
  "alternate_names": [],
  "phone": null,
  "categories": [
    {
      "alias": "pizza",
      "title": "Pizza",
      "root": "restaurants"
    }
  ],
  "price": {
    "display": "$$",
    "level": 2
  },
  "rating": {
    "value": 4.3,
    "scale": 5,
    "count": 117
  },
  "address": {
    "street": "100 5th Ave",
    "city": "Brooklyn",
    "neighborhoods": [
      "Park Slope"
    ]
  },
  "service_area": null,
  "location": {
    "latitude": 40.6752,
    "longitude": -73.981
  },
  "timezone": "America/New_York",
  "hours": {
    "monday": [
      {
        "open": "11:30",
        "close": "21:00"
      }
    ],
    "tuesday": [
      {
        "open": "11:30",
        "close": "21:00"
      }
    ],
    "wednesday": [
      {
        "open": "11:30",
        "close": "21:00"
      }
    ],
    "thursday": [
      {
        "open": "11:30",
        "close": "21:00"
      }
    ],
    "friday": [
      {
        "open": "11:30",
        "close": "23:00"
      }
    ],
    "saturday": [
      {
        "open": "12:00",
        "close": "01:00"
      }
    ],
    "sunday": []
  },
  "snippet": {
    "type": "review",
    "text": "Great neighborhood spot with a modern twist. Delicious pizza and a great selection of...",
    "highlights": [
      "Delicious pizza"
    ],
    "review_id": "Rv7Qm2Lx9Kp4Tz1Wn8Hc5A",
    "url": "https://www.yelp.com/biz/acme-pizza-brooklyn?hrid=Rv7Qm2Lx9Kp4Tz1Wn8Hc5A"
  },
  "highlights": [
    {
      "id": "ESTABLISHED_IN",
      "title": "Established in 2009"
    }
  ],
  "tags": [],
  "actions": [
    {
      "type": "order",
      "label": "Start Order",
      "partner": "DoorDash",
      "url": "https://www.doordash.com/store/00000000?src=yp",
      "note": null
    }
  ],
  "photo": {
    "id": "Ph3Kd8Zq1Vx6Mb2Ny9Lr4T",
    "url": "https://s3-media0.fl.yelpcdn.com/bphoto/Ph3Kd8Zq1Vx6Mb2Ny9Lr4T/1000s.jpg",
    "caption": "Margherita and pepperoni slices",
    "author": "Jane D.",
    "keywords": [
      "pizza",
      "food"
    ],
    "uploaded_at": "2025-02-27T10:10:46Z"
  },
  "photos": [
    "https://s3-media0.fl.yelpcdn.com/bphoto/Ph3Kd8Zq1Vx6Mb2Ny9Lr4T/ls.jpg"
  ],
  "photos_url": "https://www.yelp.com/biz_photos/Ab3Kd8Zq1Vx6Mb2Ny9Lr4T",
  "portfolio_projects": [],
  "verified_licenses": [],
  "container_business": null,
  "yelp_guaranteed": false,
  "ids": {
    "business_id": "Ab3Kd8Zq1Vx6Mb2Ny9Lr4T",
    "alias": "acme-pizza-brooklyn"
  },
  "url": "https://www.yelp.com/biz/acme-pizza-brooklyn",
  "source_url": "https://www.yelp.com/search?find_desc=pizza&find_loc=Brooklyn%2C+NY&start=10",
  "observed_at": "2026-12-06T10:00:00Z"
}
```

## Price

5 credits per call that returns businesses: a page of up to 10, with the sponsored results shown on it. An empty answer and a failed call are free.

## Errors

| Code | Status | Retry | Message |
|---|---|---|---|
| `invalid_input` | 422 | no | Pass a `query` and a `location`, and filters as Yelp's page offers them: a category's alias, Yelp's feature names, price levels from 1 to 4, a map box with south below north and west left of east, a page from 1 to 24. |
| `site_challenge` | 503 | yes | Yelp's anti-bot refused the request; retry in a minute (not charged). |
| `site_unavailable` | 503 | yes | Yelp did not answer properly; retry later (not charged). |
| `unexpected_answer` | 424 | no | Yelp answered in a shape we do not read yet; we are told and fix it (not charged). |
| `missing_api_key` | 401 | no | No API key: send it as `Authorization: Bearer <key>`. |
| `invalid_api_key` | 401 | no | The key is not valid, or not anymore. |
| `insufficient_credits` | 402 | no | The call costs more credits than are left. |
| `unknown_operation` | 404 | no | No such source and operation in the catalog. |
| `timeout` | 408 | yes | The call did not finish within its deadline (not charged). |
| `invalid_body` | 422 | no | The body is not a call: source, operation, options. |
| `invalid_options` | 422 | no | An option is missing or out of its contract; `param` names it. |
| `invalid_idempotency_key` | 400 | no | The Idempotency-Key header is not printable ASCII, or too long. |
| `concurrency_limit` | 429 | yes | The plan's calls at a time are all in progress (Free 1, Starter 2, Pro 10, Team 50); retry when one has finished (not charged, never queued). |
| `service_busy` | 503 | yes | Too many calls at once on the account; retry in a few seconds. |
| `balance_unavailable` | 503 | yes | The balance could not be read; retry in a few seconds. |

## Changelog

- **1.0.0** (2026-12-06): First version: Yelp's search results, 10 a page to 24 pages, each with its rating, categories, price, address, coordinates, this week's hours, a review's excerpt, highlights, order and quote buttons and main photo; filtered by category, features, price and map area, sorted three ways. The sponsored results shown with them come too, with their placement, campaign, offer and phone.

Schema: https://api.lobstr.io/v2/catalog/yelp/businesses/search · All operations: https://api.lobstr.io/v2/catalog.md
