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

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

Open
Wohlgemuth-Dev opened this issue Jul 17, 2024 · 2 comments
Open

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

Wohlgemuth-Dev opened this issue Jul 17, 2024 · 2 comments

Comments

@Wohlgemuth-Dev
Copy link

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
Copy link
Author

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

@akaszynski akaszynski reopened this Jul 17, 2024
@akaszynski
Copy link
Owner

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

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