API-и муайянкунии плагиат: матнро фиристед, гузоришро пурсед.

Якчанд нуқтаҳои охирин, аутентификатсияи соҳиб, нархгузории шаффоф. Барои агентиҳо, каналҳои таҳрирӣ ва асбобҳои LMS-и ҳамсоя сохта шудааст.

Калиди API- и шумо

Барои гирифтани калиди API-и худ ворид шавед. Калидҳо бо ҳар як ҳисоби корбар меоянд; санҷиши API дар кредитҳо ҳисоб карда мешавад.

Бақайдгирӣ

Нуқтаҳои охирин

POST /api/v1/check/

Матнро барои санҷиш фиристед. 202- ро бо check_ id бармегардонад. Ҷисми: JSON бо матни замина, интихобии чуқурии boolean.

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>/

Дар ин ҷо шумо метавонед ба саволҳои зерин ҷавоб диҳед: 1.

curl https://plagiarism.free/api/v1/check/CHECK_ID/ \
  -H "Authorization: Bearer YOUR_KEY"

GET /api/v1/checks/

Рӯйхати санҷишҳои охирини шумо, навтарин дар аввал. Параметри пурсишҳои иловагӣ: ҳадди (1- 100, пешфарз 20) ва ҳолати (дар навбат, анҷом, хатогӣ...). Мувофиқати пешниҳодҳо ва барқароркунии панели худ бе нигоҳ доштани ҳар як check_ 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 кредит = 1000 калимаҳои сканшуда, гирд карда барои ҳар як санҷиш; санҷишҳои чуқур ду баробар гаронтар аст. Пакети кредитҳо 365 рӯз амал мекунанд; обунаҳо ҳар моҳ пур карда мешаванд ва API- ро дар ҳар дараҷа дар бар мегиранд. Ягон дараҷаи API- и алоҳида, ягон пардохт барои ҳар як ҷой. Нигоҳ доштани нақшаҳо ва бастаҳо

Санҷишҳо ғайри ҳамзамона иҷро мешаванд: гирифтани веби воқеӣ, бо суръати маҳдуд, одатан як дақиқаро мегирад, вақте ки санҷиш оғоз мешавад, барои ҳуҷҷатҳои дарозтар ва дар вақти серодамтар. Ба ҷои нигоҳ доштани пайвастшавӣ кушода, ҳолати нуқтаи охиринро пурсидан. HTTP 402 маънои кредитҳои нокифоя дорад; ҷавоб арзиши санҷишро дар бар мегирад.

Саволҳои маъмул

Two endpoints. POST /api/v1/check/ with your text returns a check_id; GET /api/v1/check/check_id/ returns status while the check runs and the full report JSON (score, matched sentences, sources) when done. Auth is a Bearer key from your account page. Code samples in curl, Python and JavaScript are below.

The same transparent unit as the site: 1 credit per 1,000 words scanned, rounded up per check. Credit packs start at $4.99 for 30 credits and are valid a full year; the $7.99/month Starter plan includes 60 credits and API access. No per-seat fees, no separate API pricing tier.

A check usually takes about a minute once it starts, longer for long documents, because it performs real, rate-limited web retrieval and page comparison. The API is asynchronous for that reason. Submissions queue fairly; paid checks get priority. Poll the status endpoint every few seconds rather than holding the connection open.

Everything the web report shows: overall matched percentage, per-sentence match type (exact / near / none) with confidence, the matched source excerpt for each flagged sentence, and the source list with URLs and per-source match percentages. Enough to render your own report UI or gate a workflow.

Yes - that is what it is for: LMS-adjacent tools, editorial workflows, agency content pipelines. Volume is metered purely by credits, and the per-check word cap is 25000 words. If you need sustained high volume, contact us and we will provision for it rather than let queues degrade.