# GET response with limited number of records

**URL:** <https://community.postman.com/t/get-response-with-limited-number-of-records/22137>\
**Category:** Help Hub\
**Created:** [March 31, 2021, 2:00pm UTC](https://community.postman.com/t/get-response-with-limited-number-of-records/22137 "2021-03-31T14:00:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![leandro.gabriel](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/leandro.gabriel/32/7903_2.png) [@leandro.gabriel](https://community.postman.com/u/leandro.gabriel)\
**Post date:** [March 31, 2021, 2:00pm UTC](https://community.postman.com/t/get-response-with-limited-number-of-records/22137/1 "2021-03-31T14:00:50Z")

</div>

I’m doing a GET of an API where in the table there are more than 300 records, when there is a return, only 10 records appear. Where can I change this parameter to return all the information in the table?

---

<div class="post-metadata">

**Author:** ![thefierycoder](https://avatars.discourse-cdn.com/v4/letter/t/5fc32e/32.png) [@thefierycoder](https://community.postman.com/u/thefierycoder)\
**Post date:** [March 31, 2021, 2:05pm UTC](https://community.postman.com/t/get-response-with-limited-number-of-records/22137/2 "2021-03-31T14:05:00Z")

</div>

Hello there,  
You need to add a parameter to increase the limit if it’s available, please check the docs of the API.

 ![Screenshot 2021-03-31 at 7.34.29 PM](https://us1.discourse-cdn.com/getpostman/original/3X/8/d/8dcb00aa8626fe41396b15bd8663121fb7d709b3.png)  
Are you using a Airtable API?

---

<div class="post-metadata">

**Author:** ![leandro.gabriel](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/leandro.gabriel/32/7903_2.png) [@leandro.gabriel](https://community.postman.com/u/leandro.gabriel)\
**Post date:** [March 31, 2021, 2:29pm UTC](https://community.postman.com/t/get-response-with-limited-number-of-records/22137/3 "2021-03-31T14:29:06Z")

</div>

(upload://us2aviV1V4NYsjdpOnLp8ZbUdUc.png)

This is a test:

var template = `

```
<style type="text/css">

    .tftable {font-size:14px;color:#333333;width:100%;border-width: 1px;border-color: #87ceeb;border-collapse: collapse;}

    .tftable th {font-size:18px;background-color:#87ceeb;border-width: 1px;padding: 8px;border-style: solid;border-color: #87ceeb;text-align:left;}

    .tftable tr {background-color:#ffffff;}

    .tftable td {font-size:14px;border-width: 1px;padding: 8px;border-style: solid;border-color: #87ceeb;}

    .tftable tr:hover {background-color:#e0ffff;}

</style>

<table class="tftable" border="1">

    <tr>

        <th>Matricula</th>

        <th>Nome</th>

    </tr>

    {{#each response.content}}

    <tr>

        <td>{{enrolment}}</td>

        <td>{{name}}</td>

    </tr>

    {{/each}}

</table>

```

`;

pm.visualizer.set(template, {

```
response: pm.response.json()

```

});

I only have the return of these 10 records

 ![print2](https://us1.discourse-cdn.com/getpostman/original/3X/2/a/2a3e7983f57014278e3bf36ce5b92c844ee23cc1.png)

![Print3](https://us1.discourse-cdn.com/getpostman/original/3X/f/f/ff16e7c6e47eec054e64b834029e0cc100bd2803.png)

---

<div class="post-metadata">

**Author:** ![thefierycoder](https://avatars.discourse-cdn.com/v4/letter/t/5fc32e/32.png) [@thefierycoder](https://community.postman.com/u/thefierycoder)\
**Post date:** [March 31, 2021, 2:44pm UTC](https://community.postman.com/t/get-response-with-limited-number-of-records/22137/4 "2021-03-31T14:44:47Z")

</div>

Add a size parameter in the params tab and give it an integer value like this.

 ![Screenshot 2021-03-31 at 8.14.20 PM](https://us1.discourse-cdn.com/getpostman/original/2X/d/dd19c918f40119eceec8b2744a655c5633b657a9.png)

---

<div class="post-metadata">

**Author:** ![pardeshisweety](https://avatars.discourse-cdn.com/v4/letter/p/3ec8ea/32.png) [@pardeshisweety](https://community.postman.com/u/pardeshisweety)\
**Post date:** [August 8, 2023, 2:37pm UTC](https://community.postman.com/t/get-response-with-limited-number-of-records/22137/5 "2023-08-08T14:37:14Z")

</div>

Found an easier way :

SELECT \* FROM TABLE OFFSET 0 ROWS FETCH FIRST 300 ROWS ONLY

---

<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:** [August 9, 2023, 11:00am UTC](https://community.postman.com/t/get-response-with-limited-number-of-records/22137/6 "2023-08-09T11:00:26Z")

</div>

@pardeshisweety

That is a SQL query, so unless the API in question allows you to post a SQL type query (which some do), it doesn’t seem relevant to this question.

For example, the SalesForce API allows you do do this (which can be used for setup and tear down scripts).

Limiting or forcing an API to return x number of results will be down to the individual API and what the API will accept.

A well designed API if working with large data sets should allow you to control this in the request without jumping through hoops. I can’t see how a SQL query is easier than a query parameter called size.
