Skip to content

API Reference / Steam account groups

Count account groups in a workspace

Returns the number of account groups in the workspace, so a list page can render a count without loading and counting every row.

POST/contracts.v1.Contracts/CountAccountGroups

Request body

application/jsonRequired

Request for the number of account groups in the caller's workspace matching a filter.

filter?AccountGroupFilter

The same filter as ListAccountGroups. Absent counts all groups.

Show attributes
accountNames?array<string>

Exact Steam account names, OR within the field: a group matches when at least one of them is a member, so a page of accounts reads every account's groups in one call. At most 100 names. Empty includes every group.

query?string

Literal case-insensitive substring to match against group name or member username. Omitted or empty matches all groups.

Response body

application/json

Success

count?integer

Number of account groups in the caller's workspace.

Format"int32"

curl -X POST "https://api.goldmine.to/contracts.v1.Contracts/CountAccountGroups" \
  -H "Authorization: Bearer $CSTRADER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
{
  "count": 3
}