> ## Documentation Index
> Fetch the complete documentation index at: https://www.artie.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Kafka topic partition sizes

> Retrieves cached, customer-safe partition sizes for every topic unless forceRefresh is true.

`GET /kafka-clusters/{uuid}/topic-sizes`

## Authorization

* `Authorization` (header): API key passed as a Bearer token in the Authorization header.

## Path parameters

* `uuid` (string, required)

## Query parameters

* `forceRefresh` (boolean)

## Example request

```bash
curl --request GET \
  --url https://api.artie.com/kafka-clusters/{uuid}/topic-sizes \
  --header 'Authorization: Bearer <token>'
```

## Responses

### 200 OK

* `items` (object[], required)
  * `partitions` (object[] | null, required)
    * `partition` (integer<int32>, required)
    * `sizeBytes` (integer<int64>, required)
  * `remoteSizeBytes` (integer | null): The topic's size in remote storage (S3). Missing when Datadog has no data for it.
  * `topic` (string, required)

```json
{
  "items": [
    {
      "partitions": [
        {
          "partition": 123,
          "sizeBytes": 123
        }
      ],
      "remoteSizeBytes": 123,
      "topic": "<string>"
    }
  ]
}
```

### 404 Not Found

### 500 Internal Server Error