keepa icon indicating copy to clipboard operation
keepa copied to clipboard

Can i limit the KeepaApi Token cost per request?

Open Wohlgemuth-Dev opened this issue 1 year ago • 2 comments

My program works perfectly fine, but lately i had a case with one gtin request, that cost around 1500 tokens because it found so many products under that gtin. To counter this case is there any way i could limit the token cost per request made?

Ty in advance for an answer.

Wohlgemuth-Dev avatar Jul 17 '24 13:07 Wohlgemuth-Dev

had to append the url in requests.get with "code-limit=10" for max 10 prodcuts in response

Wohlgemuth-Dev avatar Jul 17 '24 14:07 Wohlgemuth-Dev

Reopening, would be nice to add this as a keyword argument.

akaszynski avatar Jul 17 '24 14:07 akaszynski