How to get remaining key quota?


I’m looking for a way to get the remaining quota of a key for reporting purpose. I could use the X-Ratelimit-Remaining value returned in the header but I need to actually use the key to get it and that subtracts 1 from the quota. Is there a way to get the remaining quota value of a key without affecting the remaining quota?



@mching You can use this API, it’s not documented (but it should be output in your loading logs):

GET /{listen_path}/tyk/rate-limits/


Thanks! It works:grinning:

1 Like