keepa icon indicating copy to clipboard operation
keepa copied to clipboard

Product finder wrong keys?

Open volcompt opened this issue 1 year ago • 0 comments

I am trying to run this API query using keepa python API:

{
    "manufacturer": [
        "abbott"
    ],
    "sort": [
        [
            "current_SALES",
            "asc"
        ]
    ],
    "productType": [
        0,
        1
    ],
    "page": 0,
    "perPage": 5000
}

Here's what I am doing:

api = keepa.Keepa(accesskey)
product_params = {'manufacturer': 'abbott', 'perPage': 10000, 'sortType': ["current_SALES", "asc"]
                 , 'productType': [0, 1]}
products = api.product_finder(product_params)

But I get the following error: Invalid key "sortType"

I tried using only sort as in the documentation, but I get a similar error.

volcompt avatar Aug 05 '22 16:08 volcompt