🚀 CodeRabbit Agent for Slack - From idea to pull request without leaving Slack. Get started!
curl --request GET \
--url 'https://api.coderabbit.ai/v1/metrics/reviews?start_date=2026-01-01&end_date=2026-01-20' \
--header 'x-coderabbitai-api-key: <api-key>'{
"data": [
{
"pr_url": "<string>",
"author_id": "<string>",
"author_username": "<string>",
"organization_id": "<string>",
"organization_name": "<string>",
"repository_id": "<string>",
"repository_name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"first_human_review_at": "2023-11-07T05:31:56Z",
"last_commit_at": "2023-11-07T05:31:56Z",
"merged_at": "2023-11-07T05:31:56Z",
"estimated_complexity": 123,
"estimated_review_minutes": 123,
"coderabbit_comments": {
"total": {
"posted": 123,
"accepted": 123
},
"severity": {
"critical": {
"posted": 123,
"accepted": 123
},
"major": {
"posted": 123,
"accepted": 123
},
"minor": {
"posted": 123,
"accepted": 123
},
"trivial": {
"posted": 123,
"accepted": 123
},
"info": {
"posted": 123,
"accepted": 123
}
},
"category": {
"security_and_privacy": {
"posted": 123,
"accepted": 123
},
"performance_and_scalability": {
"posted": 123,
"accepted": 123
},
"functional_correctness": {
"posted": 123,
"accepted": 123
},
"maintainability_and_code_quality": {
"posted": 123,
"accepted": 123
},
"data_integrity_and_integration": {
"posted": 123,
"accepted": 123
},
"stability_and_availability": {
"posted": 123,
"accepted": 123
}
}
}
}
],
"next_cursor": "<string>"
}Access CodeRabbit metrics data programmatically via REST API.
curl --request GET \
--url 'https://api.coderabbit.ai/v1/metrics/reviews?start_date=2026-01-01&end_date=2026-01-20' \
--header 'x-coderabbitai-api-key: <api-key>'{
"data": [
{
"pr_url": "<string>",
"author_id": "<string>",
"author_username": "<string>",
"organization_id": "<string>",
"organization_name": "<string>",
"repository_id": "<string>",
"repository_name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"first_human_review_at": "2023-11-07T05:31:56Z",
"last_commit_at": "2023-11-07T05:31:56Z",
"merged_at": "2023-11-07T05:31:56Z",
"estimated_complexity": 123,
"estimated_review_minutes": 123,
"coderabbit_comments": {
"total": {
"posted": 123,
"accepted": 123
},
"severity": {
"critical": {
"posted": 123,
"accepted": 123
},
"major": {
"posted": 123,
"accepted": 123
},
"minor": {
"posted": 123,
"accepted": 123
},
"trivial": {
"posted": 123,
"accepted": 123
},
"info": {
"posted": 123,
"accepted": 123
}
},
"category": {
"security_and_privacy": {
"posted": 123,
"accepted": 123
},
"performance_and_scalability": {
"posted": 123,
"accepted": 123
},
"functional_correctness": {
"posted": 123,
"accepted": 123
},
"maintainability_and_code_quality": {
"posted": 123,
"accepted": 123
},
"data_integrity_and_integration": {
"posted": 123,
"accepted": 123
},
"stability_and_availability": {
"posted": 123,
"accepted": 123
}
}
}
}
],
"next_cursor": "<string>"
}Returns metrics for merged pull requests including complexity scores, review times, and comment breakdowns by severity and category.Documentation Index
Fetch the complete documentation index at: https://docs.coderabbit.ai/llms.txt
Use this file to discover all available pages before exploring further.
format=csv, the API returns a flat CSV structure with one row per pull request. The nested coderabbit_comments object is flattened into individual columns (e.g., total_coderabbit_comments_posted, critical_comments_accepted).
For the complete list of CSV columns and field descriptions, see Data Export - Exported fields.API key for authentication. You can create an API key from the CodeRabbit dashboard.
Your CodeRabbit API key
Start date in ISO 8601 format (YYYY-MM-DD)
End date in ISO 8601 format (YYYY-MM-DD)
Filter by organization Git provider IDs (comma-separated, max 10). Self-hosted instances only.
Filter by repository Git provider IDs (comma-separated, max 10).
Filter by author Git provider IDs (comma-separated, max 10).
Response format
json, csv Maximum records to return
Pagination cursor for fetching next page of results
Was this page helpful?