NEW AI Studio is now available Try it now
Reviews

Yelp Scraper

Extract business listings, ratings, reviews, and location data from Yelp. Powered by spider-browser .

Get Started Documentation
yelp.com target
99.5% success rate
~4ms latency
Quick Start

Extract data in minutes

yelp-scraper.ts
import { SpiderBrowser } from "spider-browser";

const spider = new SpiderBrowser({
  apiKey: process.env.SPIDER_API_KEY!,
  stealth: 2,
});

await spider.connect();
const page = spider.page!;
await page.goto("https://www.yelp.com/search?find_desc=restaurants&find_loc=San+Francisco");
await page.content(10000);

const data = await page.evaluate(`(() => {
  const businesses = [];
  document.querySelectorAll("[data-testid='serp-ia-card']").forEach(el => {
    const name = el.querySelector("a[data-testid='biz-name']")?.textContent?.trim();
    const rating = el.querySelector("[aria-label*='star rating']")?.getAttribute("aria-label");
    const reviews = el.querySelector("[data-font-weight='semibold']")?.textContent?.trim();
    const categories = el.querySelector("[class*='priceCategory']")?.textContent?.trim();
    if (name) businesses.push({ name, rating, reviews, categories });
  });
  return JSON.stringify({ total: businesses.length, businesses: businesses.slice(0, 10) });
})()`);

console.log(JSON.parse(data));
await spider.close();
✓ ready to run | spider-browser | TypeScript
Fetch API

Structured data endpoint

Extract structured JSON from yelp.com with a single POST request. AI-configured selectors, cached for fast repeat calls.

POST /fetch/yelp.com/
Business nameRatingReview countAddressPhonePrice range
curl
curl -X POST https://api.spider.cloud/fetch/yelp.com/ \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"return_format": "json"}'
Python
import requests

resp = requests.post(
    "https://api.spider.cloud/fetch/yelp.com/",
    headers={
        "Authorization": "Bearer YOUR_API_KEY",
        "Content-Type": "application/json",
    },
    json={"return_format": "json"},
)
print(resp.json())
Node.js
const resp = await fetch("https://api.spider.cloud/fetch/yelp.com/", {
  method: "POST",
  headers: {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ return_format: "json" }),
});
const data = await resp.json();
console.log(data);
Extraction

Data you can extract

Business nameRatingReview countAddressPhonePrice rangeCategoriesHours
Listings

Business intelligence

Extract ratings, reviews, and contact info from yelp.com listings.

Pagination

Review collection

Navigate through paginated reviews with scroll-based lazy loading.

Geo

Location targeting

Access location-specific results with geo-targeted residential proxies.

Related

More Reviews scrapers

Start scraping yelp.com

Get your API key and start extracting data in minutes.