---
title: "How to get Yelp data"
description: "Get a Yelp business’s details, rating distribution and full review text, 20 a page with keyword and date filters, as JSON. Yelp Fusion’s limits and prices, code and costs."
canonical_url: https://groundsocial.dev/guides/how-to-get-yelp-data
---
# How to get Yelp data

> Get a Yelp business’s details, rating distribution and full review text, 20 a page with keyword and date filters, as JSON. Yelp Fusion’s limits and prices, code and costs.

_Checked 2026-11-27._

Yelp’s official API is paid, and its reviews endpoint returns three excerpts per business. A data API reads Yelp’s public pages: one GET returns full review texts, 20 a page with rating, date and reactions, plus the rating distribution, 2 credits a page.

> **Checked 27 November 2026** Every request on this page was run against the live API on that date, and the sample response is from that run. Official-API facts link to the platform’s own pages.

## The official Yelp API

Yelp’s official API is Yelp Fusion (now the Yelp Places API).

- Yelp ended free commercial use in 2019 and moved developers to paid plans, reported in August 2024 as starting at $229 a month for 1,000 calls a day.
- The reviews endpoint returns at most 3 review excerpts per business on standard plans, not full text.
- Display and caching rules apply to everything it returns.

Sources: [Yelp Fusion](https://docs.developer.yelp.com/docs/fusion-intro), [TechCrunch, 2 Aug 2024](https://techcrunch.com/2024/08/02/yelps-lack-of-transparency-around-api-charges-angers-developers).

## Quick start

1. **Get a key.** [Sign up](https://groundsocial.dev/app/sign-in?new=1) with an email code: 100 free credits, no card. An agent can sign itself up with `POST https://api.groundsocial.dev/v1/agent/signup`.
2. **Set it in your shell.** `export GROUNDSOCIAL_API_KEY=gs_live_…`
3. **Make the call.** A business’s reviews: `GET /v1/yelp/businesses/katzs-delicatessen-new-york/reviews`, 2 credits.

cURL:

```bash
curl "https://api.groundsocial.dev/v1/yelp/businesses/katzs-delicatessen-new-york/reviews" \
  -H "Authorization: Bearer $GROUNDSOCIAL_API_KEY"
```

TypeScript:

```ts
const res = await fetch('https://api.groundsocial.dev/v1/yelp/businesses/katzs-delicatessen-new-york/reviews', {
  headers: { Authorization: `Bearer ${process.env.GROUNDSOCIAL_API_KEY}` },
})
if (!res.ok) throw new Error((await res.json()).error.hint)
const data = await res.json()
```

Python:

```python
import os, requests

res = requests.get(
    "https://api.groundsocial.dev/v1/yelp/businesses/katzs-delicatessen-new-york/reviews",
    headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()
```

## Sample response

Trimmed from the real response on 27 November 2026: lists cut to their first items and long strings shortened, private people’s names and handles cut to initials. Every field is described in the [tutorial](https://groundsocial.dev/tutorials/yelp/business-reviews/python).

```json
{
  "business": {
    "id": "V7lXZKBDzScDeGB8JmnzSA",
    "alias": "katzs-delicatessen-new-york",
    "name": "Katz's Delicatessen",
    "url": "https://www.yelp.com/biz/katzs-delicatessen-new-york",
    "rating": 4.1,
    "review_count": 17152,
    "rating_distribution": {
      "1": 1076,
      "2": 961,
      "3": 1911,
      "4": 4426,
      "5": 8783
    },
    "possible_languages": [
      {
        "language": "en",
        "count": 16962
      }
    ]
  },
  "total": 16962,
  "feed": "recommended",
  "reviews": [
    {
      "id": "gda9UOamGqZhPsL2TCwWAQ",
      "url": "https://www.yelp.com/biz/katzs-delicatessen-new-york?hrid=gda9UOamGqZhPsL2TCwWAQ",
      "text": "Is Katz's overrated? Absolutely not. We waited about 45 minutes outside and another 20 min…",
      "language": "en",
      "rating": 5,
      "time_created": "2026-11-20T12:21:22-05:00",
      "user": {
        "id": "WSptrgW8NLFBNvw1FOpifw",
        "name": "C. P.",
        "review_count": 589,
        "friend_count": 1004,
        "photo_count": 4609,
        "elite_year": "26"
      },
      "previous_review_count": 0,
      "is_first_review": false
    }
  ],
  "pagination": {
    "next_cursor": "eyJiIjoiVjdsWFpLQkR6U2NEZUdCOEptbnpTQSIsImsiOiJrYXR6cy1kZWxpY2F0ZXNzZW4tbmV3LXlvcmsiLCJmIj…",
    "has_more": true
  }
}
```

## Get every page

`/v1/yelp/businesses/katzs-delicatessen-new-york/reviews` returns reviews a page at a time, and each page costs 2 credits. Pass the response’s `pagination.next_cursor` back as `after` until it runs out.

TypeScript:

```ts
// Collect up to 3 pages of reviews.
const first = 'https://api.groundsocial.dev/v1/yelp/businesses/katzs-delicatessen-new-york/reviews'
const items: unknown[] = []
let cursor: string | undefined
for (let page = 0; page < 3; page++) {
  const url = new URL(first)
  if (cursor) url.searchParams.set('after', cursor)
  const res = await fetch(url, {
    headers: { Authorization: `Bearer ${process.env.GROUNDSOCIAL_API_KEY}` },
  })
  if (!res.ok) throw new Error((await res.json()).error.hint)
  const data = await res.json()
  items.push(...(data.reviews ?? []))
  cursor = data.pagination?.has_more ? data.pagination?.next_cursor : undefined
  if (!cursor) break
}
console.log(items.length, 'reviews')
```

Python:

```python
import os, requests

# Collect up to 3 pages of reviews.
FIRST = "https://api.groundsocial.dev/v1/yelp/businesses/katzs-delicatessen-new-york/reviews"
headers = {"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"}
items, cursor = [], None
for page in range(3):
    params = {"after": cursor} if cursor else {}
    res = requests.get(FIRST, params=params, headers=headers)
    res.raise_for_status()
    data = res.json()
    items += data.get("reviews") or []
    cursor = (data.get("pagination") or {}).get("next_cursor") if (data.get("pagination") or {}).get("has_more") else None
    if not cursor:
        break
print(len(items), "reviews")
```

## What else you can get from Yelp

| What you get | Endpoint | Credits |
| --- | --- | --- |
| [A business’s reviews](https://groundsocial.dev/tutorials/yelp/business-reviews/python) | `GET /v1/yelp/businesses/katzs-delicatessen-new-york/reviews` | 2 |
| [Business details and hours](https://groundsocial.dev/tutorials/yelp/business-info/python) | `GET /v1/yelp/businesses/katzs-delicatessen-new-york` | 1 |

Each row links to its tutorial. Every Yelp endpoint and price: [Yelp API](https://groundsocial.dev/yelp-api).

## Tips

- The business is the part after `/biz/` in its Yelp link; its Yelp id or full URL work too.
- `query=pastrami` returns only reviews mentioning a word; `rating=1,2` keeps negative ones.
- `since`/`until` bound dates, so a daily run fetches only new reviews. Later pages take `after` alone: the cursor carries the filters.

## Use it from Claude or Cursor (MCP)

Every endpoint is also an MCP tool on the remote server `https://api.groundsocial.dev/mcp`. The `?platforms=yelp` below loads only the Yelp tools. The client signs in with OAuth, or send your key as a Bearer token. Tools used in this guide: `yelp_business_reviews`, `yelp_business_info`.

Claude Code:

```bash
claude mcp add --transport http groundsocial "https://api.groundsocial.dev/mcp?platforms=yelp"
```

Cursor:

```json
{
  "mcpServers": {
    "groundsocial": {
      "url": "https://api.groundsocial.dev/mcp?platforms=yelp"
    }
  }
}
```

Claude.ai:

```text
Customize → Connectors → + Add → Add custom connector
URL: https://api.groundsocial.dev/mcp?platforms=yelp
```

> **Then ask** “Read the 60 newest Yelp reviews of Katz’s Delicatessen and tell me what people say about the wait.”

Setup for ChatGPT, VS Code, Windsurf, n8n and others: [MCP client setup](https://groundsocial.dev/mcp).

## Pricing

Pay per call from prepaid credits; no subscription. 100 free credits cover the examples on this page. Costs below are at the [credit packs](https://groundsocial.dev/pricing)’ highest and lowest rates.

| Job | Credits | Cost |
| --- | --- | --- |
| 1,000 reviews of one business (50 pages) | 100 | $0.10 → $0.04 |
| Latest page for 500 businesses | 1,000 | $1.00 → $0.40 |

## FAQ

### Do I get the reviewer’s details?

The name and counts Yelp shows publicly. Treat them as personal data: don’t profile people.

### Are failed calls charged?

No. A target that does not exist answers `404 target_not_found`, an upstream failure answers `503`, and neither costs anything. Credits never expire.

### Is Groundsocial official?

No. Groundsocial is an independent API that reads what the platform shows a logged-out visitor. Yelp is a trademark of its owner. We are not affiliated with or endorsed by it.

## Go deeper

- [Yelp tutorials: 3 endpoints in six languages](https://groundsocial.dev/tutorials/yelp)
- [Review monitoring API](https://groundsocial.dev/use-cases/review-monitoring-api)

## Related guides

- [How to get Tripadvisor data](https://groundsocial.dev/guides/how-to-get-tripadvisor-data)
- [How to get Google Maps data](https://groundsocial.dev/guides/how-to-get-google-maps-data)

Yelp is a trademark of its owner. We are not affiliated with or endorsed by it.

_Canonical HTML: https://groundsocial.dev/guides/how-to-get-yelp-data_

## Site Navigation

### Global Hub
- [Home](https://groundsocial.dev/index.md)
- [Pricing](https://groundsocial.dev/pricing.md)
- [Endpoints](https://groundsocial.dev/endpoints.md)
- [For agents](https://groundsocial.dev/agents.md)
- [Docs](https://groundsocial.dev/docs.md)
- [Compare](https://groundsocial.dev/compare.md)
- [Blog](https://groundsocial.dev/blog.md)
- [Tutorials](https://groundsocial.dev/tutorials.md)
- [Changelog](https://groundsocial.dev/changelog.md)
- [llms.txt](https://groundsocial.dev/llms.txt)
- [Agent skill](https://groundsocial.dev/SKILL.md)

### On This Topic
- [Groundsocial: Social data in one API call](https://groundsocial.dev/index.md)
- [Pricing](https://groundsocial.dev/pricing.md)
- [Playground](https://groundsocial.dev/playground.md)
- [Use cases](https://groundsocial.dev/use-cases.md)
- [Brand monitoring API](https://groundsocial.dev/use-cases/brand-monitoring-api.md)
- [Social listening API](https://groundsocial.dev/use-cases/social-listening-api.md)
- [Comment scraping API](https://groundsocial.dev/use-cases/comment-scraping-api.md)
- [Influencer discovery API](https://groundsocial.dev/use-cases/influencer-discovery-api.md)
- [Video transcript API](https://groundsocial.dev/use-cases/video-transcript-api.md)
- [Ad library API](https://groundsocial.dev/use-cases/ad-library-api.md)
- [Review monitoring API](https://groundsocial.dev/use-cases/review-monitoring-api.md)
- [Trend detection API](https://groundsocial.dev/use-cases/trend-detection-api.md)
- [Social lead generation API](https://groundsocial.dev/use-cases/lead-generation-api.md)
- [Market research API](https://groundsocial.dev/use-cases/market-research-api.md)

## Structured data

```json
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://groundsocial.dev/"},{"@type":"ListItem","position":2,"name":"Guides","item":"https://groundsocial.dev/guides"},{"@type":"ListItem","position":3,"name":"How to get Yelp data","item":"https://groundsocial.dev/guides/how-to-get-yelp-data"}]}
```
