keepa icon indicating copy to clipboard operation
keepa copied to clipboard

api.product_finder isn't working as it should.

Open maiq123 opened this issue 1 year ago • 1 comments

Hi I'm a keepa user a wanted to do a query as below: api = keepa.Keepa('################################################')

product_params = { "current_SALES_gte": 200, "current_SALES_lte": 80000, "salesRankDrops30_gte": 15, "salesRankDrops90_gte": 25, "current_BUY_BOX_SHIPPING_gte": 2000, "buyBoxSellerId": ['A2LKZRSRNM40F5','APZQDU58R6UG9'], "current_AMAZON_gte": -1, "current_AMAZON_lte": -1, "outOfStockPercentage90_gte": 50, "offerCountFBA_gte": 3, "productType": [ "0" ], "sort": [ [ "current_SALES", "asc" ] ] }

asins = api.product_finder(product_params)

so the "buyBoxSellerId" filter isn't quiet working as without it the query works fine. When I pass in a single seller id it works as well. But when I pass in an array of strings, It doesn't return anything. It should work as it works in keepa product finder in UI. Am I missing something here?

maiq123 avatar Jan 31 '23 17:01 maiq123

I second this. When I use the product finder and click 'show api query' then copy it exactly as shown below it does not work. These IDs are what keepa provide when you select the seller as amazon. If i remove just the buyboxsellerid the API query works perfect. Same as above person, am i missing something? Thanks

{ "current_SALES_gte": 1, "current_SALES_lte": 50000, "productType": [ "0" ], "buyBoxSellerId": [ "A3P5ROKL5A1OLE", "AZH2GF8Z5J95G" ], "current_BUY_BOX_SHIPPING_gte": 0, "brand": [ "✜amazon", "✜amazon aware", "✜amazon basics", "✜amazon collection", "✜amazon essentials" ], "singleVariation": true, "deltaPercent30_BUY_BOX_SHIPPING_gte": 45, "deltaPercent30_BUY_BOX_SHIPPING_lte": 99, "deltaPercent90_BUY_BOX_SHIPPING_gte": 45, "deltaPercent90_BUY_BOX_SHIPPING_lte": 99, "avg180_SALES_gte": 1, "avg180_SALES_lte": 50000, "salesRankDrops30_gte": 15, "avg180_BUY_BOX_SHIPPING_gte": 1500, "sort": [ [ "current_SALES", "asc" ] ], "perPage": 100, "page": 0 }

neildocrafter avatar Feb 25 '24 13:02 neildocrafter