Ultimate Yelp Scraper avatar

Ultimate Yelp Scraper

Try for free

3 days trial then $30.00/month - No credit card required now

Go to Store
Ultimate Yelp Scraper

Ultimate Yelp Scraper

epctex/yelp-scraper
Try for free

3 days trial then $30.00/month - No credit card required now

Gather info on millions of businesses, events, and reviews. Scrape businesses and extract descriptions, images, menus, addresses, and all other properties.. Customize with search terms, filters, and mappings for limitless insights. Ultimate Yelp scraper you need. No limits! No limits!

You can access the Ultimate Yelp Scraper programmatically from your own JavaScript applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.

1import { ApifyClient } from 'apify-client';
2
3// Initialize the ApifyClient with your Apify API token
4// Replace the '<YOUR_API_TOKEN>' with your token
5const client = new ApifyClient({
6    token: '<YOUR_API_TOKEN>',
7});
8
9// Prepare Actor input
10const input = {
11    "search": "grill",
12    "searchLocation": "Los Angeles",
13    "endPageForPhotos": 1,
14    "reviewSort": "relevance_desc",
15    "startUrls": [
16        "https://www.yelp.com/biz/maxs-restaurant-glendale-glendale-3",
17        "https://www.yelp.com/search?find_desc=max&find_loc=Los+Angeles%2C+CA",
18        "https://www.yelp.com/collection/qGqt9YpsLBCH5nruuVCK2A/Food",
19        "https://www.yelp.com/collections/user?userid=a_UbCGv_MTAHFs3P_zxUDA",
20        "https://www.yelp.com/events/la/browse?start_date=20230215",
21        "https://www.yelp.com/events/monterey-park-monterey-park-strong-star-ballroom-shooting-community-resources"
22    ],
23    "maxItems": 20,
24    "endPage": 1,
25    "startPageForReviews": 1,
26    "endPageForReviews": 1,
27    "extendOutputFunction": ($) => { return {} },
28    "customMapFunction": (object) => { return {...object} },
29    "proxy": {
30        "useApifyProxy": true
31    }
32};
33
34// Run the Actor and wait for it to finish
35const run = await client.actor("epctex/yelp-scraper").call(input);
36
37// Fetch and print Actor results from the run's dataset (if any)
38console.log('Results from dataset');
39console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
40const { items } = await client.dataset(run.defaultDatasetId).listItems();
41items.forEach((item) => {
42    console.dir(item);
43});
44
45// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

Ultimate Yelp Data Extractor API in JavaScript

The Apify API client for JavaScript is the official library that allows you to use Ultimate Yelp Scraper API in JavaScript or TypeScript, providing convenience functions and automatic retries on errors.

Install the apify-client

npm install apify-client

Other API clients include:

Developer
Maintained by Community

Actor Metrics

  • 64 monthly users

  • 7 stars

  • >99% runs succeeded

  • 1.4 days response time

  • Created in Feb 2023

  • Modified 20 hours ago

Categories