Ultimate Yelp Scraper

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

Ultimate Yelp Scraper

Ultimate Yelp Scraper

epctex/yelp-scraper

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!

The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn mode

import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with API token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "search": "grill",
    "searchLocation": "Los Angeles",
    "reviewSort": "relevance_desc",
    "startUrls": [
        "https://www.yelp.com/biz/maxs-restaurant-glendale-glendale-3",
        "https://www.yelp.com/user_details?userid=a_UbCGv_MTAHFs3P_zxUDA",
        "https://www.yelp.com/search?find_desc=max&find_loc=Los+Angeles%2C+CA",
        "https://www.yelp.com/collection/qGqt9YpsLBCH5nruuVCK2A/Food",
        "https://www.yelp.com/collections/user?userid=a_UbCGv_MTAHFs3P_zxUDA",
        "https://www.yelp.com/events/la/browse?start_date=20230215",
        "https://www.yelp.com/events/monterey-park-monterey-park-strong-star-ballroom-shooting-community-resources"
    ],
    "maxItems": 20,
    "endPage": 1,
    "endPageForReviews": 1,
    "extendOutputFunction": ($) => { return {} },
    "customMapFunction": (object) => { return {...object} },
    "proxy": {
        "useApifyProxy": true
    }
};

(async () => {
    // Run the Actor and wait for it to finish
    const run = await client.actor("epctex/yelp-scraper").call(input);

    // Fetch and print Actor results from the run's dataset (if any)
    console.log('Results from dataset');
    const { items } = await client.dataset(run.defaultDatasetId).listItems();
    items.forEach((item) => {
        console.dir(item);
    });
})();
Developer
Maintained by Community
Actor stats
  • 84 users
  • 6.9k runs
  • Modified about 10 hours ago

You might also like these Actors