In this tutorial, we show the basics of gathering Amazon product ASINs using the Parazun Amazon Web Scraping API.
When working with Amazon data, whether in your application or in a spreadsheet, gathering a dataset of ASINs is usually the first step. However manually gathering ASINs can be cumbersome and usually the best way is to automate this process.
The Parazun Amazon Web Scraping API provides a few ways for you to do this (with a free plan) which allows you to gather these ASINs in bulk.
In this article, we demonstrate using 2 short example API calls that will show you how to lookup product ASINs for:
To get started, sign up at RapidAPI if you don't already have an account already and then subscribe to the free basic plan on Parazun Amazon Web Scraping API.
An Amazon ASIN is the identification number which Amazon uses for all products sold on Amazon (except some book categories). ASIN stands for Amazon Standard Identification Number and is a unique ten character alphanumeric number. For example, the Amazon ASIN code for "Instant Pot Duo 7-in-1 Electric Pressure Cooker" is B00FLYWNYQ.
On the other hand, physical books sold on Amazon use ISBN which stands for International Standard Book Number. The format is 10 digits length numeric characters. For example "Harry Potter and the Prisoner of Azkaban" ISBN number is 0439136350
The ASIN number of a product listed on Amazon can be easily found in 2 places.
Amazon ASINs are using extensively in our web scraping api. The ASIN is a required parameter in the API, generally when requesting data related to individual products such as product listing summary, detailed product information, product offers and reviews.
Here are ways on how our users are using the API to retrieve Amazon product ASINs in bulk.
Amazon has 5 major product rankings on their website which is updated hourly:
There are also rankings for departments and categories which further refine these rankings. Using these rankings is a great way to filter product ASINs that are relevant to your application.
Here is an example using the best seller endpoint with curl using RapidAPI:
curl --request GET \
--url 'https://parazun-amazon-data.p.rapidapi.com/bestseller/by-department/?alias=electronics®ion=US' \
--header 'x-rapidapi-host: parazun-amazon-data.p.rapidapi.com' \
--header 'x-rapidapi-key: <Your RapidAPI Key>'
The above curl request retrieves a list of best sellers from the Electronics department. The result looks like this (results are truncated to fit the page better):
{
"department": {
"name": "Electronics",
"alias": "electronics",
"link": "https://www.amazon.com/Best-Sellers-Electronics/zgbs/electronics/146-2406812-3710249"
},
"category": "Electronics",
"node_id": 172282,
"link": "https://www.amazon.com/Best-Sellers-Electronics/zgbs/electronics/146-2406812-3710249",
"rankings": [
{
"rank": 1,
"title": "Fire TV Stick with Alexa Voice Remote (includes TV controls), HD streaming device",
"link": "https://www.amazon.com/fire-tv-stick-with-3rd-gen-alexa-voice-remote/dp/B08C1W5N87/",
"asin": "B08C1W5N87",
"reviews": {
"avg_rating": 4.7,
"num_ratings": 95455
},
"price": {
"min": 24.99,
"max": 24.99,
"currency": "USD",
"symbol": "$"
}
},
{
"rank": 2,
"title": "Amazon Smart Plug, Works with Alexa – A Certified for Humans Device",
"link": "https://www.amazon.com/Amazon-smart-plug-works-with-Alexa/dp/B089DR29T6/",
"asin": "B089DR29T6",
"reviews": {
"avg_rating": 4.7,
"num_ratings": 461689
},
"price": {
"min": 24.99,
"max": 24.99,
"currency": "USD",
"symbol": "$"
}
},
...
}
The Parazun Amazon Data API provides endpoints for all the above rankings and also allows retrieving rankings for departments and categories. The API returns all the data you can see in the rank listing. From this request we can retrieve the product ASINs for the best selling products in the Electronics category.
Use these endpoints to retrieve datasets of product ASINs that are relevant to your needs by department or by product category. Check out the Parazun Amazon Data API documentation on RapidAPI for the full list of endpoints.
If you want to gather product ASINs that are related to particular search terms and keywords then using the search API endpoint will be the best bet.
The following is an example using curl of how to request the Parazun API search endpoint:
curl --request GET \
--url 'https://parazun-amazon-data.p.rapidapi.com/search?keywords=instant+pot®ion=US&page=1' \
--header 'x-rapidapi-host: parazun-amazon-data.p.rapidapi.com' \
--header 'x-rapidapi-key: <Your RapidAPI Key>'
The result of the above request looks like this (results are truncated to fit the page better):
{
"current_page": 1,
"num_pages": 10,
"results": [
{
"asin": "B00FLYWNYQ",
"title": "Instant Pot Duo 7-in-1 Electric Pressure Cooker, Slow Cooker, Rice Cooker, Steamer, Sauté, Yogurt Maker, Warmer & Sterilizer, 6 Quart, Stainless Steel/Black",
"variants": null,
"price": {
"amount": 89,
"list_price": null,
"currency": "USD",
"symbol": "$"
},
"availability": null,
"prime": true,
"images": [
{
"image": "https://m.media-amazon.com/images/I/71WtwEvYDOS._AC_UY218_.jpg",
"size": "1x"
},
{
"image": "https://m.media-amazon.com/images/I/71WtwEvYDOS._AC_UY327_QL65_.jpg",
"size": "1.5x"
},
{
"image": "https://m.media-amazon.com/images/I/71WtwEvYDOS._AC_UY436_QL65_.jpg",
"size": "2x"
},
{
"image": "https://m.media-amazon.com/images/I/71WtwEvYDOS._AC_UY545_QL65_.jpg",
"size": "2.5x"
},
{
"image": "https://m.media-amazon.com/images/I/71WtwEvYDOS._AC_UY654_QL65_.jpg",
"size": "3x"
}
],
"position": 1,
"best_seller": true,
"reviews": {
"avg_rating": 4.7,
"num_ratings": 137486
}
},
...
]
}
The results return summary information for the product search results page on Amazon. This endpoint can also be paginated to get more results equivalent to clicking on the pages when you are browsing search results on Amazon.
There are a also few options available on this endpoint to help you tune your request if you need to further refine the returned results:
In this article, demonstrated 2 ways to fetch Amazon ASINs using the ranking and search API endpoints available on Parazun Amazon web-scraping API. This is a great way to get off the ground running your Amazon data project!
Get started by checking out the API documentation on RapidAPI.