Ukuthola i-Plagiarity API: thumela umbhalo, hlola ingxelo.
Iningi lezindawo eziphele, ubufakazi bomuntu ophethe, ukuthengiselana okucacile. Ifakwe izinhlangano, amapayipi okubhala kanye ne-LMS-ehambisanayo.
Isithonjana sakho se-API
Ngena ukuze uthole isithonjana sakho se-API. Isithonjana sivela nganoma iyiphi i-akhawunti; ukubhekwa kwe-API kukhokhwa nge-credits.
BhalaIzinhlamvu zesiphelo
POST /api/v1/check/
Sithumela umbhalo wokubheka. Ibuyisela 202 nge check_id. Isiqu: JSON ngendawo yombhalo, i-boolean ebanzi ekhethiwe.
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>/
Umbuzo wesimo; lapho isimo siqediwe khona ingxelo ephelele ifakazelwa: isicoco, izilimi ezilinganayo ngethemba kanye ne-source fragments, kanye nohlu lwe-source.
curl https://plagiarism.free/api/v1/check/CHECK_ID/ \ -H "Authorization: Bearer YOUR_KEY"
GET /api/v1/checks/
Uhlu lwezibuyekezo zakho zamanje, ezisha kuqala. Izibuyekezo zombuzo ezikhethiwe: umkhawulo (1-100, okuzenzakalelayo 20) nesimo (sihamba, siqediwe, sihlulekile...). Ukuhlanganisa izinikezelo nokubuyisa ibhodi lakho lokuphatha ngaphandle kokugcinwa kwe-check_id ngayinye.
curl "https://plagiarism.free/api/v1/checks/?limit=20&status=done" \ -H "Authorization: Bearer YOUR_KEY"
Isibonelo se-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"])
Isibonelo seJavaScript
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));
Ukulinganisa
Ifana nendawo: 1 credit = 1,000 amagama axhunywe, ejikelezwe phezulu ngasinye ukuhlola; ukuhlola okunzulu izindleko ezimbili. Credit amaphakheji zisebenza 365 izinsuku; ukubhalisa refill ngenyanga futhi kufaka phakathi i API ngaso sonke isizini. Akukho i-API ehlukile, akukho per-isikhala amaholo. Bona ama-plans nama-packages
Izikhangiso zisebenza ngokuzenzakalela (iqiniso, ukufinyelela kwewebhu okulinganiselwe kuthatha amasekondi angama-20-45) - hlola isimo sendawo yokuqedela ngaphandle kokuvala ukuxhumana. HTTP 402 kusho ukukhokhelwa okungalungile; uphendule kufaka phakathi ukuthi yini okuzobiza ukubheka.