Actor picture

Google play reviews Scraper

katerinahronik/google-play-reviews

Scrapes Google Play Store app user reviews and downloads them to a dataset, including name, date, and text information. Input the URL or ID of the app and get details for all reviews.

Author's avatarKateřina Hroníková
  • Modified
  • Users165
  • Runs1,317
Actor picture

Google play reviews Scraper

To run the code examples, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token. For a more detailed explanation, please read about running actors via the API in Apify Docs.

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

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

// Prepare actor input
const input = {
    "appUrl": "https://play.google.com/store/apps/details?id=com.neverland.alreader&hl=en",
    "appId": "com.neverland.alreader",
    "limit": 100
};

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