python-amazon-sp-api icon indicating copy to clipboard operation
python-amazon-sp-api copied to clipboard

List items only returns one item

Open tatianafrank opened this issue 2 years ago • 1 comments

Describe the bug

This catalog list items method says it "returns a list of items" but even when I give multiple skus as identifiers, the API can only return an item for one of the skus at a time. I need a way to fetch multiple catalog items at the same time rather than sending a separate API request for each individual SKU. I also looked into the search catalog items method but it does not accept identifiers as a parameter, only keywords.

To Reproduce

Steps to reproduce the behavior:

Expected behavior

A clear and concise description of what you expected to happen.

Desktop (please complete the following information):

  • OS: [e.g. Linux/Mac/Windows]

Additional context

Add any other context about the problem here.

tatianafrank avatar Aug 31 '22 22:08 tatianafrank

@tatianafrank Actually this is expected behavior for this particular endpoint (so it is not issue with lib in this case)

Based on what and how you search it will return multiple or single value (if we do query search it could return multiple values, but we could search with just one of SKU, UPC, EAN, ISBN... and we will get single result, as we search for specific identifier)

https://developer-docs.amazon.com/sp-api/docs/catalog-items-api-v0-reference#listcatalogitems

abrihter avatar Sep 10 '22 22:09 abrihter