Alert

Actor is under maintenance

This Actor may be unreliable while under maintenance. Would you like to try a similar Actor instead?

Google Product Price Scraper

  • knght/google-product-price-scraper
  • Modified
  • Users 13
  • Runs 233
  • Created by Author's avatarKnight

2 Step Google fast, dirty and low computation scraper that takes a single input then, simply returns a list of prices to use for multiple uses, intended purpose was to create a median price for the returned price list. Step 1 checks normal google results, Step 2 checks google shopping.

Free trial for 7 days

Then $20.00/month

No credit card required now

Google Product Price Scraper

Free trial for 7 days

Then $20.00/month

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.

import { ApifyClient } from 'apify-client';

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

// Prepare Actor input
const input = {
    "queries": [
        "iPhone x"
    ]
};

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