---
title: "Returns the clusters for the given SourceDocument (sdoc_id) in the specified Aspect (aspect_id)."
method: GET
path: "/perspectives/clusters/{aspect_id}/sdoc/{sdoc_id}"
tags: ["perspectives"]
---

# Returns the clusters for the given SourceDocument (sdoc_id) in the specified Aspect (aspect_id).

`GET /perspectives/clusters/{aspect_id}/sdoc/{sdoc_id}`

## Path parameters

- `aspect_id` integer, required
- `sdoc_id` integer, required

## Response `200`

Successful Response

- ClusterRead[]
  - `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

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/uhh-lt/apis/discourse-analysis-tool-suite-api.md) · [All operations](https://skmtc.net/uhh-lt/apis/discourse-analysis-tool-suite-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/uhh-lt/discourse-analysis-tool-suite-api/revisions/6fcf6b0bc28a/schema)
