---
title: "Get Work"
method: GET
path: "/api/works/{slug}"
tags: ["works"]
---

# Get Work

`GET /api/works/{slug}`

## Request

- Base URL: `https://fojin.app` (the document declares no server; this is the origin it was published from)
- URL: `https://fojin.app/api/works/{slug}`
- Auth: none declared

Get a single work by slug, including its witness count.

按 slug 获取作品详情（含见证本计数）。404 if slug not found.

## Path parameters

- `slug` string, required

## Response `200`

Successful Response

- WorkDetailResponse: FRBR Work 详情：聚合作品的全部元数据 + 见证本计数。
  - `id` integer, required
  - `slug` string, required
  - `title_primary` string, required
  - `title_sa` string, nullable
  - `title_pi` string, nullable
  - `sc_root_uid` string, nullable
  - `toh_number` string, nullable
  - `category` string, nullable
  - `note` string, nullable
  - `created_at` string, date-time, required
  - `witness_count` integer

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/fojin/apis/fojin-api-buddhist-digital-text-platform.md) · [All operations](https://skmtc.dev/fojin/apis/fojin-api-buddhist-digital-text-platform/llms.txt) · [OpenAPI document](https://skmtc.dev/fojin/apis/fojin-api-buddhist-digital-text-platform/revisions/969714238c61?raw)
