查重 API
职责:21 种数据源的查重(精确 / 模糊 / 相似度三种算法),用于内容去重 / 重复检测 / 近似抄袭识别。
本页接口速览(7 个)
POST /api/check/exact
POST /api/check/fuzzy
POST /api/check/similar
GET /api/check/sources
GET /api/check/recent?source=poem
POST /api/check/batch
POST /api/check/dedupe
查重 API(21 数据源 3 算法)
基础URL:
https://tools.wktyl.com
维护: Xianyan 团队 | 更新时间: 2026-08-15
跳转: 全量搜索 · 工具 API
职责:21 种数据源的查重(精确 / 模糊 / 相似度三种算法),用于内容去重 / 重复检测 / 近似抄袭识别。
1. 通用约定
- 无需登录(但建议登录后频次更高)
- 响应
{code, msg, time, data} - 频率限制:精确 60/60s,模糊 30/60s,相似度 10/300s(重计算)
- 21 个数据源:poem / hanzi / chengyu / sentence / shiwu / xiehouyu / duilian / baike / weather / ip / shijing / …
2. 接口清单
2.1 三大算法接口
POST /api/check/exact— 精确匹配(哈希比对)POST /api/check/fuzzy— 模糊匹配(编辑距离/相似度)POST /api/check/similar— 相似度匹配(向量召回)
2.2 数据源管理
GET /api/check/sources— 列出 21 个数据源 + 当前状态GET /api/check/recent?source=poem— 最近插入记录
2.3 批量 / 场景
POST /api/check/batch— 批量查重(最多 100 条)POST /api/check/dedupe— 去重(只返回首个重复项)
3. 输入字段
{
"text": "床前明月光",
"source": "poem",
"algorithm": "fuzzy", // exact | fuzzy | similar
"threshold": 0.85 // 相似度阈值,仅 similar 算法
}
4. 响应
{
"code": 1,
"data": {
"algorithm": "fuzzy",
"duration_ms": 12,
"matches": [
{
"source": "poem",
"id": 8888,
"title": "静夜思",
"similarity": 0.92
}
],
"total": 1
}
}
5. 核心示例
POST /api/check/fuzzy
{ "text": "床前明月光", "source": "sentence" }
# 响应:返回与句子库的最接近匹配
6. 算法选择决策树
mermaid
flowchart TD
A{需要 100% 准确?}
A -->|是| exact[/精确匹配/]
A -->|否| B{速度要求高?}
B -->|是| fuzzy[/模糊匹配<br/>编辑距离/]
B -->|否| similar[/相似度匹配<br/>向量召回/]
7. 设计要点
- 三算法适配场景:exact(完全重复)/ fuzzy(轻微修改)/ similar(近似抄袭)
- 数据源独立选择:不必扫所有 21 个,只选相关 1-3 个提效
- 相似度阈值:≥0.9 高度重复;0.7-0.9 同义;<0.7 不相关