<p>You have to set the criteria model's <code>limit</code> parameter to null and <a href="https://github.com/pixelandtonic/ElementAPI#paginate" rel="noreferrer">disable pagination</a>.</p>

<pre><code>'criteria' =&gt; [
    'group' =&gt; 'fullMembership',
    'limit' =&gt; null,
],
'paginate' =&gt; false,
</code></pre>

CC BY-SA 3.0
2016-01-29T11:48:05.370Z
Thanks Carlcs, but that still results in this: {"pagination":{"total":409,"count":100,"per_page":100,"current_page":1,"total_pages":5,"links":{"next":"http:\/\/craft.fira\/fullmembers.json?page=2"}}}}
Adam Menczykowski
CC BY-SA 3.0
2016-01-29T11:50:28.573Z
Oh, you have to disable pagination. Will update the answer.
carlcs
CC BY-SA 3.0
2016-01-29T11:46:29.380Z
2016-01-29T11:52:20.470Z
2016-01-29T11:52:20.470Z
carlcs
<p>Using Element API I would like to remove the limit to how many entries are in the JSON output. </p>

<p>The default is 100 entries, with pagination. I would like 1 response with all entries.</p>

<p>Here is my current call:</p>

<pre><code>return [
'endpoints' =&gt; [
    'fullmembers.json' =&gt; [
        'elementType' =&gt; 'User',
        'criteria' =&gt; ['group' =&gt; 'fullMembership'],
        'transformer' =&gt; function(UserModel $member) {
//....
</code></pre>

<p>Thanks in advance guys!</p>

<plugin-elementapi>
Element API - remove response limit
# Element API - remove response limit

(Asked by: username_0 on 2016-01-29)

Using Element API I would like to remove the limit to how many entries are in the JSON output. 
The default is 100 entries, with pagination. I would like 1 response with all entries.
Here is my current call:
return [
'endpoints' => [
    'fullmembers.json' => [
        'elementType' => 'User',
        'criteria' => ['group' => 'fullMembership'],
        'transformer' => function(UserModel $member) {
//....

Thanks in advance guys!

**Tags:** plugin-elementapi


---

## 1 answers

### Answer by username_1 on 2016-01-29. Score: 5 | Accepted answer

You have to set the criteria model's limit parameter to null and disable pagination.
'criteria' => [
    'group' => 'fullMembership',
    'limit' => null,
],
'paginate' => false,

> **Comments:**
> **username_0**: Thanks Carlcs, but that still results in this: {"pagination":{"total":409,"count":100,"per_page":100,"current_page":1,"total_pages":5,"links":{"next":"http:\/\/craft.fira\/fullmembers.json?page=2"}}}}  
> **username_1**: Oh, you have to disable pagination. Will update the answer.  

---

