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 mode

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    const { items } = await client.dataset(run.defaultDatasetId).listItems();
33    items.forEach((item) => {
34        console.dir(item);
35    });
36})();
Developer
Community logoMaintained by Community
Actor metrics
  • 8 monthly users
  • 74.8% runs succeeded
  • Created in Jan 2024
  • Modified about 23 hours ago

You might also like these Actors