Get component metric series
Retrieve each metric's history for a specific Component on the Project's default branch as a time series over the requested window. Returns one series per metric — covering maintainability, reliability, security, size, coverage, and quality indicators — each with the metric's descriptor and one value per interval; narrow the result with the metric and category query parameters. Available as JSON, newline-delimited JSON (application/x-ndjson), or CSV (text/csv) via the Accept header. Buckets are UTC-aligned and labeled with the inclusive end of each interval; a bucket with no measurement carries the most recent prior value forward, and the final bucket (the one containing to) may be labeled later than to — including the future for an interval still in progress — with its value reflecting only measurements within the window.
Request
- Base URLhttps://api.qlty.sh
- AuthHTTP bearer
Path parameters
Repository owner name (login) or workspace ID
Repository name or project ID
Component ID or name
Query parameters
Window start (RFC 3339 date or date-time, inclusive). Defaults to six months before to.
Window end (RFC 3339 date or date-time, inclusive). Defaults to the current time and is clamped to it.
Bucket size; buckets are UTC-aligned and weeks start Monday
Response
Retrieve metric time series for a component
Example response
{
"data": [
{
"metric": {
"key": "CMPLX",
"name": "Cognitive Complexity",
"description": "Measures how hard the code is to understand",
"category": "maintainability",
"inverted": true,
"valueType": "number"
},
"points": [
{
"timestamp": "2026-01-11T23:59:59Z"
}
]
}
],
"meta": {
"from": "2025-12-01T00:00:00Z",
"to": "2026-06-01T00:00:00Z",
"interval": "week"
}
}Changes
No recorded changes to this operation across all 8 revisions of this API.