> ## Documentation Index
> Fetch the complete documentation index at: https://docs.qbraid.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Job Result

> Retrieve the result data for a quantum job.

**Args:**
- **job_qrn** (string): Job QRN (qBraid Resource Name)

**Returns:**
- Result object containing job result data including measurement counts and timestamps

**Raises:**
- **404**: Job is not found
- **409**: Job results are not yet available or are not valid JSON
- **422**: Validation error if the job_qrn parameter is invalid

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": true,
    "data": {
      "status": "COMPLETED",
      "cost": 0.501875,
      "timeStamps": {
        "createdAt": "2025-01-15T10:30:00Z",
        "endedAt": "2025-01-15T10:30:05Z",
        "executionDuration": 5000
      },
      "resultData": {
        "measurementCounts": { "00": 504, "11": 496 }
      }
    }
  }
  ```
</ResponseExample>


## OpenAPI

````yaml get /jobs/{job_qrn}/result
openapi: 3.1.0
info:
  title: qBraid Runtime API
  description: FastAPI backend powering qBraid's quantum runtime microservice.
  version: '2'
servers:
  - url: https://api-v2.qbraid.com/api/v1
    description: Live Server
security:
  - ApiKeyAuth: []
paths:
  /jobs/{job_qrn}/result:
    get:
      tags:
        - jobs
      summary: Get Job Result
      description: >-
        Retrieve the result data for a quantum job.


        **Args:**

        - **job_qrn** (string): Job QRN (qBraid Resource Name)


        **Returns:**

        - Result object containing job result data including measurement counts
        and timestamps


        **Raises:**

        - **404**: Job is not found

        - **409**: Job results are not yet available or are not valid JSON

        - **422**: Validation error if the job_qrn parameter is invalid
      operationId: get_job_result_jobs__job_qrn__result_get
      parameters:
        - name: job_qrn
          in: path
          required: true
          schema:
            type: string
            description: Job QRN (qBraid Resource Name)
            title: Job Qrn
          description: Job QRN (qBraid Resource Name)
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetJobResultResponse'
        '404':
          description: Job Not Found
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                    example: Job not found
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                    example: Job results not available yet
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    GetJobResultResponse:
      properties:
        success:
          type: boolean
          title: Success
        data:
          $ref: '#/components/schemas/Result'
      type: object
      required:
        - success
        - data
      title: GetJobResultResponse
      description: Response schema for retrieving job results
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    Result:
      properties:
        status:
          $ref: '#/components/schemas/JobStatus'
        cost:
          anyOf:
            - type: integer
            - type: number
            - type: string
          type: number
          title: Credits
          description: A monetary amount where 1 Credit = $0.01 USD.
          examples:
            - 10
            - 0.05
            - 1.5
        timeStamps:
          $ref: '#/components/schemas/TimeStamps'
        resultData:
          additionalProperties: true
          type: object
          title: Resultdata
      type: object
      required:
        - status
        - cost
        - timeStamps
        - resultData
      title: Result
      description: Schema for job result
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    JobStatus:
      type: string
      enum:
        - INITIALIZING
        - QUEUED
        - VALIDATING
        - RUNNING
        - CANCELLING
        - CANCELLED
        - COMPLETED
        - FAILED
        - UNKNOWN
        - HOLD
      title: JobStatus
      description: >-
        Enum for the status of processes (i.e. quantum jobs / tasks) resulting

        from any `qbraid.runtime.QuantumDevice.run` method.


        Displayed status text values may differ from those listed below to
        provide

        additional visibility into tracebacks, particularly for failed jobs.
    TimeStamps:
      properties:
        createdAt:
          type: string
          format: date-time
          title: Createdat
        endedAt:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Endedat
        executionDuration:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
          title: Executionduration
          description: Execution time in milliseconds
      type: object
      required:
        - createdAt
      title: TimeStamps
      description: Model for capturing time-related information in an experiment.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY
      description: >-
        Authenticate requests using an API key linked to your qBraid account.
        Obtain your key by registering or logging in at
        [account.qbraid.com](https://account.qbraid.com).

````