> 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/api/docs/analytics.md).

# Analytics

Analytics and performance metrics

## Get Project Performance Metrics

> Retrieves performance statistics and metrics for a project

```json
{"openapi":"3.0.3","info":{"title":"Ango Hub API v2","version":"2.0.0"},"tags":[{"name":"Analytics","description":"Analytics and performance metrics"}],"servers":[{"url":"https://imeritapi.ango.ai/v2","description":"EU Production Server"},{"url":"https://us-api.ango.ai/v2","description":"US Production Server"},{"url":"https://in-api.ango.ai/v2","description":"India Production Server"},{"url":"https://testapi.ango.ai/v2","description":"Test Server"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"apikey","description":"API key for authentication. Format - apikey YOUR_API_KEY"}},"parameters":{"ProjectIdParam":{"name":"projectId","in":"path","required":true,"schema":{"type":"string"},"description":"Project ID"}},"schemas":{"PerformanceRequest":{"type":"object","properties":{"startDate":{"type":"string","format":"date-time"},"endDate":{"type":"string","format":"date-time"},"users":{"type":"array","items":{"type":"string"}}}},"PerformanceResponse":{"type":"object","properties":{"status":{"type":"string"},"data":{"type":"object","properties":{"performance":{"type":"object"}}}}}}},"paths":{"/performance/{projectId}":{"post":{"tags":["Analytics"],"summary":"Get Project Performance Metrics","description":"Retrieves performance statistics and metrics for a project","operationId":"getPerformance","parameters":[{"$ref":"#/components/parameters/ProjectIdParam"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PerformanceRequest"}}}},"responses":{"200":{"description":"Performance metrics retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PerformanceResponse"}}}}}}}}}
```

## Retrieve Project Overview

> Retrieves various analytics and overview metrics for a project.\
> \
> Available types:\
> \- AssetSize: Total size of all assets\
> \- LabelStageGroups: Task count by stage\
> \- AverageDurationPerStage: Average time spent per stage\
> \- TimePerTask: Time distribution across tasks\
> \- AnnotationStatus: Annotation completion status\
> \- AnswerDistribution: Distribution of answers\
> \- ConsensusRanges: Consensus score ranges<br>

```json
{"openapi":"3.0.3","info":{"title":"Ango Hub API v2","version":"2.0.0"},"tags":[{"name":"Analytics","description":"Analytics and performance metrics"}],"servers":[{"url":"https://imeritapi.ango.ai/v2","description":"EU Production Server"},{"url":"https://us-api.ango.ai/v2","description":"US Production Server"},{"url":"https://in-api.ango.ai/v2","description":"India Production Server"},{"url":"https://testapi.ango.ai/v2","description":"Test Server"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"apikey","description":"API key for authentication. Format - apikey YOUR_API_KEY"}},"parameters":{"ProjectIdParam":{"name":"projectId","in":"path","required":true,"schema":{"type":"string"},"description":"Project ID"}},"schemas":{"OverviewResponse":{"type":"object","properties":{"status":{"type":"string"},"data":{"type":"object","properties":{"overview":{"oneOf":[{"type":"object"},{"type":"array"}]}}}}}}},"paths":{"/{projectId}/overview/{type}":{"get":{"tags":["Analytics"],"summary":"Retrieve Project Overview","description":"Retrieves various analytics and overview metrics for a project.\n\nAvailable types:\n- AssetSize: Total size of all assets\n- LabelStageGroups: Task count by stage\n- AverageDurationPerStage: Average time spent per stage\n- TimePerTask: Time distribution across tasks\n- AnnotationStatus: Annotation completion status\n- AnswerDistribution: Distribution of answers\n- ConsensusRanges: Consensus score ranges\n","operationId":"getProjectOverview","parameters":[{"$ref":"#/components/parameters/ProjectIdParam"},{"name":"type","in":"path","required":true,"schema":{"type":"string","enum":["AssetSize","LabelStageGroups","AverageDurationPerStage","TimePerTask","AnnotationStatus","AnswerDistribution","ConsensusRanges"]},"description":"Overview type"},{"name":"startDate","in":"query","schema":{"type":"string","format":"date-time"},"description":"Start date (ISO 8601)"},{"name":"endDate","in":"query","schema":{"type":"string","format":"date-time"},"description":"End date (ISO 8601)"},{"name":"users","in":"query","schema":{"type":"string"},"description":"Filter by users (comma-separated emails)"},{"name":"batches","in":"query","schema":{"type":"string"},"description":"Filter by batches (comma-separated)"}],"responses":{"200":{"description":"Overview retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OverviewResponse"}}}}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.imerit.net/api/docs/analytics.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
