title: How to get the number of unread threads in INBOX with Gmail API?
body: <p>I tried to use the list thread method:</p>
  
  <pre><code>GET https://www.googleapis.com/gmail/v1/users/{MyEmailAddress}/threads?labelIds=INBOX&amp;labelIds=UNREAD&amp;key={YOUR_API_KEY}
  </code></pre>
  
  <p>The resultSizeEstimate does not match the number next to my inbox in Gmail web app.</p>
  
  <p>Is there another way?</p>