---
title: "Segment domains by similarity"
method: GET
path: "/segment"
---

# Segment domains by similarity

`GET /segment`

Segments a comma-separated list of domains into topic clusters using ML-based clustering. Returns a task ID for async processing.

## Query parameters

- `domains` string — Comma-separated list of domains to segment into topic clusters
- `query_id` string[], nullable — Include domains from these saved queries in the segmentation.
- `max_segments` integer, nullable — Maximum number of segments to create (2-20)

## Response `202`

Successful Response

- TaskResponse — Async task creation response for 202 Accepted responses. Returned when an operation is accepted for async processing. Use the task_id to poll for status and retrieve results.
  - `task_id` string, required — Unique task identifier for polling status

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/discolike/apis/discolike-api.md) · [All operations](https://skmtc.net/discolike/apis/discolike-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/discolike/discolike-api/versions/3248fc62024c/schema)
