---
title: "Get topic mixture for a document (CSV)"
method: GET
path: "/{k}/doc_topics/{doc_id}"
tags: ["Models", "Documents"]
---

# Get topic mixture for a document (CSV)

`GET /{k}/doc_topics/{doc_id}`

Returns a CSV of (topic, prob) for the given document in model `k`. Supports conditional requests via ETag / If-None-Match.

## Path parameters

- `k` integer, required
- `doc_id` string, required

## Response `200`

CSV content

## Other responses

- `304` — Not Modified (If-None-Match matched)
- `400` — Invalid model `k` (no model for k)

---

[API](https://skmtc.dev/inpho/apis/topic-explorer-server-api.md) · [All operations](https://skmtc.dev/inpho/apis/topic-explorer-server-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/inpho/topic-explorer-server-api/revisions/04253424f5bb/schema)
