---
title: "Get experiment score histogram with filters"
method: POST
path: "/api/v2/experiments/{experiment_id}/histogram/"
tags: ["experiments"]
---

# Get experiment score histogram with filters

`POST /api/v2/experiments/{experiment_id}/histogram/`

Compute histogram aggregation for experiment evaluation scores. The backend reads `evaluator_id` and `bins` from query parameters; it does not consume a request body.

## Path parameters

- `experiment_id` string, required

## Query parameters

- `evaluator_id` string, required
- `bins` integer

## Headers

- `Authorization` string, required

## Response `200`

Experiment score histogram.

- ExperimentsFilterExperimentScoreHistogramResponse200
  - `evaluator_id` string, required
  - `evaluator_slug` string, nullable
  - `evaluator_name` string, nullable
  - `bins` ApiV2ExperimentsExperimentIdHistogramPostResponsesContentApplicationJsonSchemaBinsItems[], required
    - `lower` number, double, required
    - `upper` number, double, required
    - `count` integer, required
    - `label` string, nullable — Human-readable label for boolean bins, such as `false` or `true`.
  - `stats` ApiV2ExperimentsExperimentIdHistogramPostResponsesContentApplicationJsonSchemaStats, required
    - `min` number, double, required
    - `max` number, double, required
    - `mean` number, double, required
    - `total` integer, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized - Missing or invalid authentication
- `404` — Evaluator or experiment not found

## Changes

> 6 revisions in range; 2 could not be searched.

- **2026-08-13** `4e064cf81dae` — 2 breaking, 5 info
  - added the new required `query` request parameter `evaluator_id`
  - removed the success response with the status `201`
  - added the new optional `query` request parameter `bins`
  - added the non-success response with the status `400`
  - …3 more
- **2026-07-31** `c26d550029f8` — 1 breaking, 2 warning, 4 info
  - removed the success response with the status `200`
  - deleted the `query` request parameter `bins`
  - deleted the `query` request parameter `evaluator_id`
  - removed the non-success response with the status `400`
  - …3 more

[Change history](https://skmtc.dev/keywordsai/apis/api-reference/changes/api/v2/experiments/:experiment_id/histogram/post.md)

---

[API](https://skmtc.dev/keywordsai/apis/api-reference.md) · [All operations](https://skmtc.dev/keywordsai/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/keywordsai/api-reference/revisions/c61efaf24756/schema)
