---
title: "Compute top-N + Other subcounts for one or more fields, for jobs in the organization"
method: GET
path: "/v2/org/{orgId}/job/subcounts"
tags: ["job"]
---

# Compute top-N + Other subcounts for one or more fields, for jobs in the organization

`GET /v2/org/{orgId}/job/subcounts`

## Path parameters

- `orgId` string, required

## Query parameters

- `scenarioId` string
- `date` string, date
- `startDate` string, date
- `endDate` string, date
- `q` string
- `fields` string, required
- `topN` integer

## Response `200`

successful operation

- SubcountsResponse
  - `counts` object, required

## Other responses

- `202` — snapshot currently building
- `400` — bad request
- `401` — not authorized
- `404` — not found

---

[API](https://skmtc.net/charthop/apis/charthop-api.md) · [All operations](https://skmtc.net/charthop/apis/charthop-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/charthop/charthop-api/revisions/2de21f45f447/schema)
