Apache Kafka · Schema

Kafka Topic Configuration

Schema for Apache Kafka topic configuration properties.

Distributed SystemsEvent StreamingMessagingOpen-SourcePub-Sub

Properties

Name Type Description
topic_name string The name of the topic
partitions_count integer Number of partitions for the topic
replication_factor integer The replication factor for the topic
configs object Topic-level configuration overrides
View JSON Schema on GitHub

JSON Schema

kafka-topic-config.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://api-evangelist.com/schemas/apache-kafka/kafka-topic-config.json",
  "title": "Kafka Topic Configuration",
  "description": "Schema for Apache Kafka topic configuration properties.",
  "type": "object",
  "properties": {
    "topic_name": {
      "type": "string",
      "description": "The name of the topic"
    },
    "partitions_count": {
      "type": "integer",
      "minimum": 1,
      "description": "Number of partitions for the topic"
    },
    "replication_factor": {
      "type": "integer",
      "minimum": 1,
      "description": "The replication factor for the topic"
    },
    "configs": {
      "type": "object",
      "description": "Topic-level configuration overrides",
      "properties": {
        "cleanup.policy": {
          "type": "string",
          "enum": ["delete", "compact", "delete,compact"],
          "description": "Log cleanup policy"
        },
        "retention.ms": {
          "type": "integer",
          "description": "Retention time in milliseconds"
        },
        "retention.bytes": {
          "type": "integer",
          "description": "Maximum size a partition can grow to before old log segments are discarded"
        },
        "segment.bytes": {
          "type": "integer",
          "description": "Segment file size for the log"
        },
        "max.message.bytes": {
          "type": "integer",
          "description": "Maximum size of a message that can be appended to the log"
        },
        "min.insync.replicas": {
          "type": "integer",
          "description": "Minimum number of replicas that must acknowledge a write"
        },
        "compression.type": {
          "type": "string",
          "enum": ["uncompressed", "zstd", "lz4", "snappy", "gzip", "producer"],
          "description": "Compression codec for the topic"
        }
      },
      "additionalProperties": {
        "type": "string"
      }
    }
  },
  "required": ["topic_name"]
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/kafka-topic-config"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.