akaszynski / keepa

Python Keepa.com API
https://keepaapi.readthedocs.io/en/latest/
Apache License 2.0
238 stars 77 forks source link

Can i limit the KeepaApi Token cost per request? #181

Open Wohlgemuth-Dev opened 1 month ago

Wohlgemuth-Dev commented 1 month ago

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 commented 1 month ago

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

akaszynski commented 1 month ago

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