---
title: "List Topics for a Kafka Cluster"
method: GET
path: "/v2/databases/{database_cluster_uuid}/topics"
tags: ["DigitalOcean-public.v2-new_Databases"]
---

# List Topics for a Kafka Cluster

`GET /v2/databases/{database_cluster_uuid}/topics`

To list all of a Kafka cluster's topics, send a GET request to
`/v2/databases/$DATABASE_ID/topics`.

The result will be a JSON object with a `topics` key.

## Path parameters

- `database_cluster_uuid` string, uuid, required

## Response `200`

A JSON object with a key of `topics`.

- object
  - `topics` KafkaTopic[]
    - `name` string — The name of the Kafka topic.
    - `replication_factor` integer — The number of nodes to replicate data across the cluster.
    - `partition_count` integer — The number of partitions available for the topic. On update, this value can only be increased.
    - `state` 'active' | 'configuring' | 'deleting' | 'unknown' — The state of the Kafka topic.

## Other responses

- `401` — Authentication failed due to invalid credentials.
- `404` — The resource was not found.
- `429` — The API rate limit has been exceeded.
- `500` — There was a server error.
- `default` — There was an unexpected error.

---

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