Get committed group offsets for given partitions.

GET /consumers/{group_name}/instances/{instance}/offsets

Path parameters

  • group_name string Required
  • instance string Required
application/vnd.kafka.v2+json

Body

  • partitions array[object]
    Hide partitions attributes Show partitions attributes object
    • topic string
    • partition integer

Responses

  • 200 application/vnd.kafka.v2+json
    Hide response attribute Show response attribute object
    • offsets array[object]
      Hide offsets attributes Show offsets attributes object
      • topic string
      • partition integer
      • offset integer
      • metadata string
  • 404 application/vnd.kafka.v2+json

    Consumer, topic, or partition not found

    Hide response attributes Show response attributes object
    • error_code integer
    • message string
GET /consumers/{group_name}/instances/{instance}/offsets
curl \
 --request GET 'http://{{Host}}/consumers/{group_name}/instances/{instance}/offsets' \
 --header "Content-Type: application/vnd.kafka.v2+json"
Request examples
{
  "partitions": [
    {
      "topic": "string",
      "partition": 42
    }
  ]
}
Response examples (200)
{
  "offsets": [
    {
      "topic": "string",
      "partition": 42,
      "offset": 42,
      "metadata": "string"
    }
  ]
}
Response examples (404)
{
  "error_code": 42,
  "message": "string"
}