---
title: "Parallel Sentences Search"
method: GET
path: "/api/search/parallel-sentences"
tags: ["search"]
---

# Parallel Sentences Search

`GET /api/search/parallel-sentences`

## Request

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

Cross-lingual sentence search over MITRA parallels.

输入中文短语，返回对齐的梵/藏语句及其汉文对照与出处（MITRA 平行语料，
CC BY-SA 4.0）。以 pg_trgm 相似度对 zh_text 排序，mitra_e_score 降序
（NULL 宽容），支持按外语语种筛选。数据覆盖随导入逐步增长，空结果为常态。

## Query parameters

- `q` string: 中文关键词（跨语对照）
- `lang` string: 外语筛选 (sa 梵 / bo 藏 / all 全部)
- `limit` integer: 返回数量

## Response `200`

Successful Response

- ParallelSentencesResponse
  - `total` integer, required
  - `results` ParallelSentenceHit[], required
    - `zh_text` string, required
    - `foreign_text` string, required
    - `foreign_lang` string, required
    - `taisho_id` string, required
    - `text_id` integer, required
    - `title` string
    - `juan_num` integer, nullable
    - `mitra_e_score` number, nullable
    - `source` string
    - `license` string
  - `error` string, nullable

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