title: WordPress JSON API: Retrieve multiple posts by ids
body: <p>I am using the WordPress JSON API plugin with my website. <a href="https://wordpress.org/plugins/json-api/" rel="noreferrer">https://wordpress.org/plugins/json-api/</a></p>
  
  <p>I'm attempting to retrieve multiple posts, by their ids through a REST call.</p>
  
  <p>For example:
      <a href="http://www.example.org/api/core/get_posts/?posts__in=7742,20715" rel="noreferrer">http://www.example.org/api/core/get_posts/?posts__in=7742,20715</a></p>
  
  <p>According to the plugin documentation, get_posts supports all parameters of the WP_QUERY function, so this should work. However, this call returns</p>
  
  <pre><code>{
    "status": "ok",
    "count": 0,
    "count_total": 0,
    "pages": 0,
    "posts": [
  
    ],
    "query": {
      "ignore_sticky_posts": true,
      "post__in": "7742,20715"
    }
  }
  </code></pre>
  
  <p>Note that the posts aren't returned. However, I have verified these post ids to be valid and correct.</p>
  
  <p>Am I calling the json api incorrectly?</p>
  
  <p>Thank you,</p>
  
  <p>William</p>