---
title: "Query selected roster snapshot fields"
method: POST
path: "/v2/roster/members/query"
tags: ["Roster Builder"]
---

# Query selected roster snapshot fields

`POST /v2/roster/members/query`

## Request

- Base URL: `https://api.clashk.ing`
- URL: `https://api.clashk.ing/v2/roster/members/query`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

## Request body

- object
  - `serverId` string, required: Discord snowflake as an unsigned decimal string
  - `rosterIds` string[], required
  - `fields` string[]

## Response `200`

Success

- object
  - `rows` object[], required
    - `rosterId` string, required
    - `playerTag` string, required
    - `playerName` string
    - `townhall` union
      - number
      - 'NaN'
      - 'Infinity'
      - '-Infinity'
    - `trophies` union
      - number
      - 'NaN'
      - 'Infinity'
      - '-Infinity'
    - `clanName` string, nullable
    - `clanTag` string, nullable
    - `leagueId` union
      - number
      - 'NaN'
      - 'Infinity'
      - '-Infinity'
    - `leagueName` string, nullable
    - `heroLevelSum` union
      - number
      - 'NaN'
      - 'Infinity'
      - '-Infinity'
    - `maxPercent` union
      - number
      - 'NaN'
      - 'Infinity'
      - '-Infinity'
    - `warPreference` boolean, nullable
    - `lastOnline` string, nullable
    - `discordUsername` string, nullable
    - `signupAnswers` object

## Other responses

- `400`: Expected error
- `401`: Expected error
- `403`: Expected error
- `404`: Expected error
- `409`: Expected error
- `413`: Expected error
- `429`: Expected error
- `503`: Expected error

## Changes

- **2026-09-09** `9ec0debedfc6`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/clashk/apis/clashking-api/changes/v2/roster/members/query/post.md)

---

[API](https://skmtc.dev/clashk/apis/clashking-api.md) - [All operations](https://skmtc.dev/clashk/apis/clashking-api/llms.txt) - [OpenAPI document](https://skmtc.dev/clashk/apis/clashking-api/revisions/8411b4ef8009?raw)
