amazon-product-api
amazon-product-api copied to clipboard
TotalPages not returned in ItemSearch
From the Amazon Docs...
The total number of pages found is returned in the TotalPages response element.
I don't see this being returned in this package as expected.
It's found in the 'response' variable. However, you can only get this if using callbacks rather than promises from what I can tell in the documentation.
To get the total pagesuse:
response[0].TotalPages
Also see https://github.com/t3chnoboy/amazon-product-api/issues/73 regarding Promises vs Callback consistency.
Also, this is a dupe of https://github.com/t3chnoboy/amazon-product-api/issues/49