Answers.Body: <p>Within the criteria for the endpoint, set </p>
  
  <pre><code>'postDate' =&gt; '&gt;=' . date('Y-m-d', strtotime("-90 days"))
  </code></pre>
  
  <p>Of course you can adjust the date to suit your needs.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-01-26T17:10:48.977Z
Answers.LastActivityDate: 2017-01-26T17:10:48.977Z
Answers.UserDisplayName: Steven Grant
Body: <p>I'm looking to only return entries that were published in the last 90 days.</p>
  
Tags: <php><plugin-elementapi>
Title: Limit the entries element API will return based on the post date
ThreadText: # Limit the entries element API will return based on the post date
  
  (Asked by: username_0 on 2017-01-26)
  
  I'm looking to only return entries that were published in the last 90 days.
  
  **Tags:** php, plugin-elementapi
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2017-01-26. Score: 2 | Accepted answer
  
  Within the criteria for the endpoint, set
  
  ```
  'postDate' => '>=' . date('Y-m-d', strtotime("-90 days"))
  
  ```
  
  Of course you can adjust the date to suit your needs.
  
  
  ---
  
  