API Documentation

Detect plagiarism and AI-generated content programmatically. Pay-as-you-go at $0.01 per scan.

1. Get an API key

Sign in and create a key under Settings → API Keys. The raw key is shown only once — store it securely.

Keys look like sk_live_... (or sk_test_... in test mode). Revoke a key at any time from the same page.

2. Authenticate

Every detection endpoint accepts your key in either header form.

curl https://originalcheck.tech/api/v1/detection/scan \
  -H "X-API-Key: sk_live_xxx" \
  -F "text=Your text here" \
  -F "scan_type=both"
HeaderValueNotes
X-API-Keysk_live_xxxRecommended
AuthorizationBearer sk_live_xxxDrop-in compatible with OpenAI/DeepSeek style clients
?api_key=sk_live_xxxQuery parameter, handy for quick browser tests

3. Run a detection

POST/api/v1/detection/scan

FieldTypeRequiredDescription
textstringone ofText to analyze, minimum 100 characters
filefileone ofPDF, DOCX or TXT document
scan_typestringnoboth (default), plagiarism, or ai
curl -X POST https://originalcheck.tech/api/v1/detection/scan \
  -H "X-API-Key: sk_live_xxx" \
  -F "text=The mitochondrion is often described as..." \
  -F "scan_type=both"

{
  "scan_id": "0f3c...-...",
  "status": "completed",
  "message": "Scan completed successfully.",
  "quota": {
    "feature": "detections",
    "used": 1,
    "limit": 0,
    "unlimited": true,
    "remaining": null,
    "allowed": true
  }
}
Free accounts are limited to 3 scans per day. When the limit is reached the API returns 402 Payment Required — check the quota object to stay ahead of the limit. Paid plans report "unlimited": true.

POST/api/v1/detection/batch-scan

Up to 10 documents per request. Each document consumes one scan from your quota.

curl -X POST https://originalcheck.tech/api/v1/detection/batch-scan \
  -H "X-API-Key: sk_live_xxx" \
  -F "files=@thesis-01.pdf" \
  -F "files=@thesis-02.docx" \
  -F "scan_type=both"

GET/api/v1/detection/scan/{scan_id}

Fetch a completed result, including matched sources and suspicious segments.

curl https://originalcheck.tech/api/v1/detection/scan/0f3c...-... \
  -H "X-API-Key: sk_live_xxx"

{
  "plagiarism_score": 15.4,
  "ai_score": 87.0,
  "sources": [
    {
      "url": "https://arxiv.org/abs/1706.03762",
      "title": "Attention Is All You Need",
      "similarity": 62.8,
      "matched_text": "..."
    }
  ],
  "result_json": {
    "ai_engine": "deepseek",
    "ai_confidence": 0.93,
    "ai_verdict": "likely_ai",
    "ai_reasoning": "Dense use of templated transitions...",
    "highlighted_paragraphs": [ { "paragraph": "...", "similarity": 62.8, "is_suspicious": true } ],
    "suspicious_segments": [ { "text": "...", "score": 81.0, "reasons": ["Templated transitions"] } ]
  }
}

GET/api/v1/detection/history

Paginated history with search and filters.

Query paramTypeDescription
pageint1-based page number (default 1)
per_pageintItems per page (default 10)
searchstringCase-insensitive match against the document title
typestringplagiarism, ai, or both
statusstringcompleted, processing, pending, failed
curl "https://originalcheck.tech/api/v1/detection/history?search=thesis&type=both&status=completed&page=1&per_page=20" \
  -H "X-API-Key: sk_live_xxx"

GET/api/v1/reports/scan/{scan_id}/report

Download the PDF integrity report. An .xlsx export is available at /api/v1/reports/scan/{scan_id}/export.xlsx.

4. Error handling

StatusMeaningWhat to do
401Missing or invalid keyCheck the key value and header name
402Daily free quota exhaustedBack off until the daily reset, or upgrade the plan
403Account disabledContact support
404Scan not foundVerify the scan_id belongs to your account
400Invalid inputText must be at least 100 characters; supported formats are PDF, DOCX, TXT
Detection results are advisory. They support an academic-integrity review process and should not be used as the sole basis for grading or disciplinary action.

5. Python quickstart

import requests

API_URL = "https://originalcheck.tech/api/v1"
HEADERS = {"X-API-Key": "sk_live_xxx"}

resp = requests.post(
    f"{API_URL}/detection/scan",
    headers=HEADERS,
    data={"text": open("thesis.txt").read(), "scan_type": "both"},
    timeout=120,
)
resp.raise_for_status()
scan_id = resp.json()["scan_id"]

result = requests.get(f"{API_URL}/detection/scan/{scan_id}", headers=HEADERS, timeout=30).json()
print("plagiarism:", result["plagiarism_score"], "ai:", result["ai_score"])
for source in result["sources"]:
    print(" matched:", source["url"], source["similarity"])