title: How can I get available license via Google Workspace Admin SDK?
body: <p>On Google Admin screen, I can get numbers of available licenses and used licenses shown below:</p>
  <p><a href="https://i.stack.imgur.com/dvU1M.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dvU1M.png" alt="Google Admin Subscription" /></a></p>
  <p>How can I get these numbers via API?</p>
  <p>Note: I read <a href="https://stackoverflow.com/questions/66575862/how-to-get-total-and-current-numbers-of-google-workspace-business-starter-licens">this question</a> and tried, but not worked well.</p>
  <p>-- EDIT: 2021/07/15 --</p>
  <p>My request:</p>
  <p><a href="https://developers.google.com/admin-sdk/reports/reference/rest/v1/customerUsageReports/get" rel="nofollow noreferrer">https://developers.google.com/admin-sdk/reports/reference/rest/v1/customerUsageReports/get</a>
  <a href="https://i.stack.imgur.com/kfPrX.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kfPrX.jpg" alt="enter image description here" /></a></p>
  <ul>
  <li>date: (few days before now)</li>
  <li>parameters: <code>accounts:gsuite_unlimited_total_licenses</code> (comes from <a href="https://developers.google.com/admin-sdk/reports/v1/appendix/usage/customer/accounts" rel="nofollow noreferrer">Account Parameters</a>)</li>
  </ul>
  <p>Response from API:</p>
  <pre><code>{
    &quot;kind&quot;: &quot;admin#reports#usageReports&quot;,
    &quot;etag&quot;: &quot;\&quot;occ7bTD-Q2yefKPIae3LMOtCT9xQVZYBzlAbHU5b86Q/gt9BLwRjoWowpJCRESV3vBMjYMc\&quot;&quot;
  }
  </code></pre>
  <p>Expectation: <strong>I want to get the data same as <code>2 available, 1132 assigned</code> as the GUI shows.</strong></p>
  <p>To be honestly, I'm not satisfying even if I can get info via this API, because it seems not responding real-time data like GUI.</p>