Get Amazon Product Pricing and Details Instantly using ScrapeHero API

Here is how to use our Amazon Scraping API deployed in Mashape 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"

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

Posted in:   API, Tools and Services

Comments or Questions?

Turn the Internet into meaningful, structured and usable data