title: Elasticsearch GET API for Shard Size
body: <p>With Elasticsearch 2.3.3, is there a way to get shard sizes using the GET API which returns JSON?</p>
  <p>Currently I have found the following methods to get shard size, both of which are problematic:</p>
  <ol>
  <li><p><code>/_recovery</code> -&gt; Responds with JSON and provides shard size BUT replica shards are reported as having &quot;size_in_bytes&quot; as 0 which is incorrect.</p>
  </li>
  <li><p><code>/_cat/shards</code> -&gt; Provides the correct/desired info BUT is NOT JSON and sizes are reported in non uniform units as strings (ex. 3.2KB, 4.9MB etc.).  This endpoint is more for visual consumption whereas I want to consume the response programmatically from an AJAX call.</p>
  </li>
  </ol>
  <p>I've done a lot of searching on Google / Elastic.com but have not found anything, but I would be very surprised if it is not available....</p>
  <p>Any ideas?  Thanks!!</p>