# Get compute instance Python dependency observations

```{raw} html
<div class="mo-api-page-show-toc" aria-hidden="true"></div>
```

Returns saved observations matching the current desired SHA, for cloud providers and STARTING/READY/STOPPING instances. This is not every Worker or a live Pod list. data is an unpaginated array. No configured dependencies, no matching observations yet, or an unassembled read service can all produce empty results. An empty array does not establish absence of compute processes.


```http
GET https://api.moi.matrixorigin.cn/v5/compute-resources/{id}/workers
```

## Before you call this API

Set `BASE_URL` to the product API prefix `https://api.moi.matrixorigin.cn/v5`. For private deployments, use the corresponding product API URL.

[Prepare identity and identifiers](objects.md#prepare).

## Request

:::::::{div} mo-api-tabs
::::::{tab-set}
:::::{tab-item} Request example

```bash
curl --request GET \
  "$BASE_URL/compute-resources/$RESOURCE_ID/workers" \
  --header "X-API-Key: $MOI_KEY" \
  --header "X-Workspace-ID: $WORKSPACE_ID"
```

:::::
:::::{tab-item} Parameters

| Parameter | Location | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `X-Workspace-ID` | Headers | string | Yes | Target Workspace in the same environment; there is no Workspace path segment. |
| `id` | Path | string | Yes | Compute instance ID. |

:::::
::::::
:::::::

## Successful response

:::::::{div} mo-api-tabs mo-api-response-tabs
::::::{tab-set}
:::::{tab-item} Response example

```json
{
  "code": "OK",
  "msg": "OK",
  "data": [
    {
      "instance_id": "instance-example",
      "worker_type": "python-worker",
      "status": "READY",
      "py_requirements_sha": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "py_requirements_status": "FAILED",
      "py_requirements_error": "example install failure"
    }
  ]
}
```

:::::
:::::{tab-item} Fields

| Field | Type | Description |
| --- | --- | --- |
| `code` | string | OK on success. |
| `msg` | string | Response information; OK on success. |
| `data` | array (objects) | [Response objects and omission conditions](objects.md#responses). |

:::::
::::::
:::::::

## Error responses

[Errors and recovery boundaries](lifecycle.md#errors) distinguishes Runner, Edge renewal, and compute observations. They do not share one numeric error table.
