# Handle API Filters in postman

**URL:** <https://community.postman.com/t/handle-api-filters-in-postman/39906>\
**Category:** Help Hub\
**Tags:** tests, filters\
**Created:** [October 9, 2022, 5:30pm UTC](https://community.postman.com/t/handle-api-filters-in-postman/39906 "2022-10-09T17:30:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Veenadevi](https://avatars.discourse-cdn.com/v4/letter/v/c2a13f/32.png) [@Veenadevi](https://community.postman.com/u/Veenadevi)\
**Post date:** [October 9, 2022, 5:30pm UTC](https://community.postman.com/t/handle-api-filters-in-postman/39906/1 "2022-10-09T17:30:52Z")

</div>

How to add filters in postman request.  
My End point :/v1/customers?where={“patronCode”:{“in”:[“P9076258”]}}&take=5

How to user this “where={“patronCode”:{“in”:[“P9076258”]}}” in my GET Request?

---

<div class="post-metadata">

**Author:** ![michaelderekjones](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/michaelderekjones/32/14819_2.png) [@michaelderekjones](https://community.postman.com/u/michaelderekjones)\
**Post date:** [October 10, 2022, 11:47am UTC](https://community.postman.com/t/handle-api-filters-in-postman/39906/2 "2022-10-10T11:47:26Z")

</div>

This can be done via the Params tab on the request.

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/0/c/0c9c49aac68ec5fdd633a550a8b8f4d07769bff4.png)

---

<div class="post-metadata">

**Author:** ![Veenadevi](https://avatars.discourse-cdn.com/v4/letter/v/c2a13f/32.png) [@Veenadevi](https://community.postman.com/u/Veenadevi)\
**Post date:** [October 11, 2022, 9:50am UTC](https://community.postman.com/t/handle-api-filters-in-postman/39906/3 "2022-10-11T09:50:23Z")

</div>

I found the solution. API request will not handle {{ , so we need to encode before passing the request

pm.request.url=encodeURI(pm.variables.replaceIn(pm.request.url))
