Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-01-29T11:48:05.370Z
Answers.Text: 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"}}}}
Answers.UserDisplayName: Adam Menczykowski
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-01-29T11:50:28.573Z
Answers.Text: Oh, you have to disable pagination. Will update the answer.
Answers.UserDisplayName: carlcs
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-01-29T11:46:29.380Z
Answers.LastActivityDate: 2016-01-29T11:52:20.470Z
Answers.LastEditDate: 2016-01-29T11:52:20.470Z
Answers.UserDisplayName: carlcs
Body: <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>
  
Tags: <plugin-elementapi>
Title: Element API - remove response limit
ThreadText: # 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](https://github.com/pixelandtonic/ElementAPI#paginate).
  
  ```
  'criteria' => [
      'group' => 'fullMembership',
      'limit' => null,
  ],
  'paginate' => false,
  
  ```
  
  > **Comments:**
  > **username_0**: Thanks username_1, 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.  
  
  ---
  
  