Amazon Scraper avatar
Amazon Scraper
Try for free

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

View all Actors
Amazon Scraper

Amazon Scraper

epctex/amazon-scraper
Try for free

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

The fastest and most reliable Amazon scraper ever. Extract key data like reviews, prices, ASINs, without relying on Amazon's API. Tailor searches with specific URLs, keywords, and local postal codes for targeted insights. Download in various formats for easy analysis.

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 more

Node.js

Python

curl

1import { ApifyClient } from 'apify-client';
2
3// Initialize the ApifyClient with your Apify API token
4const client = new ApifyClient({
5    token: '<YOUR_API_TOKEN>',
6});
7
8// Prepare Actor input
9const input = {
10    "search": "iphone",
11    "maxItems": 20,
12    "endPage": 1,
13    "reviewsEndPage": 1,
14    "startUrls": [
15        "https://www.amazon.com/s?k=android&ref=nb_sb_noss",
16        "https://www.amazon.com/EXCELLENT-ELITE-SPANKER-Tactical-Adjustable/dp/B0725FT5ZW",
17        "https://www.amazon.com/EXCELLENT-ELITE-SPANKER-Tactical-Adjustable/product-reviews/B0725FT5ZW/ref=cm_cr_dp_d_show_all_btm?ie=UTF8&reviewerType=all_reviews"
18    ],
19    "extendOutputFunction": ($) => { return {} },
20    "customMapFunction": (object) => { return {...object} },
21    "proxy": {
22        "useApifyProxy": true
23    }
24};
25
26(async () => {
27    // Run the Actor and wait for it to finish
28    const run = await client.actor("epctex/amazon-scraper").call(input);
29
30    // Fetch and print Actor results from the run's dataset (if any)
31    console.log('Results from dataset');
32    console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
33    const { items } = await client.dataset(run.defaultDatasetId).listItems();
34    items.forEach((item) => {
35        console.dir(item);
36    });
37})();
38
39// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs
Developer
Maintained by Community
Actor metrics
  • 11 monthly users
  • 100.0% runs succeeded
  • days response time
  • Created in Jan 2024
  • Modified about 21 hours ago