致命性性免疫缺陷病毒:提交文本,对报告进行民意调查。
少数终点、无记名认证、透明的积分定价,为机构、编辑管道和LMS近邻工具建造了设施。
终点
POST /api/v1/check/
提交文本以供检查。 以检查_ id 返回 202。 尸体: JSON 带有文本字段, 可选深布林 。
curl -X POST https://plagiarism.free/api/v1/check/ \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"text": "The text you want to check..."}'
GET /api/v1/check/<check_id>/
要求地位;在完成地位工作时,报告全文包括:得分、每项判决与信任和来源摘录类型相符,以及来源清单。
curl https://plagiarism.free/api/v1/check/CHECK_ID/ \ -H "Authorization: Bearer YOUR_KEY"
GET /api/v1/checks/
列出您最近的检查, 最新的先列出。 选项查询参数: 限制 (1- 100, 默认 20) 和状态( 排队、 完成、 失败...) 。 校正提交文件并备份您的仪表板, 但不保存每个检查_ id 。
curl "https://plagiarism.free/api/v1/checks/?limit=20&status=done" \ -H "Authorization: Bearer YOUR_KEY"
DELETE /api/v1/check/<check_id>/
删除完成的检查: 提交文本和举报将被永久删除 。 使用该软件满足用户的删除请求。 仍然排队或运行答案的检查 409; 一旦完成或失败, 将其删除 。
curl -X DELETE https://plagiarism.free/api/v1/check/CHECK_ID/ \ -H "Authorization: Bearer YOUR_KEY"
Python 示例
import time
import requests
API = "https://plagiarism.free/api/v1/check/"
HEADERS = {"Authorization": "Bearer YOUR_KEY"}
r = requests.post(API, json={"text": open("essay.txt").read()}, headers=HEADERS)
check_id = r.json()["check_id"]
while True:
report = requests.get(f"{API}{check_id}/", headers=HEADERS).json()
if report["status"] in ("done", "failed"):
break
time.sleep(3)
print(report["score_pct"], "% matched")
for source in report["sources"]:
print(source["pct_of_document"], source["url"])
JavaScript 示例
const API = "https://plagiarism.free/api/v1/check/";
const headers = { "Authorization": "Bearer YOUR_KEY", "Content-Type": "application/json" };
const { check_id } = await fetch(API, {
method: "POST", headers, body: JSON.stringify({ text })
}).then(r => r.json());
let report;
do {
await new Promise(res => setTimeout(res, 3000));
report = await fetch(`${API}${check_id}/`, { headers }).then(r => r.json());
} while (!["done", "failed"].includes(report.status));
定价
与网站相同:1个积分=1,000字扫描,每张检查单进行整齐检查;深检查费用翻倍;积分袋为365天;每月续签,每个级别都包括API。没有单独的API等级,没有每个座位的收费。 见计划和包
Checks run asynchronously: real, rate-limited web retrieval usually takes about a minute once a check starts, longer for long documents and at busy times. Poll the status endpoint rather than holding the connection open. HTTP 402 means insufficient credits; the response includes what the check would cost.