How to scrape Amazon® products with the Halios-data's API

The purpose of this article is how to search and filter the products with our API.

Today, If I search for products from Amazon's website like iWatch, I can see the following results.


Search products with the Amazon website

If we analyze the structure, we found two elements:

  1. Left panel, we can apply filters

  2. Right panel, the products display

Search products with the API

Create an account to RapidAPI

Today, you need to create an account to RAPIDAPI to consume the API, but don't worry, you can use your Google or Github account ;).



Subscribe to the API


After the login, you are generally redirected to the API hub. Else click here

You can test the API for free with 200 requests per month. Click on the subscribe button and choose the Basic plan.














Use the API with Postman

If I reproduce the request with the API and Postman


In the URL, I indicate


https://amazon24.p.rapidapi.com/api/product?categoryID=aps&keyword=iwatch&country=US

Don't forget to add the RAPIDAPI Token in the headers

  • x-RapidAPI-key

  • x-RapidAPI-host


Now I launch the request, after some seconds, the result is displayed.



And like the website, we have the two panels

the first panel that are the docs for the API




And filters with refinments attribute.


Apply filter to products

Imagine if I need to filter the products Apple.

I have to add this address to the filter query param in the API


https://amazon24.p.rapidapi.com/api/product?categoryID=aps&keyword=iwatch&country=US&filter=https://www.amazon.com/s?k=iwatch&rh=n%3A10048700011%2Cp_89%3AApple&dc&qid=1637812618&rnid=2528832011&ref=sr_nr_p_89_1


Now the API returns just the Apple products.



And you can, if you wish re-apply other filters.


Thank you and good scraping with us.

315 views0 comments

Discover Halios-Data solution for the web scraping

More Halios-Data

Never miss an update

Thanks for submitting!