---
title: "B067-2 Get OCSR Task Status And Results"
method: GET
path: "/eurekals/open/ocsr/v2/task"
tags: ["Chemical and Bio Data"]
---

# B067-2 Get OCSR Task Status And Results

`GET /eurekals/open/ocsr/v2/task`

## Request

- Base URL: `https://connect.patsnap.com`
- URL: `https://connect.patsnap.com/eurekals/open/ocsr/v2/task`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/patsnap/apis/patsnap-open-platform-api/docs/eurekals/open/ocsr/v2/task/get.ts> (a function with typed inputs; its response is checked against the schema)

Query OCSR task execution status and results by task ID

## Query parameters

- `task_id` string, required: Task ID

## Response `200`

Successful b067-2 get ocsr task status and results response.

- B0672V2TaskResponse
  - `data` B0672V2TaskOpenAPIOCSRV2
    - `count` integer: Number of recognition results, equal to the size of the result list
    - `result` B0672V2TaskOcsrResultItemV2[]: OCSR recognition results
      - `mol` string: SDF， may be null
      - `smiles` string: SMILES representation
      - `formula` string: Molecular formula
      - `inchi_key` string: InChIKey identifier
      - `locations` B0672V2TaskOcsrLocationItemV2[]: List of locations of the chemical structure
        - `bbox` unknown[]: Normalized bounding box [x1, y1, x2, y2, confidence], 0 to 1, the fifth is confidence.
          - unknown
        - `page` integer: 0-based page index (PDF scenario)
        - `image_name` string: Image file name (image scenario)
    - `status` string: Task Status: PENDING, PROCESSING, SUCCESS, FAILED
    - `task_id` string: Task ID
  - `status` boolean, required: Status
  - `error_msg` string: Error Message
  - `error_code` integer, required: Error Code

## Other responses

- `401`: Unauthorized.
- `403`: Forbidden.
- `404`: Not Found.

---

[API](https://skmtc.dev/patsnap/apis/patsnap-open-platform-api.md) - [All operations](https://skmtc.dev/patsnap/apis/patsnap-open-platform-api/llms.txt) - [OpenAPI document](https://skmtc.dev/patsnap/apis/patsnap-open-platform-api/revisions/c2264a0de595?raw)
