Ukukhangela i-Plagiarity API: thumela umbhalo, ujonge ingxelo.
Iindawo ezigqithisileyo eziliqela, ugunyaziso lomthwalo, ukuthelekisa ityala elicacileyo. Ifakwe kwii-agency, ii-pipelines zoshicilelo kunye neezixhobo ze-LMS ezidibeneyo.
Isitshixo sakho se-API
Ngena ukuze ufumane iqhosha lakho le-API. Iqhosha livela kwi-akhawunti nganye; ukukhangela i-API kuhlawuliswa ngemali.
BhalisaIincopho zesiphelo
POST /api/v1/check/
Thumela umbhalo wokukhangela. Ibuyisela 202 nge check_id. Isiqu: JSON ngendawo yombhalo, i-boolean enzulu ekhethiweyo.
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>/
Ukhetho lwendawo; xa indawo igqityiwe ingxelo epheleleyo iquka: inqaku, iindidi zesivakalisi ngasinye ezihambelana nobuxoki kunye nomthombo osuka kwiphepha, kunye noluhlu lomthombo.
curl https://plagiarism.free/api/v1/check/CHECK_ID/ \ -H "Authorization: Bearer YOUR_KEY"
GET /api/v1/checks/
Uluhlu lweekhangelo zakho zakutshanje, ezitsha kuqala. Iparameters zombuzo ezikhethwayo: umda (1-100, okwendalo 20) kunye nesimo (ifolokhwe, yenziwe, ayiphumelelanga...). Uthelekiso lwezithunyelwe kwaye ubuyisele ibhodi yakho yolawulo ngaphandle kokugcina yonke i check_id.
curl "https://plagiarism.free/api/v1/checks/?limit=20&status=done" \ -H "Authorization: Bearer YOUR_KEY"
Iinketho ze-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"])
Imboniselo Yomzekelo Woshicilelo lwe Java
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));
Ixabiso
Ifana nendawo: 1 credit = 1,000 words scanned, rounded up per check; deep checks cost double. Credit packs are valid 365 days; subscriptions refill monthly and include the API at every level. No separate API tier, no per-seat fees. Iinkqubo ze-ECD
Iindlela zokukhangela ziqhuba ngokungalinganiyo (enyaniso, unikezelo lwe web olukhawulezayo luthatha imizuzwana engama- 20- 45) - umbuzo wendawo yesiphelo semeko kunokuba ugcine uxhulumaniso luvuliwe. HTTP 402 kuthetha ukuba akukho tyala elininzi; uphendulelo luquka into oza kuyihlawula ukukhangela.