I want to search Amazon's product API for discounted products (30% off or more). Is there a simple way to do this via the API?
AWS offers two APIs that you can use to query prices: With the AWS Price List Bulk API, you can query the prices of AWS services in bulk. The API returns either a JSON or a CSV file.
Free Tier. The Amazon API Gateway free tier includes one million API calls received for REST APIs, one million API calls received for HTTP APIs, and one million messages and 750,000 connection minutes for WebSocket APIs per month for up to 12 months.
The Amazon Product Advertising API returns up to ten items per search request. A SearchItems request requires a search category, which, if not specified, defaults to "All" and value for at least one of Keywords , Actor , Artist , Author , Brand or Title for searching items on Amazon.
Login to your Amazon Developer Console account. You will be prompted to create an account if you do not already have one. In the main navigation, click Apps & Services. Click API Access in the sub-menu.
For certain search indexes, you can ask for minimum percentage off:
http://docs.amazonwebservices.com/AWSECommerceService/2011-08-01/DG/USSearchIndexParamForItemsearch.html
For instance, if I'm searching for Toys, I can get the minimum percentage off with the following parameters:
{"SearchIndex": "Toys", "Service": "AWSECommerceService", "AWSAccessKeyId": "xxx", "Timestamp": "2011-12-26T05:41:20Z", "Version": "2009-11-02", "Keywords": "Halo", "AssociateTag": "xxx", "MinPercentageOff": 30, "Operation": "ItemSearch", "ResponseGroup": "Large"}
However, if I'm searching for video games, the "MinPercentageOff" parameter is ignored. The documentation page I included above shows which of the search indices accept this parameter - note that if the index doesn't support it it's simply ignored (the search doesn't fail, it just doesn't honor that parameter).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With