Skip to main content
All CollectionsAPIs
How to scrape products for an entire department on Amazon?
How to scrape products for an entire department on Amazon?

Finding the URL for our Amazon Category API

Raunaq Singh avatar
Written by Raunaq Singh
Updated over 2 weeks ago

Find the right API - Amazon Category API

If you're looking to scrape products belonging to a category or department on Amazon, you're in luck.

Apart from the Search API, Product API and Reviews API we have a 4th Category API for Amazon.

The Amazon Category API can be used to scrape product listings from any department or search URL with or without filters applied to it.

For e.g. let's take the Men's clothing category or department. Here's how the page looks:

It has 400 pages as we can see in the pagination section below:

This is particularly useful since while Amazon shows search results for keywords only up to the 7th page, products are available on category or department pages up to then 400th page.

If you aim is to collect the maximum number of products, the Amazon Category API will prove more useful than the Amazon Search API because of the lack of page limit restrictions.

While the Amazon Search API's input is a straightforward search keyword and country_code, with which you can retrieve search results up to the 7th page for any keyword, the Amazon Category API needs a category or department URL like the one in the above screenshot.

Get first page data

Here's an example how of a request to the Amazon Category API looks:

https://data.unwrangle.com/api/getter/?platform=amazon_category&url=https%3A%2F%2Fwww.amazon.com%2Fs%3Fi%3Dfashion-mens-clothing%26rh%3Dn%253A1040658%26s%3Dfeatured-rank%26dc%26content-id%3Damzn1.sym.e8166536-0a9e-4ac7-adba-207c4e685029%26pd_rd_r%3D7305d68b-a9ce-4243-93b0-506c992c4f8e%26pd_rd_w%3DudHCX%26pd_rd_wg%3DfXK3u%26pf_rd_p%3De8166536-0a9e-4ac7-adba-207c4e685029%26pf_rd_r%3DD4WCA9DYS65EDYGP5N78%26qid%3D1733900856%26ref%3Dsr_ex_p_36_0%26ds%3Dv1%253Ad%252BabwbsxNW%252BMPfKud3LkscATmmRunuM7ER4J0QAhjbM&page=1&api_key=API_KEY

And this is the response we receive:

