# Dependency-Track Metrics API

**Canonical:** https://apis.io/apis/dependency-track/dependency-track-metrics-api/  
**Provider:** Dependency-Track — https://apis.io/providers/dependency-track/  
**Base URL:** http://{hostname}:{port}/api  
**Documentation:** https://docs.dependencytrack.org/integrations/rest-api/

Dependency-Track Metrics API is one of 48 APIs that [Dependency-Track](https://apis.io/providers/dependency-track/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. This API exposes 12 JSON Schema definitions. Tagged areas include metrics. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and 12 JSON Schemas.

The metrics API from Dependency-Track — 13 operation(s) for metrics.

## Operations (13)

| Method | Path | Summary |
|---|---|---|
| GET | `/v1/metrics/component/{uuid}/current` | Returns current metrics for a specific component |
| GET | `/v1/metrics/component/{uuid}/days/{days}` | Returns X days of historical metrics for a specific component |
| GET | `/v1/metrics/component/{uuid}/refresh` | Requests a refresh of a specific components metrics |
| GET | `/v1/metrics/component/{uuid}/since/{date}` | Returns historical metrics for a specific component from a specific date |
| GET | `/v1/metrics/portfolio/current` | Returns current metrics for the entire portfolio |
| GET | `/v1/metrics/portfolio/refresh` | Requests a refresh of the portfolio metrics |
| GET | `/v1/metrics/portfolio/since/{date}` | Returns historical metrics for the entire portfolio from a specific date |
| GET | `/v1/metrics/portfolio/{days}/days` | Returns X days of historical metrics for the entire portfolio |
| GET | `/v1/metrics/project/{uuid}/current` | Returns current metrics for a specific project |
| GET | `/v1/metrics/project/{uuid}/days/{days}` | Returns X days of historical metrics for a specific project |
| GET | `/v1/metrics/project/{uuid}/refresh` | Requests a refresh of a specific projects metrics |
| GET | `/v1/metrics/project/{uuid}/since/{date}` | Returns historical metrics for a specific project from a specific date |
| GET | `/v1/metrics/vulnerability` | Returns the sum of all vulnerabilities in the database by year and month |

## Machine-readable artifacts (14)

- **OpenAPI** — https://raw.githubusercontent.com/api-evangelist/dependency-track/refs/heads/main/openapi/dependency-track-metrics-api-openapi.yml
- **Documentation** — https://docs.dependencytrack.org/integrations/rest-api/
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/dependency-track/refs/heads/main/json-schema/dependency-track-component-schema.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/dependency-track/refs/heads/main/json-schema/dependency-track-vulnerability-schema.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/dependency-track/refs/heads/main/json-schema/dependency-track-project-schema.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/dependency-track/refs/heads/main/json-schema/dependency-track-notification-rule-schema.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/dependency-track/refs/heads/main/json-schema/dependency-track-portfolio-metrics-schema.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/dependency-track/refs/heads/main/json-schema/dependency-track-project-metrics-schema.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/dependency-track/refs/heads/main/json-schema/dependency-track-workload-identity-provider-schema.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/dependency-track/refs/heads/main/json-schema/dependency-track-clone-project-request-schema.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/dependency-track/refs/heads/main/json-schema/dependency-track-create-workload-identity-provider-request-schema.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/dependency-track/refs/heads/main/json-schema/dependency-track-create-oauth-token-request-schema.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/dependency-track/refs/heads/main/json-schema/dependency-track-create-component-request-schema.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/dependency-track/refs/heads/main/json-schema/dependency-track-update-workload-identity-provider-request-schema.json

## Other Dependency-Track APIs (12)

- [Dependency-Track Notifications](https://apis.io/apis/dependency-track/dependency-track-notifications/)
- [Dependency-Track Acl API](https://apis.io/apis/dependency-track/dependency-track-acl-api/)
- [Dependency-Track Analysis API](https://apis.io/apis/dependency-track/dependency-track-analysis-api/)
- [Dependency-Track Badge API](https://apis.io/apis/dependency-track/dependency-track-badge-api/)
- [Dependency-Track Bom API](https://apis.io/apis/dependency-track/dependency-track-bom-api/)
- [Dependency-Track Calculator API](https://apis.io/apis/dependency-track/dependency-track-calculator-api/)
- [Dependency-Track Component API](https://apis.io/apis/dependency-track/dependency-track-component-api/)
- [Dependency-Track Component Property API](https://apis.io/apis/dependency-track/dependency-track-componentproperty-api/)
- [Dependency-Track Components API](https://apis.io/apis/dependency-track/dependency-track-components-api/)
- [Dependency-Track Config Property API](https://apis.io/apis/dependency-track/dependency-track-configproperty-api/)
- [Dependency-Track Cwe API](https://apis.io/apis/dependency-track/dependency-track-cwe-api/)
- [Dependency-Track Dependency Graph API](https://apis.io/apis/dependency-track/dependency-track-dependencygraph-api/)

## Tags

metrics

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/dependency-track/dependency-track-metrics-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/dependency-track/.
