---
title: "Get benchmark trend"
method: POST
path: "/compliance/api/v3/benchmarks/{benchmark_id}/trend"
tags: ["compliance"]
---

# Get benchmark trend

`POST /compliance/api/v3/benchmarks/{benchmark_id}/trend`

Retrieving a trend of a benchmark result and checks.

## Path parameters

- `benchmark_id` string, required

## Request body

- GithubComOpengovernOpengovernancePkgComplianceApiGetBenchmarkTrendV3Request
  - `end_time` integer
  - `granularity` integer
  - `integration` GithubComOpengovernOpengovernancePkgComplianceApiIntegrationFilter[]
    - `integration_id` string
    - `integration_type` string
    - `name` string
    - `provider_id` string
  - `start_time` integer

## Response `200`

OK

- GithubComOpengovernOpengovernancePkgComplianceApiGetBenchmarkTrendV3Response
  - `datapoints` GithubComOpengovernOpengovernancePkgComplianceApiBenchmarkTrendDatapointV3[]
    - `compliance_results_summary` object
      - `incidents` integer
      - `non_incidents` integer
    - `incidents_severity_breakdown` TypesSeverityResult
      - `criticalCount` integer
      - `highCount` integer
      - `lowCount` integer
      - `mediumCount` integer
      - `noneCount` integer
    - `timestamp` string
  - `maximum_values` GithubComOpengovernOpengovernancePkgComplianceApiBenchmarkTrendDatapointV3
    - `compliance_results_summary` object
      - `incidents` integer
      - `non_incidents` integer
    - `incidents_severity_breakdown` TypesSeverityResult
      - `criticalCount` integer
      - `highCount` integer
      - `lowCount` integer
      - `mediumCount` integer
      - `noneCount` integer
    - `timestamp` string
  - `minimum_values` GithubComOpengovernOpengovernancePkgComplianceApiBenchmarkTrendDatapointV3
    - `compliance_results_summary` object
      - `incidents` integer
      - `non_incidents` integer
    - `incidents_severity_breakdown` TypesSeverityResult
      - `criticalCount` integer
      - `highCount` integer
      - `lowCount` integer
      - `mediumCount` integer
      - `noneCount` integer
    - `timestamp` string

---

[API](https://skmtc.net/opengovern/apis/opengovernance-service-api.md) · [All operations](https://skmtc.net/opengovern/apis/opengovernance-service-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/opengovern/opengovernance-service-api/revisions/ab05295c4094/schema)
