Skip to main contentIBM Quantum Documentation

Analytics


Get analytics filters

Get analytics filters

Query Parameters

Name, TypeDescription
instance
Required
string[]

Instance to get filters for

HTTP Response Status Codes

Status codeDescription
200
401Unauthorized
403Forbidden
404Not found
500Internal server error

Code samples

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

Responses

{
  "backends": [
    {
      "name": "simulator",
      "deleted": true
    }
  ],
  "users": [
    {
      "id": "123",
      "firstName": "John",
      "lastName": "Doe",
      "email": "[email protected]",
      "deleted": true
    }
  ],
  "countries": [
    {
      "label": "United States of America",
      "code": "US"
    }
  ],
  "instances": [
    {
      "id": "hub/group",
      "deleted": true
    }
  ]
}

Get usage analytics

Get usage analytics

Query Parameters

Name, TypeDescription
instance
Required
string

intervalStart
string

intervalEnd
string

backend
string[]

userId
string[]

country
string[]

simulators
boolean

Include simulators

Default value: true

HTTP Response Status Codes

Status codeDescription
200
401Unauthorized
403Forbidden
404Not found
500Internal server error

Code samples

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

Responses

{
  "usage": 10,
  "jobs": 10,
  "sessions": 10,
  "sessionsUsage": 10,
  "avgSessionsUsage": 10,
  "maxSessionsUsage": 10,
  "batchSessions": 10,
  "batchSessionsUsage": 10,
  "avgBatchSessionsUsage": 10,
  "maxBatchSessionsUsage": 10,
  "dedicatedSessions": 10,
  "dedicatedSessionsUsage": 10,
  "avgDedicatedSessionsUsage": 10,
  "maxDedicatedSessionsUsage": 10,
  "individualJobs": 10,
  "individualJobsUsage": 10,
  "avgIndividualJobsUsage": 10,
  "maxIndividualJobsUsage": 10,
  "queueTime": 10,
  "avgQueueTime": 10,
  "maxQueueTime": 10
}

Get usage analytics grouped

Get usage analytics grouped

Query Parameters

Name, TypeDescription
groupBy
Required
string

key to to group usage by

Possible values: instancebackenduserIdcountry
instance
Required
string

instance to get analytics for. could be a hub, hub/group or hub/group/project

intervalStart
string

start date

intervalEnd
string

end date

backend
string[]

backend to filter by

userId
string[]

userId to filter by

country
string[]

country to filter by

simulators
boolean

Include simulators

Default value: true

HTTP Response Status Codes

Status codeDescription
200
401Unauthorized
403Forbidden
404Not found
500Internal server error

Code samples

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

Responses

{
  "data": [
    {
      "key": "ibm-q/main/open",
      "usage": 10,
      "jobs": 10,
      "sessions": 10,
      "sessionsUsage": 10,
      "avgSessionsUsage": 10,
      "maxSessionsUsage": 10,
      "batchSessions": 10,
      "batchSessionsUsage": 10,
      "avgBatchSessionsUsage": 10,
      "maxBatchSessionsUsage": 10,
      "dedicatedSessions": 10,
      "dedicatedSessionsUsage": 10,
      "avgDedicatedSessionsUsage": 10,
      "maxDedicatedSessionsUsage": 10,
      "individualJobs": 10,
      "individualJobsUsage": 10,
      "avgIndividualJobsUsage": 10,
      "maxIndividualJobsUsage": 10,
      "queueTime": 10,
      "avgQueueTime": 10,
      "maxQueueTime": 10
    }
  ]
}

Get usage analytics grouped by date

Get usage analytics grouped by date

Query Parameters

Name, TypeDescription
instance
Required
string

groupBy
Required
string

Possible values: instance
intervalStart
string

intervalEnd
string

backend
string[]

userId
string[]

country
string[]

simulators
boolean

Include simulators

Default value: true

HTTP Response Status Codes

Status codeDescription
200
401Unauthorized
403Forbidden
404Not found
500Internal server error

Code samples

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

Responses

{
  "intervalStart": "2024-01-01T00:00:00.000Z",
  "intervalEnd": "2024-01-01T00:00:00.000Z",
  "data": [
    {
      "key": "ibm-q/open/main",
      "intervalStart": "2024-01-01T00:00:00.000Z",
      "intervalEnd": "2024-01-01T00:00:00.000Z",
      "usage": 10,
      "jobs": 10,
      "sessions": 10,
      "sessionsUsage": 10,
      "avgSessionsUsage": 10,
      "maxSessionsUsage": 10,
      "batchSessions": 10,
      "batchSessionsUsage": 10,
      "avgBatchSessionsUsage": 10,
      "maxBatchSessionsUsage": 10,
      "dedicatedSessions": 10,
      "dedicatedSessionsUsage": 10,
      "avgDedicatedSessionsUsage": 10,
      "maxDedicatedSessionsUsage": 10,
      "individualJobs": 10,
      "individualJobsUsage": 10,
      "avgIndividualJobsUsage": 10,
      "maxIndividualJobsUsage": 10,
      "queueTime": 10,
      "avgQueueTime": 10,
      "maxQueueTime": 10
    }
  ]
}
Was this page helpful?
Report a bug or request content on GitHub.