Skip to content

Amazon Product Search API

A GET request to our endpoint /api/getter/?platform="amazon_search" will allow you to scrape search results from Amazon's search engine in real-time.

Example

To scrape Amazon's search results for the keyword "pillow", you can use the following command:

1
curl -v -L 'https://data.unwrangle.com/api/getter/?platform=amazon_search&search=pillow&api_key=API_KEY'

Note

When using curl, it is necessary to add the option -L to get the data back. This is because in some cases our server responds with a 301 and curl does not follow the redirect by default.

Query Parameters

As you can see in the example above, our endpoint needs the following query parameters:

Search Query

search

Required

Parameter defines the search query you want to search. You can use anything a user may use in a regular Amazon search.

page

Optional

The page number for which you want the results. Default value is 1.

Advanced Amazon Parameters

country

Optional

Specifies the country you wish to search Amazon in. Default value is us. Here is a list of supported countries.

Other Required Parameters

platform

Required

Specifies the scraping engine you wish to invoke. In this case, the value should be amazon_search.

api_key

Required

Your account's token—which can be obtained by signing up here.

Note

Be sure to replace any whitespace in the search keywords with a plus + sign. So, if you're looking to scrape search results for the keyword "ssd 1tb", please set the value of the query parameter search to "ssd+1tb".

Results

Each request returns up to 60 results. The response will include the following attirbutes for each product in the search results:

Attributes Returned Data Type Information Represented
name string Name of product lisitng
URL string URL of product listing
thumbnail string URL of product's thumbnail
rating float Average rating of product
total_ratings int No. of ratings received
price string Price of product
is_sponsored boolean Whether product is ad or not

Response Example

Here's the response you can expect to receive for the request showcased above:

{
    "success": true,
    "category_url": "https://www.amazon.com/s?k=pillow",
    "page": 1,
    "total_results": 30000,
    "no_of_pages": 7,
    "result_count": 48,
    "results": [
        {
            "name": "Beckham Hotel Collection Bed Pillows for Sleeping - Queen Size, Set of 2 - Cooling, Luxury Gel Pillow for Back, Stomach or Side Sleepers  ",
            "url": "https://www.amazon.com/Beckham-Hotel-Collection-Pillow-2-Pack/dp/B01LYNW421",
            "thumbnail": "https://m.media-amazon.com/images/I/31T51VsUJdS._AC_UL320_.jpg",
            "rating": 4.4,
            "total_ratings": 176737,
            "price": "$42.99",
            "is_sponsored": false
        },
        {
            "name": "Bed Pillows 2 Pack - Queen Size Pillows for Sleeping Set of 2 for Side Back and Stomach Sleepers, Down Alternative Filling Luxury Soft Supportive Plush Pillows (White, Queen)  ",
            "url": "https://www.amazon.com/HOOMQING-Bed-Pillows-Pack-Alternative/dp/B092W436DK",
            "thumbnail": "https://m.media-amazon.com/images/I/51+2KnNzWzS._AC_UL320_.jpg",
            "rating": 4.5,
            "total_ratings": 2314,
            "price": "$23.98",
            "is_sponsored": false
        },
        ...
        {
            "name": "BioPedic Eco-Classic 250-Thread Count Standard, 4-Pack PIllows, White, 4  ",
            "url": "https://www.amazon.com/BioPedic-Eco-Classic-240-Thread-Standard-Pillows/dp/B004C04BZE",
            "thumbnail": "https://m.media-amazon.com/images/I/81C7rx9T5-L._AC_UL320_.jpg",
            "rating": 4.4,
            "total_ratings": 2577,
            "price": "$43.99",
            "is_sponsored": false
        }
    ],
    "meta_data": {}
}

Request Cost

Each request to this endpoint costs 50 credits regardless of the number of results. However, each response typically includes 24 to 48 results.

Supported Countries

The countries we support to scrape Amazon's search results from are listed below:

Country Domain Code
USA Amazon.com us
UK Amazon.co.uk gb
France Amazon.fr fr
Germany Amazon.de de
India Amazon.in in
Australia Amazon.au au

Support

If you want to add a parameter to our response, or have any question or feedback, please write to us at support@unwrangle.com