Amazon-Product-Scraper
Pricing
from $0.00005 / actor start
Amazon-Product-Scraper
Pricing
from $0.00005 / actor start
Rating
0.0
(0)
Developer
Nishanth
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
19 days ago
Last modified
Categories
Share
π Amazon Product Scraper
Amazon Product Scraper is a powerful and fast Apify actor that uses Playwright and Google Chrome to extract live product details directly from Amazon search results or individual product pages.
π Features
- Keyword Search: Extract product listings based on any search term.
- Direct ASIN / URL: Extract deep metadata from a single Amazon product page.
- Live Playwright Data: Uses real headless Google Chrome to bypass basic blocks and grab dynamic DOM data.
- Clean Output: Data is structured and delivered in JSON format suitable for e-commerce monitoring.
π₯ Input Configuration
When running this actor, you need to configure the input. The actor takes a simple JSON object:
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
url | String | Conditional | None | Direct link to a specific Amazon product. |
asin | String | Conditional | None | Amazon Standard Identification Number (e.g. B08N5WRWNW). |
proxy_url | String | No | None | Optional custom proxy URL. |
Note: You must provide at least one of url or asin.
Example Input:
{"url": "https://www.amazon.com/dp/B08N5WRWNW"}
π€ Output Configuration
The actor stores its results in the default Apify Dataset. The output will always be wrapped in a products array to ensure consistent data structures.
Example Output:
{"products": [{"asin": "B08N5WRWNW","title": "Godrej 30 L Qube Personal Standard Single door Cooling Solution (TEC Qube 30L HS Q103, Black)","brand": "Visit the Godrej Store","price": 7990.0,"price_text": "βΉ7,990.00","rating": "3.7 out of 5 stars","rating_value": 3.7,"review_count": 2535,"image": "https://m.media-amazon.com/images/I/51I44UB4OfL._SX679_.jpg","url": "https://www.amazon.com/dp/B08N5WRWNW","in_stock": true,"availability": "In stock"}]}
π How to Run Locally
If you are a developer and want to test this actor directly on your machine without using Docker, there are two easy methods:
Method 1: Python Entrypoint (Fastest)
Just run the Python entrypoint script directly. If no input configuration file is found, it will safely prompt you in the terminal.
- Ensure you have
uvand Python installed. - Run the actor using the command:
python main.py# or using uvuv run python main.py
- Enter your product URL or ASIN into the terminal prompt.
Method 2: Simulate Apify using INPUT.json
To test exactly how it runs on the Apify platform, you can create a local JSON file that the Apify SDK automatically parses.
- Create a file at
storage/key_value_stores/default/INPUT.jsoninside the Actor directory. - Add your input JSON, for example:
{"url": "https://www.amazon.com/dp/B08N5WRWNW"}
- Run the actor using the command:
python main.py# or using uvuv run python main.py
- The scraper will silently read the JSON file and dump the results into
storage/datasets/default/.
π³ Building with Docker
If you want to build the Docker image locally to test the exact environment Apify uses:
Because Apify projects use the root folder for context, you must run the build command from the root directory of the project, pointing it to the .actor/Dockerfile:
$docker build -t amazon-scraper -f .actor/Dockerfile .
π¬ Support
If you find any bugs or have feature requests, please reach out via the Apify platform!