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

api.product_finder isn't working as it should. #129

Open
maiq123 opened this issue Jan 31, 2023 · 1 comment
Open

api.product_finder isn't working as it should. #129

maiq123 opened this issue Jan 31, 2023 · 1 comment

Comments

@maiq123
Copy link

maiq123 commented Jan 31, 2023

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?

@neildocrafter
Copy link

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
}

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

2 participants