---
title: "Returns all SourceDocument IDs that match the query parameters."
method: POST
path: "/analysis/code_frequencies"
tags: ["analysis"]
---

# Returns all SourceDocument IDs that match the query parameters.

`POST /analysis/code_frequencies`

## Query parameters

- `project_id` integer, required

## Request body

- BodyAnalysisCodeFrequencies
  - `code_ids` integer[], required
  - `user_ids` integer[], required
  - `doctypes` DocType[], required

## Response `200`

Successful Response

- CodeFrequency[]
  - `code_id` integer, required — The id of the code.
  - `count` integer, required — The number of occurrences of the code.
  - `child_count` integer, required — The number of occurrences of all child codes of the code.
  - `total_count` integer, required — The total number of occurrences of the code and all its child codes.

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/uhh-lt/apis/discourse-analysis-tool-suite-api.md) · [All operations](https://skmtc.net/uhh-lt/apis/discourse-analysis-tool-suite-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/uhh-lt/discourse-analysis-tool-suite-api/revisions/6b22366ce2d1/schema)
