Skip to main content
GET
Get component metric series

Authorizations

Authorization
string
header
required

Generate an API token at https://qlty.sh/user/settings/tokens

Path Parameters

ownerKeyOrId
string
required

Repository owner name (login) or workspace ID

Minimum string length: 3
Example:

"acme-corp"

projectKeyOrId
string
required

Repository name or project ID

Minimum string length: 3
Example:

"my-repo"

componentIdOrName
string
required

Component ID or name

Minimum string length: 1
Example:

"backend-api"

Query Parameters

from
string<date-time>

Window start (RFC 3339 date or date-time, inclusive). Defaults to six months before to.

Example:

"2026-01-01"

to
string<date-time>

Window end (RFC 3339 date or date-time, inclusive). Defaults to the current time and is clamped to it.

Example:

"2026-06-01"

interval
enum<string>
default:week

Bucket size; buckets are UTC-aligned and weeks start Monday

Available options:
day,
week,
month
metric

Filter by metric key

Each metric key, with its name and what it measures:

  • CMPLX (Cognitive Complexity): Total cognitive complexity across all functions
  • DUP (Code Duplication): Percentage of duplicated lines
  • MNT (Maintainability Rating): Letter grade based on technical debt ratio
  • SEC (Security Rating): Overall security rating based on security vulnerabilities
  • SIZE (Project Size): Overall project size classification
  • ISS (Total Issues): Total number of code quality issues detected
  • SECI (Security Issues): Total number of security issues detected
  • SECIH (High-Severity Security Issues): Number of high-severity security issues detected
  • SECIM (Medium-Severity Security Issues): Number of medium-severity security issues detected
  • SECIL (Low-Severity Security Issues): Number of low-severity security issues detected
  • TDR (Technical Debt Ratio): Ratio of technical debt to total development cost
  • FILES (Files): Total number of files in the project
  • LOC (Lines of Code): Total number of lines of code
  • COV (Coverage Rating): Letter grade based on test coverage
  • LCOV (Line Coverage): Percentage of lines covered by tests
  • COVLINES (Covered Lines): Number of executable lines run by tests. Line Coverage is 100 × Covered Lines ÷ (Covered Lines + Missed Lines), or 100 when both are 0, reported to two decimal places. A percentage computed from these counts is more precise than Line Coverage.
  • MISSLINES (Missed Lines): Number of executable lines not run by tests. Lines the coverage report marks as not executable count as neither covered nor missed.
Available options:
CMPLX,
DUP,
MNT,
SEC,
SIZE,
ISS,
SECI,
SECIH,
SECIM,
SECIL,
TDR,
FILES,
LOC,
COV,
LCOV,
COVLINES,
MISSLINES
category

Filter by metric category

Available options:
maintainability,
reliability,
security,
size,
coverage,
quality

Response

Retrieve metric time series for a component

data
object[]
required
meta
object
required