Yelp Scraper
Extract business listings, ratings, reviews, and location data from Yelp. Built on spider-browser .
- target
- yelp.com
- success rate
- 99.9%
- latency
- ~4ms
Extract data in minutes.
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(); One endpoint for yelp.com.
Structured JSON from yelp.com with a single POST. AI-resolved selectors, cached on the first call.
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"}' 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()) 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); Fields you can pull.
Business intelligence
Extract ratings, reviews, and contact info from yelp.com listings.
Review collection
Navigate through paginated reviews with scroll-based lazy loading.
Location targeting
Access location-specific results with geo-targeted residential proxies.
More Reviews scrapers.
Trustpilot Scraper
Extract company reviews, trust scores, and consumer feedback from Trustpilot.
G2 Scraper
Extract software reviews, ratings, pricing, and comparison data from G2.
Capterra Scraper
Extract software reviews, ratings, pricing tiers, and feature comparisons from Capterra.
Start scraping yelp.com.
Grab an API key and call the endpoint above. The first request resolves the config; every request after hits cache.