---
title: "Returns data for visualizing the cluster similarities of the given aspect."
method: GET
path: "/perspectives/cluster_similarities/{aspect_id}"
tags: ["perspectives"]
---

# Returns data for visualizing the cluster similarities of the given aspect.

`GET /perspectives/cluster_similarities/{aspect_id}`

## Path parameters

- `aspect_id` integer, required

## Response `200`

Successful Response

- PerspectivesClusterSimilarities
  - `aspect_id` integer, required — ID of the aspect this visualization belongs to
  - `clusters` ClusterRead[], required — List of clusters in the visualization
    - `id` integer, required — ID of the cluster
    - `aspect_id` integer, required — ID of the aspect this cluster belongs to
    - `parent_cluster_id` integer, nullable, required — ID of the parent cluster, if any
    - `is_outlier` boolean, required — Whether the cluster is an outlier
    - `name` string, required — Name of the cluster
    - `description` string, required — Description of the cluster
    - `level` integer, required — Hierarchical level of the cluster
    - `x` number, required — X coordinate for visualization
    - `y` number, required — Y coordinate for visualization
    - `top_words` string[], nullable, required — Top words associated with the cluster
    - `top_word_scores` number[], nullable, required — Scores of the top words
    - `top_docs` integer[], nullable, required — IDs of top documents for the cluster
  - `similarities` array[], required — Matrix of cluster similarities, where similarities[i][j] is the similarity between clusters[i] and clusters[j]
    - number[]

## Other responses

- `422` — Validation Error

## Changes

- **2026-07-15** `1af5a8046f20` — 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status
- **2025-08-22** `53e769440a25` — 2 warning
  - removed the optional property `detail/items/ctx` from the response with the `422` status
  - removed the optional property `detail/items/input` from the response with the `422` status

[Change history](https://skmtc.dev/uhh-lt/apis/discourse-analysis-tool-suite-api/changes/perspectives/cluster_similarities/:aspect_id/get.md)

---

[API](https://skmtc.dev/uhh-lt/apis/discourse-analysis-tool-suite-api.md) · [All operations](https://skmtc.dev/uhh-lt/apis/discourse-analysis-tool-suite-api/llms.txt) · [OpenAPI document](https://skmtc.dev/uhh-lt/apis/discourse-analysis-tool-suite-api/revisions/5ef872849ffe?raw)
