Metrics Data
Changed onReturns finalized pull request metrics with CodeRabbit review comments. Merged PRs use merge time and closed-unmerged PRs use close time for the requested range and cursor. Supports cursor-based pagination, paged in write order rather than by merge/close time, so a row written after your cursor already passed its merge or close date (a backfill, or a reopen/reclose) still appears on a later page instead of being silently skipped. Each page request consumes one token when admitted by the request rate limiter. Reviews, review comments, and MCP share the Metrics quota for the configured quota owner. With verified owner scope, coordinate calls across API keys for the same organization, workspace, or Git-provider instance; changing an organization selector does not add quota.
Request
- Base URLhttps://api.coderabbit.ai
- AuthAPI key in header x-coderabbitai-api-key
Query parameters
Start date in ISO 8601 format (YYYY-MM-DD)
End date in ISO 8601 format (YYYY-MM-DD)
Filter finalized pull requests by status
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
Maximum records to return
Pagination cursor for fetching next page of results
Headers
Your CodeRabbit API key
Response
Successful response
Changes
- breaking
the response property
became optional for the status - breaking
the response property
//became optional for the status - breaking
the response property
//became optional for the status - warning
added the new
METRICS_BUSYenum value to the//response property for the response status - warning
added the new
METRICS_QUERY_IN_PROGRESSenum value to the//response property for the response status - warning
added the new
RATE_LIMIT_EXCEEDEDenum value to the//response property for the response status - info
added the non-success response with the status
- breaking
- info
added the new optional
queryrequest parameterstatus - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- info