# Rate-limiting plugin - different rate depending on query params?

**URL:** <https://discuss.konghq.com/t/rate-limiting-plugin-different-rate-depending-on-query-params/7503>\
**Category:** Questions\
**Created:** [November 25, 2020, 3:07pm UTC](https://discuss.konghq.com/t/rate-limiting-plugin-different-rate-depending-on-query-params/7503 "2020-11-25T15:07:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![KrzHon](https://avatars.discourse-cdn.com/v4/letter/k/ecb155/32.png) [@KrzHon](https://discuss.konghq.com/u/KrzHon)\
**Post date:** [November 25, 2020, 3:07pm UTC](https://discuss.konghq.com/t/rate-limiting-plugin-different-rate-depending-on-query-params/7503/1 "2020-11-25T15:07:37Z")

</div>

Hello,

My team is new to Kong and we are still researching what we can achevie using Kong.  
One of the functionalities that we take into the consideration is ability to apply rate limiting to the request, depending on the query parameters send with said request.  
Is there any way in which this limitation could be configured in Rate-limiting plugin?

I was wondering if this could be achieved using `config.path` parameter in plugin settings.  
Unfortunately, it seems that this parameter is not affecting the way rate-limiting works.

I tried this configuration:

> - name: rate-limiting  
> service: test-service  
> config:  
> hour: 5  
> policy: local  
> limit\_by: path  
> path: /path/example

where `/path/example` refers to one of the routes exposed by `test-service`. It doesn’t seem that rate-limiting behaviour changes depending on presence of `path` parameter - my understanding was, that this rate limiting will be applied to the path set in `path` parameter.  
The documentation of plugin describes `path` parameter as “Path to be used if `limit_by` is set to `path`.”.  
Can you explain how this parameter can be used?
