# 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"}}}}}}}}}
```
