keepa icon indicating copy to clipboard operation
keepa copied to clipboard

How to specify marketplace and other questions

Open brahmac opened this issue 4 years ago • 2 comments

Hello, Thank you for making this helpful package. I would not have subscribed to Keepa API, if this package wasn't there. I am fairly new with the API and have a few questions - hope someone would be kind enough to help me.

  1. In the following query how do I specify a marketplace of Canada (6). I thought ASINs were unique to a marketplace, but it seems like they are not (e.g. 1454857935)

asins = np.asarray(['list of asins']) products = api.query(asins)

products = api.query(asins, domain = 6) doesn't work.

  1. What's the difference between 'csv' and 'data' in the product object? A lot of the data between the two seems to be the same.

  2. Not all ASINS return enough data via the Keepa API. For example the actively listed starbucks product - B078HVQ311 in CA marketplace - currently returns very little data. However, the Keepa graph within the browser has data for 1069 days. Why is this the case? Not only does it not return enough data - it also returns incorrect data (e.g. the 'title' is not correct)

Thank you.

brahmac avatar Dec 03 '20 09:12 brahmac

For 1.

# keepa/interface.py (lines 348-350)
domain : str, optional
    One of the following Amazon domains: RESERVED, US, GB, DE,
    FR, JP, CA, CN, IT, ES, IN, MX Defaults to US.

you can pass asins as regular list too

  1. I don't know

  2. I don't know (maybe related to domain ?)

chocobn69 avatar Dec 03 '20 10:12 chocobn69

Thank you. The following solves 1) and 3)

Aproduct = api.query('B078HVQ311', domain = 'CA')

brahmac avatar Dec 03 '20 17:12 brahmac