> 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":{"interval":{"type":"array","description":"Date-time range as [startISO, endISO].","minItems":2,"maxItems":2,"items":{"type":"string","format":"date-time"}},"batches":{"type":"array","items":{"type":"string"}}}},"PerformanceResponse":{"type":"object","properties":{"status":{"type":"string"},"data":{"type":"object","properties":{"performance":{"type":"array","description":"Per-user performance metrics.","items":{"type":"object","properties":{"_id":{"type":"string"},"email":{"type":"string"},"completedLabels":{"type":"number"},"totalLabelingDuration":{"type":"number"},"avgLabelingDuration":{"type":"number"},"avgBenchmark":{"type":"number"},"totalLabelingIdleDuration":{"type":"number"},"totalLabelingBlurDuration":{"type":"number"},"completedReviews":{"type":"number"},"totalReviewDuration":{"type":"number"},"avgReviewDuration":{"type":"number"},"totalReviewIdleDuration":{"type":"number"},"totalReviewBlurDuration":{"type":"number"}}}}}}}}}},"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: Number of assets in the project\
> \- 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"}]}}}}},"ErrorResponse":{"type":"object","properties":{"status":{"type":"string","enum":["fail","error"]},"message":{"type":"string"}}}},"responses":{"UnauthorizedError":{"description":"Unauthorized - invalid or missing API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"ForbiddenError":{"description":"Forbidden - insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"NotFoundError":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"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: Number of assets in the project\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":"filter","in":"query","schema":{"type":"string"},"description":"JSON object narrowing the tasks the metric is computed over, for example `{\"batches\":\"507f1f77bcf86cd799439011\"}` or `{\"updatedAt\":{\"$gt\":\"2026-01-01T00:00:00.000Z\"}}`. Only full ISO timestamps are read as dates, and a `$regex` value is matched as a case-insensitive substring rather than as a regular expression. Invalid JSON is ignored silently and the unfiltered result is returned. `AssetSize` takes no filter."},{"name":"schemaId","in":"query","schema":{"type":"string"},"description":"ConsensusRanges only. Scores a single consensus schema instead of averaging over the task."}],"responses":{"200":{"description":"Overview retrieved successfully. An unrecognised `type` also answers 200, with an empty data object.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OverviewResponse"}}}},"401":{"$ref":"#/components/responses/UnauthorizedError"},"403":{"$ref":"#/components/responses/ForbiddenError"},"404":{"$ref":"#/components/responses/NotFoundError"}}}}}}
```


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
