---
search:
  tags:
    - Topics
    - GET
seo:
  description: >-
    Get topics grouped by entity_id (connector instances) with nested
    pagination. Reference for the GET /topics/details/grouped endpoint in the
    Streamkap REST API.
sidebar:
  label: List topics grouped by connector/entity
  badge: GET
title: List topics grouped by connector/entity
type: openapi-operation
---
Get topics grouped by entity_id (connector instances) with nested pagination.

Each group represents a source/transform/destination entity and contains its topics.
Supports dual pagination (groups and topics within groups) and dual sorting.

Supports multiple entity types via comma-separated values (e.g., entity_type=sources,transforms).
Note: group_id requires exactly one entity_type to be specified.

`GET /topics/details/grouped`

**Responses**

- `200` — Successful Response
- `422` — Validation Error

Response example, 200:

```json
{
  "page": 1,
  "page_size": 10,
  "total": 0,
  "has_next": true,
  "result": [
    {
      "group_id": "string",
      "group_type": "entity_id",
      "entity": {
        "entity_id": "string",
        "entity_type": "sources",
        "entity_name": "string",
        "connector": "alloydb",
        "connector_display_name": "string"
      },
      "topic_count": 0,
      "topics": {
        "page": 1,
        "page_size": 10,
        "total": 0,
        "has_next": true,
        "result": [
          {
            "id": "string",
            "name": "string",
            "entity": {
              "entity_type": "sources",
              "entity_id": "string",
              "name": "string",
              "connector": "alloydb",
              "topic_ids": [
                "string"
              ],
              "topic_db_ids": [
                "string"
              ],
              "display_name": "string",
              "filtered_snapshot_language": "string"
            },
            "prefix": "string",
            "serialization": {
              "key_format": "unknown",
              "value_format": "unknown",
              "key_converter": "string",
              "value_converter": "string",
              "schema_registry_enabled": false
            },
            "tags": [
              "string"
            ],
            "broker_only": false
          }
        ]
      }
    }
  ]
}
```
