Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to check the quantity of items from ASIN code #771

Open
georgelxl6 opened this issue Aug 23, 2024 · 0 comments
Open

How to check the quantity of items from ASIN code #771

georgelxl6 opened this issue Aug 23, 2024 · 0 comments

Comments

@georgelxl6
Copy link

georgelxl6 commented Aug 23, 2024

I tired to get the remain quantity of inventory from ASIN code, but I can't.
This is my python code

requests.get(amzn_product_entrypoint+product['asin']+"?marketplaceIds="+amzn_marketplace_id+"&includedData=attributes,dimensions,identifiers,images,productTypes,salesRanks,summaries,relationships", headers=amzn_get_product_data_header)

amzn_product_data_json = json.loads(amzn_product_data_byte)

quantity = amzn_product_data_json['attributes']['number_of_items'][0]['value']

I tried like above, the it is not the correct value.
What is wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant