---
title: "Verify Quote Endpoint"
method: GET
path: "/api/verify/quote"
tags: ["verification"]
---

# Verify Quote Endpoint

`GET /api/verify/quote`

## Request

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

逐字引文核验（开放世界）。

Verify a quote verbatim against the whole corpus. Returns where it was
found (URN-cited), or the closest near-miss window when it wasn't.
Rate limit: strict (see rate_limit_verify_quote).

## Query parameters

- `q` string, required: 待核验的引文
- `cite` string, nullable: 出处提示：CBETA 编号(T0374)或 fojin URN(fojin:cbeta/T0374.13)
- `juan` integer, nullable: 卷号提示

## Response `200`

Successful Response

- QuoteVerdict
  - `quote` string, required
  - `normalised_quote` string, required
  - `verbatim` boolean, required
  - `bucket` 'exact' | 'near_miss' | 'absent', required
  - `similarity` number, required
  - `matches` QuoteMatch[]
    - `text_id` integer, required
    - `cbeta_id` string, nullable
    - `title_zh` string, nullable
    - `juan_num` integer, required
    - `urn` string, nullable
    - `reader_url` string, nullable
    - `juan_matched` boolean, nullable
    - `canon_class` string, nullable
  - `matches_capped` boolean
  - `closest` ClosestMiss: Best near-match window when the quote is NOT verbatim anywhere we looked. ``window_normalised`` is in normalised space (NFKC + 繁→简 + punctuation stripped) — the exact space the verdict is computed in.
    - `text_id` integer, required
    - `juan_num` integer, required
    - `urn` string, nullable
    - `reader_url` string, nullable
    - `similarity` number, required
    - `window_normalised` string, required
    - `diff` DiffOp[]
      - `op` 'equal' | 'replace' | 'delete' | 'insert', required
      - `quote` string, required
      - `source` string, required
    - `cbeta_id` string, nullable
    - `title_zh` string, nullable
    - `canon_class` string, nullable
  - `cite_resolved` boolean, nullable
  - `cite_matched` boolean, nullable
  - `lang` string
  - `caveats` string[]

## 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)
