---
title: "List variants for a benchmark"
method: GET
path: "/v0/projects/{project}/benchmarks/{benchmark}/variants"
tags: ["projects", "variants"]
---

# List variants for a benchmark

`GET /v0/projects/{project}/benchmarks/{benchmark}/variants`

## Request

- The document declares no server URL.
- Auth: none declared

List all variants for a benchmark. If the project is public, then the user does not need to be authenticated. If the project is private, then the user must be authenticated and have `view` permissions for the project, or provide a valid project key for the project. By default, the variants are sorted by creation date time. The HTTP response header `X-Total-Count` contains the total number of variants.

## Path parameters

- `benchmark` string, required
- `project` string, required

## Query parameters

- `direction` 'asc' | 'desc'
- `page` integer, nullable
- `per_page` integer, nullable
- `sort` union
  - 'created': Sort by variant creation date time.
  - 'last_used': Sort by the variant's newest report, newest first when no direction is given, with the never reported last either way.
- `archived` boolean, nullable

## Response `200`

successful operation

- JsonVariant[]
  - `archived` string, date-time
  - `benchmark` string, uuid, required
  - `created` string, date-time, required
  - `modified` string, date-time, required
  - `parameters` ParameterSet, required
  - `uuid` string, uuid, required

## Other responses

- `4XX`: Error
- `5XX`: Error

## Changes

- **2026-09-18** `2ca549d2a218`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/bencherdev/apis/bencher-api/changes/v0/projects/:project/benchmarks/:benchmark/variants/get.md)

---

[API](https://skmtc.dev/bencherdev/apis/bencher-api.md) - [All operations](https://skmtc.dev/bencherdev/apis/bencher-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bencherdev/apis/bencher-api/revisions/538b39b8d755?raw)
