'is there a way to use different rate limit for each api key in express nodejs?

is there a way to use different rate limit for each api key in express nodejs?

for example api key "guest" has a rate limit of 500 requests per day and api key "key" has a rate limit of 1000 requests per day.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source