# How does one specify the number of data you would like to see when doing a get request

**URL:** <https://community.postman.com/t/how-does-one-specify-the-number-of-data-you-would-like-to-see-when-doing-a-get-request/20480>\
**Category:** Help Hub\
**Tags:** tests, variables\
**Created:** [February 17, 2021, 8:21am UTC](https://community.postman.com/t/how-does-one-specify-the-number-of-data-you-would-like-to-see-when-doing-a-get-request/20480 "2021-02-17T08:21:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shamras](https://avatars.discourse-cdn.com/v4/letter/s/ce73a5/32.png) [@Shamras](https://community.postman.com/u/Shamras)\
**Post date:** [February 17, 2021, 8:21am UTC](https://community.postman.com/t/how-does-one-specify-the-number-of-data-you-would-like-to-see-when-doing-a-get-request/20480/1 "2021-02-17T08:21:31Z")

</div>

Hi, I am new to postman I need some help defining a search results.

I have a test endpoint for 10 users [https://jsonplaceholder.typicode.com/users](https://jsonplaceholder.typicode.com/users) I want to be able to only view 5 of those users.

What I have tried using setting the limit variable to 5, the size variable to 5 but I am still getting 10 users back in my body results.

[https://jsonplaceholder.typicode.com/users?limit=5](https://jsonplaceholder.typicode.com/users?limit=5)  
[https://jsonplaceholder.typicode.com/users?size=5](https://jsonplaceholder.typicode.com/users?size=5)

I have search on other topics but most results is telling me to use limit variable and size but this does not seem to work.  
Please help.  
Thank you

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [February 17, 2021, 8:41am UTC](https://community.postman.com/t/how-does-one-specify-the-number-of-data-you-would-like-to-see-when-doing-a-get-request/20480/2 "2021-02-17T08:41:03Z")

</div>

Hey @Shamras

Welcome to the community! 🏆

Features like _filtering_ or _searching_ don’t automatically come with every endpoint, if the API hasn’t been implemented that way then it would never work.

As that’s a public test example endpoint, the functionality for it is quite limited. You can find the basic docs here:

[https://jsonplaceholder.typicode.com/](https://jsonplaceholder.typicode.com/)

If you want to just practice against a public API which has some filtering options available, you could try this one:

[https://randomuser.me/documentation#intro](https://randomuser.me/documentation#intro)

---

<div class="post-metadata">

**Author:** ![Shamras](https://avatars.discourse-cdn.com/v4/letter/s/ce73a5/32.png) [@Shamras](https://community.postman.com/u/Shamras)\
**Post date:** [February 17, 2021, 9:22am UTC](https://community.postman.com/t/how-does-one-specify-the-number-of-data-you-would-like-to-see-when-doing-a-get-request/20480/3 "2021-02-17T09:22:08Z")

</div>

I see thank you for this, so there isn’t another way of doing it can you not specify something in the body with a java script very curious about that. Asking this what happens if a client gives you an api like the test one I used was wondering how would I handle that if that is one of my tests.

Thanks for the other api appreciate it.

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [February 17, 2021, 10:15am UTC](https://community.postman.com/t/how-does-one-specify-the-number-of-data-you-would-like-to-see-when-doing-a-get-request/20480/4 "2021-02-17T10:15:17Z")

</div>

Each APIs implementation is different - There _could_ be filtering using the URL Params or possibly as part of the Request Body. The person/team who created it will know what it should and shouldn’t do.

Just taking those 2 example APIs, they are quite simple in terms of complexity but both have been implemented differently and the functionality for each one is not the same.

Ideally, you would have documentation for the whole API that would specify the behaviour of each endpoint. Without that, it’s just guesswork. 😃
