API deteksyon plagiat: voye tèks, sondaj rapò a.
Yon ti ponyen de pwent fen, bearer auth, pri kredi transparan. Konpoze pou ajans, edisyon pipelines ak LMS-adjasan zouti.
Chwa API ou
Enskri pou jwenn kle API ou a. Chèn vini ak chak kont; API chèk yo facturé nan kredi.
EnskriEndpoints
POST /api/v1/check/
Soumèt yon tèks pou verifye. Retounen 202 ak yon check_id. Kò: JSON ak yon jaden tèks, boolean fon opcionel.
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>/
Sondaj pou estati; lè estati a te fè rapò a konplè se enkli: pwen, per-sentance match types ak konfidans ak sous extraits, ak lis sous.
curl https://plagiarism.free/api/v1/check/CHECK_ID/ \ -H "Authorization: Bearer YOUR_KEY"
GET /api/v1/checks/
Liy de chèk ou dènye, pi nouvo an premye. Paramèt kesyon optional: limit (1-100, default 20) ak estati (filed, done, failed...). Reconciliation soumissions and back your own dashboard without storing every check_id.
curl "https://plagiarism.free/api/v1/checks/?limit=20&status=done" \ -H "Authorization: Bearer YOUR_KEY"
Egzanp 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 example
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));
Pri
Identik a sit la: 1 kredi = 1,000 mo skaned, arrondi a chak chèk; chèk fon koute de fwa. Kredi pake yo valab 365 jou; abònman recharge mensyèlman ak gen ladan API a nan chak nivo. Pa gen tiraj API separe, pa gen frè pou chak sit. Gade plan ak pake
Kondisyon yo kouri asynchronously (reyèl, rate-limited web retrieval pran 20-45 segonn) - sondaj la estati pwent bout piske pase kenbe koneksyon an louvri. HTTP 402 vle di kredi insuffisants; repons lan gen ladan sa ki ta koute konstan.