> For the complete documentation index, see [llms.txt](https://docs.imerit.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.imerit.net/sdk/sdk-documentation/project-level-sdk-functions/get_metrics.md).

# get\_metrics

`imerit_ango.sdk.SDK.`

## get\_metrics(project\_id, metric)

Retrieve the specified metrics from your project.

### Parameters

* **project\_id:** string
  * The unique identifier for the project. You can find the project ID in [the user interface](/sdk/sdk-documentation.md#project-ids) or retrieve it using the [`list_projects`](/sdk/sdk-documentation/project-level-sdk-functions/list_projects.md) function.
* **metric:** Metrics
  * The metric you wish to obtain, from:
    * <kbd>Metrics.LabelStageGroups</kbd>
    * <kbd>Metrics.TimePerTask</kbd>
    * <kbd>Metrics.AnnotationStatus</kbd>
    * <kbd>Metrics.AnswerDistribution</kbd>
    * <kbd>Metrics.ConsensusRanges</kbd>
    * <kbd>Metrics.AssetSize</kbd>&#x20;

```python
from imerit_ango.sdk import Metrics
```

Returns:

* **output:** dict
  * A dictionary containing the result of the operation.
  * Including a `status` field indicating whether the request was successful and a `data` field containing the response payload with updated resources produced by the operation.

### Example

{% tabs %}
{% tab title="python" %}

```python
import os
from dotenv import load_dotenv
from imerit_ango.sdk import SDK
from imerit_ango.sdk import Metrics

load_dotenv('variables.env')
api_key = os.getenv('API_KEY')
project_id = os.getenv('PROJECT_ID')

ango_sdk = SDK(api_key)

output = ango_sdk.get_metrics(project_id=project_id, metric=Metrics.TimePerTask)
```

{% endtab %}

{% tab title="curl" %}

```bash
curl -X GET "https://imeritapi.ango.ai/v2/$PROJECT_ID/overview/TimePerTask" \
  -H "Content-Type: application/json" \
  -H "apikey: $ANGO_API_KEY"
```

{% endtab %}
{% endtabs %}
