---
title: "Yelp Business Search API | ScrapeReviews"
description: "Find Yelp businesses by name near a location and get their aliases as JSON, to read their details and reviews with one more call. Any country."
url: "https://scrapereviews.com/docs/api/yelp-search"
markdown: "https://scrapereviews.com/docs/api/yelp-search.md"
---

# Yelp search endpoint

GET`https://api.scrapereviews.com/v1/yelp/businesses/search`1 credit per call, up to 10 results (also when nothing matches)

The Yelp search endpoint finds businesses by name near a location, from the suggestions of Yelp’s search box: usually one to five businesses, with their alias (handle), name, URL and address. Results carry no rating: call the business endpoint for it.

Give location (a city or an address): without it Yelp suggests categories, not businesses. Yelp’s full search results page is not available, so this endpoint is for finding a business you know, not for listing every business of a category.

## Parameters

#### Query parameters

| Parameter | Type         | Default  | Description                                                          |
| --------- | ------------ | -------- | -------------------------------------------------------------------- |
| query     | string       | required | Business name (1-200 characters)                                     |
| location  | string       | \-       | City or address, e.g. San Francisco, CA (needed to get businesses)   |
| limit     | integer 1-10 | 10       | Results per response                                                 |
| cursor    | string       | \-       | meta.next\_cursor of the previous response, with the same parameters |

Authenticate with your API key in the `X-API-Key` header or as `Authorization: Bearer` (see [authentication](https://scrapereviews.com/docs/authentication.md)).

## Example request

```bash
curl "https://api.scrapereviews.com/v1/yelp/businesses/search?query=gary%20danko&location=San%20Francisco%2C%20CA" \
  -H "X-API-Key: sr_your_api_key"
```

## Response

Shape

```text
{ "data": Entity[], "meta": ListMeta }
```

Example (shortened)

```jsonc
{
  "data": [
    { "source": "yelp", "type": "business", "id": "gary-danko-san-francisco", "handle": "gary-danko-san-francisco",
      "name": "Gary Danko", "url": "https://www.yelp.com/biz/gary-danko-san-francisco", "rating": null,
      "rating_scale": 5, "extra": { "alias": "gary-danko-san-francisco", "address": "800 N Point St, San Francisco" } }
  ],
  "meta": { "credits_used": 1, "cache_hit": false, "count": 1, "total": null, "has_more": false, "next_cursor": null }
}
```

Every field is described in the [response models](https://scrapereviews.com/docs/api.md#models). Successful responses also carry the `X-Credits-Used` header.

## Cost

Search costs 1 credit per call, up to 10 results (also when nothing matches).

Only successful calls are billed: every error costs 0 credits. You get 30 free calls every month; see [pricing](https://scrapereviews.com/pricing.md) for credit packs.

## Errors

Errors come with an HTTP status and this JSON body: branch on `detail.error`, show `detail.message` to humans.

Example error

```json
{
  "detail": { "error": "invalid_parameter", "message": "query must not be empty" }
}
```

| HTTP | error                               | Meaning                                                                                                                        |
| ---- | ----------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| 400  | invalid\_parameter                  | A parameter is invalid: bad domain, stars, language or date, missing query, limit out of range...                              |
| 401  | missing\_api\_key                   | No API key in X-API-Key or Authorization: Bearer.                                                                              |
| 401  | invalid\_api\_key                   | The key does not exist or has been revoked.                                                                                    |
| 402  | insufficient\_credits               | Your credit balance is 0.                                                                                                      |
| 422  | invalid\_cursor                     | The cursor is malformed, tampered with, or was created for other filters.                                                      |
| 429  | rate\_limit\_exceeded               | Too many requests per minute.                                                                                                  |
| 429  | insufficient\_credits\_retry\_later | The balance ran out on recent calls and the key is cooling down.                                                               |
| 502  | upstream\_changed                   | The source (Trustpilot, App Store or Google Play, named in the message) changed its format and the response could not be read. |
| 503  | upstream\_blocked                   | The source is temporarily blocking requests.                                                                                   |
| 503  | feature\_disabled                   | The endpoint is temporarily switched off by us (detail.feature names it). The call is not billed.                              |
| 504  | upstream\_timeout                   | The source did not answer in time.                                                                                             |

What to do for each code: [error handling](https://scrapereviews.com/docs/errors.md).

## Use cases

- Turn a list of business names and cities into Yelp aliases.
- Check that a business is listed on Yelp.

Related endpoints

- [Yelp business](https://scrapereviews.com/docs/api/yelp-business.md) GET /v1/yelp/businesses/{business\_id}: A Yelp business: rating, review count and distribution, categories, address, phone, price range.
- [Yelp reviews](https://scrapereviews.com/docs/api/yelp-reviews.md) GET /v1/yelp/businesses/{business\_id}/reviews: Reviews of a Yelp business with sort, star, text, language and date filters, and the owner’s replies.

ScrapeReviews is an independent service and is not affiliated with or endorsed by Yelp.
