---
title: "Get detailed code quality findings from a remote public git repository. Returns rule IDs, line numbers, severity, category, descriptions, and source snippets. Supports filtering by file path, severity (error, warning, info), and category (security, deprecated, safety, correctness, maintainability, accessibility, modernization, performance, concurrency). Use after code_analyze to drill into specific findings. Shares the same analysis cache — no duplicate work if analyze already ran."
method: POST
path: "/api/v1/code_get_findings"
---

# Get detailed code quality findings from a remote public git repository. Returns rule IDs, line numbers, severity, category, descriptions, and source snippets. Supports filtering by file path, severity (error, warning, info), and category (security, deprecated, safety, correctness, maintainability, accessibility, modernization, performance, concurrency). Use after code_analyze to drill into specific findings. Shares the same analysis cache — no duplicate work if analyze already ran.

`POST /api/v1/code_get_findings`

## Query parameters

- `client` string, required

## Request body

- object
  - `category` 'security' | 'deprecated' | 'safety' | 'correctness' | 'maintainability' | 'accessibility' | 'modernization' | 'performance' | 'concurrency' — Filter findings by category.
  - `max_results` integer — Maximum number of findings to return (cap: 200).
  - `offset` integer — Skip this many findings before returning. Use for paging.
  - `path` string — Filter findings to files matching this path prefix (e.g. "pkg/api/" or "src/main.go").
  - `repository` string, required — Git URL of a public remote repository
  - `scan_test_files` boolean — Include findings from test files. By default test files are excluded.
  - `severity` 'error' | 'warning' | 'info' — Filter findings by severity level.

## Response `200`

Successful response

- object

## Other responses

- `400` — Bad request (invalid params or missing client)
- `404` — Repository or file not found
- `429` — Rate limited
- `500` — Internal server error
- `502` — Bad gateway (upstream clone failure)
- `503` — Service unavailable (clone queue full)

---

[API](https://skmtc.dev/searchcode/apis/searchcode-rest-api.md) · [All operations](https://skmtc.dev/searchcode/apis/searchcode-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/searchcode/searchcode-rest-api/revisions/24a0730a30a6/schema)
