t3chnoboy / amazon-product-api

:credit_card: Amazon Product Advertising API client
365 stars 104 forks source link

itemPage Restriction #65

Closed HarshaVardhanPVK closed 7 years ago

HarshaVardhanPVK commented 7 years ago

Is there any way to get all the products from amazon with out any restrictions like 10 pages.

masterT commented 7 years ago

Not that I know (using the API).

joshwcomeau commented 7 years ago

Mhmm, I was just looking through the API docs and it looks like 10 is a fixed rule.

The solution would be to make several requests in parallel, using itemPage. You should be able to get up to 100 results that way, although you'd likely want to ensure that they're loaded as they come in, and not wait for all requests to resolve.

See http://docs.aws.amazon.com/AWSECommerceService/latest/DG/PagingThroughResults.html