Actor picture

Foursquare Reviews Scraper

lukaskrivka/foursquare-reviews

Scrape a massive number of reviews in a few seconds for any number of locations and categories.

Free trial for 30 days. Then $1/month.
Author's avatarLuk谩拧 K艡ivka
  • Modified
  • Users27
  • Runs666
Actor picture

Foursquare Reviews Scraper

Free trial for 30 days. Then $1/month.

To run the code examples, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token.

const ApifyClient = require('apify-client');

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

// Prepare actor input
const input = {
    queries: [
        {
            location: "Prague",
            category: "food"
        }
    ],
    proxy: {
        useApifyProxy: true
    }
};

(async () => {
    // Run the actor and wait for it to finish
    const run = await client.actor("lukaskrivka/foursquare-reviews").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);
    });
})();