PARAZUN / GUIDES

How to gather Amazon Product ASINs in Bulk

In this tutorial, we show the basics of gathering Amazon product ASINs using the Parazun Amazon Web Scraping API.

Bernard Ko
Software Developer, Parazun

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:

  1. Amazon best sellers by department or category.
  2. Amazon new releases by department or category.
  3. Currently trending Amazon products by department.
  4. The most wished for Amazon products by department or category.
  5. The most gifted Amazon products by department or category.
  6. Search keyword and refine them by search index or category.

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.

What is an Amazon ASIN?

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

Where can I find the ASIN number?

The ASIN number of a product listed on Amazon can be easily found in 2 places.

  1. In the URL of the product page on Amazon - the unique identifier is always found in the URL whether it is an ASIN or an ISBN.

ASIN in product page URL

  1. In the product details table in the product page on Amazon - generally found in the middie of the product page usually after to the product description.

ASIN in product information

Getting Amazon ASINs in bulk using the Parazun Web-scraping API

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.

Use the Rankings API Endpoints to gather Amazon ASINs

Amazon has 5 major product rankings on their website which is updated hourly:

  1. Best Sellers - https://www.amazon.com/Best-Sellers-Any-Department/zgbs/
  2. New Releases - https://www.amazon.com/gp/new-releases/
  3. Movers and Shakers - https://www.amazon.com/gp/movers-and-shakers/
  4. Most Wished For - https://www.amazon.com/gp/most-wished-for/
  5. Most Gifted - https://www.amazon.com/gp/most-gifted/

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&region=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.

Use the Search API Endpoint to gather Amazon ASINs

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&region=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:

Conclusion

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.