Skip to main contentIBM Quantum Documentation

Usage


Get usage

Get usage by instance

HTTP Response Status Codes

Status codeDescription
200Returns usage
401Unauthorized
500Internal server error

Code samples

GET
/usage
curl -X GET \
  https://api.quantum-computing.ibm.com/runtime/usage \
  -H 'Authorization: Bearer YOUR-TOKEN' \
  -H 'Accept: application/json'

Responses

{
  "period": {
    "start": "2023-09-01T00:00:00.000Z",
    "end": "2023-09-30T23:59:59.999Z"
  },
  "byInstance": [
    {
      "instance": "defaultHub/defaultGroup/defaultProject",
      "usage": 10,
      "quota": 600,
      "pendingJobs": 2,
      "maxPendingJobs": 3
    }
  ]
}
Was this page helpful?
Report a bug or request content on GitHub.