{
"success": true,
"category_url": "https://www.amazon.com/s?i=fashion-mens-clothing&rh=n%3A1040658&s=featured-rank&content-id=amzn1.sym.e8166536-0a9e-4ac7-adba-207c4e685029&pd_rd_r=7305d68b-a9ce-4243-93b0-506c992c4f8e&pd_rd_w=udHCX&pd_rd_wg=fXK3u&pf_rd_p=e8166536-0a9e-4ac7-adba-207c4e685029&pf_rd_r=D4WCA9DYS65EDYGP5N78&qid=1733900856&ds=v1%3Ad+abwbsxNW+MPfKud3LkscATmmRunuM7ER4J0QAhjbM",
"page": 1,
"total_results": 70000,
"no_of_pages": 400,
"result_count": 48,
"results": [
{
"asin": "B01H50RF4Q",
"is_sponsored": false,
"brand": null,
"name": "ORORO Men's Lightweight Heated Vest with Battery Pack",
"url": "https://www.amazon.com/ororo-Lightweight-Heated-Battery-Large/dp/B01H50RF4Q",
"thumbnail": "https://m.media-amazon.com/images/I/71G9BnF9HqL._AC_SL1500.jpg",
"rating": 4.6,
"total_ratings": 10639,
"price": 154.99,
"list_price": 169.99,
"price_per_unit": null,
"typical_price": null,
"currency": "USD",
"currency_symbol": "$",
"offer_info": null,
"is_prime": false,
"shipping_info": [
"FREE delivery"
],
"retailer_badge": "Best Seller",
"seller_info": null,
"more_buying_choices": null,
"past_month_bought": "#1 Top Rated"
},
...
...
{
"asin": "B00D1ARZMC",
"is_sponsored": false,
"brand": null,
"name": "Hanes Men's Cotton, Moisture-Wicking Crew Tee Undershirts, Multi-Packs Available",
"url": "https://www.amazon.com/Hanes-Available-Moisture-Wicking-Undershirts-Multipack/dp/B00D1ARZMC",
"thumbnail": "https://m.media-amazon.com/images/I/51lcacCccHL._AC_SL1500.jpg",
"rating": 4.5,
"total_ratings": 71796,
"price": 15.0,
"list_price": 19.0,
"price_per_unit": null,
"typical_price": null,
"currency": "USD",
"currency_symbol": "$",
"offer_info": "Save more with Subscribe & Save",
"is_prime": false,
"shipping_info": [
"FREE deliveryTue, Dec 17on $35 of items shipped by Amazon",
"Or fastest deliveryFri, Dec 13",
"Save more with Subscribe & Save"
],
"retailer_badge": null,
"seller_info": null,
"more_buying_choices": null,
"past_month_bought": "10K+"
}
],
"meta_data": {
"brand_filter_urls": [
{
"name": "Amazon Essentials",
"url": "https://www.amazon.com/s?i=fashion-mens-clothing&rh=n%3A7141123011%2Cp_123%3A393482&s=featured-rank&dc&content-id=amzn1.sym.e8166536-0a9e-4ac7-adba-207c4e685029&pd_rd_r=7305d68b-a9ce-4243-93b0-506c992c4f8e&pd_rd_w=udHCX&pd_rd_wg=fXK3u&pf_rd_p=e8166536-0a9e-4ac7-adba-207c4e685029&pf_rd_r=D4WCA9DYS65EDYGP5N78&qid=1733900950&rnid=85457740011&ref=sr_nr_p_123_1&ds=v1%3ADoKmC5gm%2BwA0EdmxKrBJU5h3eONwoj1qFJMCicPWvHE"
},
{
"name": "Hanes",
"url": "https://www.amazon.com/s?i=fashion-mens-clothing&rh=n%3A7141123011%2Cp_123%3A232617&s=featured-rank&dc&content-id=amzn1.sym.e8166536-0a9e-4ac7-adba-207c4e685029&pd_rd_r=7305d68b-a9ce-4243-93b0-506c992c4f8e&pd_rd_w=udHCX&pd_rd_wg=fXK3u&pf_rd_p=e8166536-0a9e-4ac7-adba-207c4e685029&pf_rd_r=D4WCA9DYS65EDYGP5N78&qid=1733900950&rnid=85457740011&ref=sr_nr_p_123_2&ds=v1%3A8yLvDzUHfopqXVHXYJF6RXkdrR%2FviJdCqJ%2BUu9XRnD8"
},
{
"name": "Levi's",
"url": "https://www.amazon.com/s?i=fashion-mens-clothing&rh=n%3A7141123011%2Cp_123%3A200356&s=featured-rank&dc&content-id=amzn1.sym.e8166536-0a9e-4ac7-adba-207c4e685029&pd_rd_r=7305d68b-a9ce-4243-93b0-506c992c4f8e&pd_rd_w=udHCX&pd_rd_wg=fXK3u&pf_rd_p=e8166536-0a9e-4ac7-adba-207c4e685029&pf_rd_r=D4WCA9DYS65EDYGP5N78&qid=1733900950&rnid=85457740011&ref=sr_nr_p_123_3&ds=v1%3A%2F6MX%2Fhu7eNI6HfIAZp0%2Fwu6Ogp0x4s6tgeObwq7asxk"
},
{
"name": "Carhartt",
"url": "https://www.amazon.com/s?i=fashion-mens-clothing&rh=n%3A7141123011%2Cp_123%3A130951&s=featured-rank&dc&content-id=amzn1.sym.e8166536-0a9e-4ac7-adba-207c4e685029&pd_rd_r=7305d68b-a9ce-4243-93b0-506c992c4f8e&pd_rd_w=udHCX&pd_rd_wg=fXK3u&pf_rd_p=e8166536-0a9e-4ac7-adba-207c4e685029&pf_rd_r=D4WCA9DYS65EDYGP5N78&qid=1733900950&rnid=85457740011&ref=sr_nr_p_123_4&ds=v1%3AtTMZY%2B2dYsJKUb6tex2r8X24YD9KUm7kmSJD6iAV9vY"
},
{
"name": "Under Armour",
"url": "https://www.amazon.com/s?i=fashion-mens-clothing&rh=n%3A7141123011%2Cp_123%3A6832&s=featured-rank&dc&content-id=amzn1.sym.e8166536-0a9e-4ac7-adba-207c4e685029&pd_rd_r=7305d68b-a9ce-4243-93b0-506c992c4f8e&pd_rd_w=udHCX&pd_rd_wg=fXK3u&pf_rd_p=e8166536-0a9e-4ac7-adba-207c4e685029&pf_rd_r=D4WCA9DYS65EDYGP5N78&qid=1733900950&rnid=85457740011&ref=sr_nr_p_123_5&ds=v1%3AAo%2F5Ini7gz0on%2FJJqKhLLx9aVV8mPToavu4eqtmLthA"
},
{
"name": "Fruit of the Loom",
"url": "https://www.amazon.com/s?i=fashion-mens-clothing&rh=n%3A7141123011%2Cp_123%3A244163&s=featured-rank&dc&content-id=amzn1.sym.e8166536-0a9e-4ac7-adba-207c4e685029&pd_rd_r=7305d68b-a9ce-4243-93b0-506c992c4f8e&pd_rd_w=udHCX&pd_rd_wg=fXK3u&pf_rd_p=e8166536-0a9e-4ac7-adba-207c4e685029&pf_rd_r=D4WCA9DYS65EDYGP5N78&qid=1733900950&rnid=85457740011&ref=sr_nr_p_123_6&ds=v1%3A72Psc6SxfoIV%2BZm9akprcfaNUF5PMjDEcuiPI3zxaHM"
},
{
"name": "adidas",
"url": "https://www.amazon.com/s?i=fashion-mens-clothing&rh=n%3A7141123011%2Cp_123%3A198664&s=featured-rank&dc&content-id=amzn1.sym.e8166536-0a9e-4ac7-adba-207c4e685029&pd_rd_r=7305d68b-a9ce-4243-93b0-506c992c4f8e&pd_rd_w=udHCX&pd_rd_wg=fXK3u&pf_rd_p=e8166536-0a9e-4ac7-adba-207c4e685029&pf_rd_r=D4WCA9DYS65EDYGP5N78&qid=1733900950&rnid=85457740011&ref=sr_nr_p_123_7&ds=v1%3A3xjU4bLvYksK34CvDfiM9xe3FJrXwz8tdbDfkbBBI2E"
},
{
"name": "Columbia",
"url": "https://www.amazon.com/s?i=fashion-mens-clothing&rh=n%3A7141123011%2Cp_123%3A232621&s=featured-rank&dc&content-id=amzn1.sym.e8166536-0a9e-4ac7-adba-207c4e685029&pd_rd_r=7305d68b-a9ce-4243-93b0-506c992c4f8e&pd_rd_w=udHCX&pd_rd_wg=fXK3u&pf_rd_p=e8166536-0a9e-4ac7-adba-207c4e685029&pf_rd_r=D4WCA9DYS65EDYGP5N78&qid=1733900950&rnid=85457740011&ref=sr_nr_p_123_8&ds=v1%3AYgp1b5gORJ%2BtaQxaHGlBVJps72ZsANpeJkKy1J15XbY"
},
{
"name": "Columbia",
"url": "https://www.amazon.com/s?i=fashion-mens-clothing&rh=n%3A7141123011%2Cp_123%3A232621&s=featured-rank&dc&content-id=amzn1.sym.e8166536-0a9e-4ac7-adba-207c4e685029&pd_rd_r=7305d68b-a9ce-4243-93b0-506c992c4f8e&pd_rd_w=udHCX&pd_rd_wg=fXK3u&pf_rd_p=e8166536-0a9e-4ac7-adba-207c4e685029&pf_rd_r=D4WCA9DYS65EDYGP5N78&qid=1733900950&rnid=85457740011&ref=sr_nr_p_123_8&ds=v1%3AYgp1b5gORJ%2BtaQxaHGlBVJps72ZsANpeJkKy1J15XbY"
},
{
"name": "Champion",
"url": "https://www.amazon.com/s?i=fashion-mens-clothing&rh=n%3A7141123011%2Cp_123%3A170251&s=featured-rank&dc&content-id=amzn1.sym.e8166536-0a9e-4ac7-adba-207c4e685029&pd_rd_r=7305d68b-a9ce-4243-93b0-506c992c4f8e&pd_rd_w=udHCX&pd_rd_wg=fXK3u&pf_rd_p=e8166536-0a9e-4ac7-adba-207c4e685029&pf_rd_r=D4WCA9DYS65EDYGP5N78&qid=1733900950&rnid=85457740011&ref=sr_nr_p_123_9&ds=v1%3A%2Fu43XbblvcfFW28JABINdzBxPsXS6B%2FZHMSEM5p916U"
},
{
"name": "Dickies",
"url": "https://www.amazon.com/s?i=fashion-mens-clothing&rh=n%3A7141123011%2Cp_123%3A198650&s=featured-rank&dc&content-id=amzn1.sym.e8166536-0a9e-4ac7-adba-207c4e685029&pd_rd_r=7305d68b-a9ce-4243-93b0-506c992c4f8e&pd_rd_w=udHCX&pd_rd_wg=fXK3u&pf_rd_p=e8166536-0a9e-4ac7-adba-207c4e685029&pf_rd_r=D4WCA9DYS65EDYGP5N78&qid=1733900950&rnid=85457740011&ref=sr_nr_p_123_10&ds=v1%3AevYEi0za59diEZRSOeGaBcZpGwwFolvtwfkLJopELgc"
},
{
"name": "Our Brands",
"url": "https://www.amazon.com/s?i=fashion-mens-clothing&rh=n%3A7141123011%2Cp_n_feature_eighteen_browse-bin%3A16926165011&s=featured-rank&dc&content-id=amzn1.sym.e8166536-0a9e-4ac7-adba-207c4e685029&pd_rd_r=7305d68b-a9ce-4243-93b0-506c992c4f8e&pd_rd_w=udHCX&pd_rd_wg=fXK3u&pf_rd_p=e8166536-0a9e-4ac7-adba-207c4e685029&pf_rd_r=D4WCA9DYS65EDYGP5N78&qid=1733900950&rnid=14630382011&ref=sr_nr_p_n_feature_eighteen_browse-bin_1&ds=v1%3As5nX0AvpGK5oZkD%2FawfGTAs%2FevDKW6q3zJjkcvmdLss"
},
{
"name": "Premium Brands",
"url": "https://www.amazon.com/s?i=fashion-mens-clothing&rh=n%3A7141123011%2Cp_n_feature_eighteen_browse-bin%3A21451213011&s=featured-rank&dc&content-id=amzn1.sym.e8166536-0a9e-4ac7-adba-207c4e685029&pd_rd_r=7305d68b-a9ce-4243-93b0-506c992c4f8e&pd_rd_w=udHCX&pd_rd_wg=fXK3u&pf_rd_p=e8166536-0a9e-4ac7-adba-207c4e685029&pf_rd_r=D4WCA9DYS65EDYGP5N78&qid=1733900950&rnid=14630382011&ref=sr_nr_p_n_feature_eighteen_browse-bin_2&ds=v1%3APH1RueaiFDwAnm%2Fn14%2FqjQVbynH4Q1Ot4wCd6VX7Waw"
},
{
"name": "Top Brands",
"url": "https://www.amazon.com/s?i=fashion-mens-clothing&rh=n%3A7141123011%2Cp_n_feature_eighteen_browse-bin%3A14630392011&s=featured-rank&dc&content-id=amzn1.sym.e8166536-0a9e-4ac7-adba-207c4e685029&pd_rd_r=7305d68b-a9ce-4243-93b0-506c992c4f8e&pd_rd_w=udHCX&pd_rd_wg=fXK3u&pf_rd_p=e8166536-0a9e-4ac7-adba-207c4e685029&pf_rd_r=D4WCA9DYS65EDYGP5N78&qid=1733900950&rnid=14630382011&ref=sr_nr_p_n_feature_eighteen_browse-bin_3&ds=v1%3A1MJuqWqemJv9XNO4F33rhB9n0MLTK3KbtHHd9Kbx7Bc"
},
{
"name": "Luxury Stores’ Brands",
"url": "https://www.amazon.com/s?i=fashion-mens-clothing&rh=n%3A7141123011%2Cp_n_feature_eighteen_browse-bin%3A24051913011&s=featured-rank&dc&content-id=amzn1.sym.e8166536-0a9e-4ac7-adba-207c4e685029&pd_rd_r=7305d68b-a9ce-4243-93b0-506c992c4f8e&pd_rd_w=udHCX&pd_rd_wg=fXK3u&pf_rd_p=e8166536-0a9e-4ac7-adba-207c4e685029&pf_rd_r=D4WCA9DYS65EDYGP5N78&qid=1733900950&rnid=14630382011&ref=sr_nr_p_n_feature_eighteen_browse-bin_4&ds=v1%3ABO2WaEhQM%2FdxGqOY%2BdyxSWHKh54cYOuPHmJ33xm%2BrWg"
}
],
"delivery_zipcode": "68501"
},
"remaining_credits": 1946479
}

So as you can see the response has 48 results from page 1 and the value of no_of_pages is 400.

Get data from all pages

By looping over the page numbers 1 through 400, we can scrape all products from the entire department or category in this manner.

Get brand specific product

The response also includes links to the brand filters that Amazon has on the left most column of the search results' page. These links can further be used to scrape brand specific products for a search keyword or category.

Please note that the url you use with the Amazon Category API must be a category or department URL with pagination at the bottom. Any valid Amazon url with product results and pagination can be used — whether it is a department url or a search url — with filters or without.

Here's a step-by-step guide you can use to find the right url to use with the Amazon Category API


Did this answer your question?