---
title: "Get Developer Comparison"
method: POST
path: "/api/metrics/developer/comparison/get"
tags: ["Developer Metrics"]
---

# Get Developer Comparison

`POST /api/metrics/developer/comparison/get`

Retrieves a developer's productivity metrics compared against the organization average. Includes commit activity, PR statistics, code review contributions, and more. Useful for individual performance dashboards and 1:1 reviews.

## Request body

- DevComparisonRequest
  - `platform` 'github' | 'gitlab' | 'bitbucket' | 'azure_devops' | 'azuredevops', required — Version control platform
  - `org` string, required — Organization, workspace, or group name on the platform
  - `github_base_url` string — Base URL for GitHub (use for GitHub Enterprise Server)
  - `gitlab_base_url` string — Base URL for GitLab (use for self-hosted GitLab instances)
  - `azure_devops_base_url` string — Base URL for Azure DevOps (use for Azure DevOps Server)
  - `bitbucket_base_url` string — Base URL for Bitbucket (use for Bitbucket Data Center/Server)
  - `start_date` string, date, required — Start of the date range (YYYY-MM-DD)
  - `end_date` string, date, required — End of the date range (YYYY-MM-DD)
  - `author` string, required — Git author login/email to analyze

## Response `200`

Developer comparison data

- object
  - `metric` string
  - `platform` string
  - `org` string
  - `author` string
  - `start_date` string, date
  - `end_date` string, date
  - `org_context` object — Organization-wide averages and context data
  - `developer` object — Individual developer metrics and activity data

## Other responses

- `400` — Bad request - missing or invalid parameters
- `401` — Unauthorized - missing, invalid, or insufficient access token
- `500` — Internal server error

---

[API](https://skmtc.dev/codeant/apis/codeant-ai-api.md) · [All operations](https://skmtc.dev/codeant/apis/codeant-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/codeant/codeant-ai-api/revisions/d1eb7c083a39/schema)
