Get Amazon Product Pricing and Details Instantly using ScrapeHero API

Here is how to use our Amazon Scraping API to gather product details and pricing, with just ASIN as input.

Here is a sample output for AmazonBasics 9 Volt Everyday Alkaline Batteries –

    "small_description": "Pack of eight 9 Volt Alkaline Batteries - 3-year shelf life so you can store for emergencies or use immediately - Works with a variety of devices including digital cameras, game controllers, toys, and clocks; do not attempt to recharge - Ships in Certified Frustration-Free Packaging",
    "average_rating": 4.1,
    "url": "",
    "product_information": {
        "Product Dimensions": "10 x 5 x 3 inches",
        "Amazon Best Sellers Rank": " #30 in Health & Household  #1 in Health & Household > House Supplies > Household Batteries > 9V #18 in Health & Household > Sales & Deals",
        "International Shipping": "This item can be shipped to select countries outside of the U.S.",
        "ASIN": "B00MH4QM1S",
        "Item model number": "6LR16-8PK",
        "Shipping Weight": "12.8 ounces ",
        "Domestic Shipping": "Currently, item can be shipped only within the U.S. and to APO/FPO addresses. For APO/FPO shipments, please check with the manufacturer regarding warranty and support issues.",
        "UPC": "841710157253 841710106381"
    "availability_quantity": null,
    "availability_status": "In Stock. Ships from and sold by in easy-to-open packaging. Gift-wrap available. In Stock. ",
    "brand": "AmazonBasics",
    "images": [
    "price": "$9.80",
    "model": "6LR16-8PK",
    "name": "AmazonBasics 9 Volt Everyday Alkaline Batteries (8-Pack)",
    "total_reviews": 4579,
    "full_description": "AmazonBasics brings you everyday items at a great value. An Amazon Brand.",
    "productCategory": "Health & Household > Household Supplies > Household Batteries > 9V"

Recent Changes

The rest of this tutorial is inactive at this stage due to recent changes at Mashape (now RapidAPI).

We have made the  process even easier and you can skip this whole tutorial and sign up for our API in a few clicks at

The API stays the same and so does the output, the API endpoint and your key are the only things that change.


Step 1: Create an Account in Mashape

  1. Go to the Mashape Marketplace page –
  2. If you are new to Mashape you can create an account by clicking on the ‘Sign Up’ button at the top of the page. If you have an account sign in to Mashape with your credentials.
  3. Then open up ScrapeHero’s API page –


Step 2: Subscribe to a Plan and Get API

  1. To subscribe to ScrapeHero’s Amazon API, click on the ‘Pricing’ tab on the API page. The browser will redirect you to the API pricing page.
  2. Choose the basic plan to get 50 API calls for free. If you want more you can subscribe to a paid plan or contact us if your volume is high.


After you have subscribed to ScrapeHero’s Amazon API, Mashape will automatically generate your personal API key that you can use in every call. It is your personal identifier and should not be shown to the public.

Step 3: Test the API

Now come back to the API documentation page

  1. Find the product ASIN you need to search for. Every Amazon product will have an ASIN. (An ASIN from any other domain will not work.) For example, if the product URL is – The ASIN will be B010TQY7A8.
  2. By default, the ASIN input box is filled with a sample product ASIN. If you want to try another product, paste the ASIN in the “asin” input box under URL parameters and click the button ‘TEST ENDPOINT’.



Step 4: Python Script to consume the API

The python script below will let you scrape details and pricing for multiple products using our API.

import requests
asins = [
data = []
for asin in asins: 
    response = requests.get(""%asin,
    "X-Mashape-Key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    "Accept": "application/json"}

The data gathered would look like this –

You can save this scraped data to a JSON file or Database for further use.

We can help with your data or automation needs

Turn the Internet into meaningful, structured and usable data

Please DO NOT contact us for any help with our Tutorials and Code using this form or by calling us, instead please add a comment to the bottom of the tutorial page for help

Posted in:   API, Tools and Services

Comments or Questions?

Turn the Internet into meaningful, structured and usable data   

Best Practices while Scraping Websites Yourself

Get instant access to our free guide on

Best practices and systems when scraping the web yourself on a large scale.

Subscribe to our updates and view the guide

ScrapeHero Logo

Can we help you get some data?