Amazon Product Page API

This endpoint will retrieve product data from an Amazon product page and transform it into usable JSON.

try {
String apiKey = "APIKEY";
String asin = "ASIN";
String country = "COUNTRY";
String tld = "TLD";
String url = "https://api.scraperapi.com/structured/amazon/product?api_key=" + apiKey + "&asin=" + asin + "&country=" + country + "&tld=" + tld;
URL urlForGetRequest = new URL(url);
String readLine = null;
HttpURLConnection conection = (HttpURLConnection) urlForGetRequest.openConnection();
conection.setRequestMethod("GET");
int responseCode = conection.getResponseCode();
if (responseCode == HttpURLConnection.HTTP_OK) {
BufferedReader in = new BufferedReader(new InputStreamReader(conection.getInputStream()));
StringBuffer response = new StringBuffer();
while ((readLine = in.readLine()) != null) {
response.append(readLine);
}
in.close();
System.out.println(response.toString());
} else {
throw new Exception("Error in API Call");
}
} catch (Exception ex) {
ex.printStackTrace();
}

As you can see in the code above, you can use several parameters with this method:

ParameterDetails

API_KEY

User's normal API Key

ASIN

Amazon product ASIN

COUNTRY

Where an amazon domain needs to be scraped from another country (e.g. scraping amazon.com from Canada to get Canadian shipping information), specify the TLD as well as the COUNTRY parameters. Valid values are valid TLDs (e.g. “.com.au”, “.es”, etc.) Valid values include: us: 'amazon.com', uk: 'amazon.co.uk', ca: 'amazon.ca', de: 'amazon.de', es: 'amazon.es', fr: 'amazon.fr', it: 'amazon.it', jp: 'amazon.co.jp', in: 'amazon.in', cn: 'amazon.cn', sg: 'amazon.com.sg', mx: 'amazon.com.mx', ae: 'amazon.ae', br: 'amazon.com.br', nl: 'amazon.nl', au: 'amazon.com.au', tr: 'amazon.com.tr', sa: 'amazon.sa', se: 'amazon.se', pl: 'amazon.pl'

TLD

Country of Amazon domain to scrape. This is an optional argument and defaults to “us” (amazon.com).

Sample Response:

{
  "name": "Animal Adventure | Sweet Seats | Pink Owl Children's Plush Chair",
  "product_information": {
    "product_dimensions": "14 x 19 x 20 inches",
    "color": "Pink",
    "material": "95% Polyurethane Foam, 5% Polyester Fibers",
    "style": "Pink Owl",
    "product_care_instructions": "Machine Wash",
    "number_of_items": "1",
    "brand": "Animal Adventure",
    "fabric_type": "Polyurethane",
    "unit_count": "1.0 Count",
    "item_weight": "1.9 pounds",
    "asin": "B06X3WKY59",
    "item_model_number": "49559",
    "manufacturer_recommended_age": "18 months - 4 years",
    "best_sellers_rank": [
      "#9,307 in Home & Kitchen (See Top 100 in Home & Kitchen)",
      "#69 in Kids' Furniture"
    ],
    "customer_reviews": {
      "ratings_count": 5665,
      "stars": "4.7 out of 5 stars"
    },
    "is_discontinued_by_manufacturer": "No",
    "release_date": "January 1, 2018",
    "manufacturer": "Animal Adventure"
  },
  "brand": "Visit the Animal Adventure Store",
  "brand_url": "https://www.amazon.com/stores/AnimalAdventure/page/8871D37C-D748-4489-8FBA-8D6A62092857?ref_=ast_bln",
  "full_description": "Our Sweet Seats character chairs double as adorable room décor and a child’s favorite plush pal. Rich fabrics, sweet dimensional faces and a soft yet sturdy design make these character chairs ideal for kids 18 months +, and parents will be thrilled to learn that they can easily wash and care for their child’s new favorite seat. WASHING INSTRUCTIONS: Simply take a paper clip, hook through the safety zipper and pull to open the character chair cover. Carefully cut the tack stitch thread that secures the cover to the center foam block with a pair of scissors. Once all tacks have been cut, you can remove the foam blocks. Once you’ve removed all of the inner foam pieces, your cover is ready to wash. For best results, we recommend using a delicates bag in a machine wash cold setting, and afterwards laying the cover flat to air dry.",
  "pricing": "",
  "list_price": "",
  "shipping_price": null,
  "availability_status": "",
  "images": [
    "https://m.media-amazon.com/images/I/51RzYQSm5oL.jpg",
    "https://m.media-amazon.com/images/I/416w6PJNGWL.jpg",
    "https://m.media-amazon.com/images/I/51vmBiGcqNL.jpg",
    "https://m.media-amazon.com/images/I/51Zm4EdynxL.jpg",
    "https://m.media-amazon.com/images/I/510JJx9LuiL.jpg",
    "https://m.media-amazon.com/images/I/51JwT+-IwnL.jpg"
  ],
  "product_category": "Home & Kitchen › Furniture › Kids' Furniture",
  "average_rating": 4.7,
  "small_description": "About this item \n \nPolyurethane Imported Plush slip cover is removable and washable. Zipper closure is child-safe (parents can easily open closer with a simple paper clip). Lightweight and easy to move. The perfect size (14\"L x 19\"W x 20\"H). Ages 18 months and up.",
  "feature_bullets": [
    "Polyurethane",
    "Imported",
    "Plush slip cover is removable and washable.",
    "Zipper closure is child-safe (parents can easily open closer with a simple paper clip).",
    "Lightweight and easy to move.",
    "The perfect size (14\"L x 19\"W x 20\"H).",
    "Ages 18 months and up."
  ],
  "total_reviews": 5665,
  "total_answered_questions": 111,
  "model": "49559",
  "customization_options": {
    "style": [
      {
        "is_selected": true,
        "url": null,
        "value": "Pink Owl",
        "price_string": "",
        "price": 0,
        "image": null
      },
      {
        "is_selected": false,
        "url": "https://www.amazon.com/dp/B0731Y59HG/ref=twister_B0B9FV38F9?_encoding=UTF8&psc=1",
        "value": "Teal Owl",
        "price_string": "",
        "price": 0,
        "image": null
      }
    ]
  },
  "seller_id": null,
  "seller_name": null,
  "fulfilled_by_amazon": null,
  "fast_track_message": "",
  "aplus_present": true
}

Last updated