# 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](https://docs.imerit.net/sdk/sdk-documentation/..#project-ids) or retrieve it using the [`list_projects`](https://docs.imerit.net/sdk/sdk-documentation/project-level-sdk-functions/list_projects) function.
* **metric:** imerit\_ango.sdk.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>

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 %}
