Developer API

Code Plagiarism
Detection API

Build plagiarism detection into your apps. Check code against 20+ billion sources.

const response = await fetch('https://codequiry.com/api/v1/check', { method: 'POST', headers: { 'apikey': 'YOUR_API_KEY' }, body: formData }); // Check created!
TEST TYPES API

Get Available Test Types

Retrieve all available plagiarism detection engines (test types), their capabilities, features, and your account's access level for each.

API Endpoint

GET/POST https://codequiry.com/api/v1/test-types
No Parameters Required: This endpoint only requires your API key. The response is personalized based on your account's subscription level.

Authentication

Include your API key in the request header:

apikey: YOUR_API_KEY_HERE

Success Response

HTTP Status: 200 OK

{
    "success": true,
    "test_types": [
        {
            "id": 0,
            "name": "Peer Similarity",
            "description": "Compares submissions against each other within the same check",
            "features": [
                "Local peer-to-peer comparison",
                "AST-based analysis",
                "Variable renaming detection"
            ],
            "consumption": 1,
            "peer_only": true,
            "auto_detect_base_code": false,
            "available": true
        },
        {
            "id": 1,
            "name": "Standard Web Check",
            "description": "Checks against web sources including GitHub, Stack Overflow, and code repositories",
            "features": [
                "20+ billion web sources",
                "GitHub repository search",
                "Stack Overflow matching",
                "Open source detection"
            ],
            "consumption": 2,
            "peer_only": false,
            "auto_detect_base_code": true,
            "available": true
        },
        {
            "id": 2,
            "name": "Advanced Database Check",
            "description": "Deep analysis against our proprietary database of code submissions",
            "features": [
                "Proprietary code database",
                "Historical submission matching",
                "Cross-institution detection",
                "AI-generated code detection"
            ],
            "consumption": 3,
            "peer_only": false,
            "auto_detect_base_code": true,
            "available": true
        }
    ],
    "user_access": {
        "has_full_access": true,
        "is_pro": true,
        "is_edu_verified": false,
        "is_enterprise": false
    },
    "default_test_type": 0,
    "recommended_test_type": 1,
    "note": "Test type consumption varies. Higher test types provide more thorough analysis."
}
        
JSON Response
Response Fields
  • test_types — Array of available analysis engines
  • test_types[].id — Test type identifier to use in start check and create check endpoints
  • test_types[].name — Human-readable name of the detection engine
  • test_types[].description — Description of what this test type analyzes
  • test_types[].features — Array of capabilities included in this test type
  • test_types[].consumption — Credit consumption multiplier for this test type
  • test_types[].peer_only — Whether this test type only compares files within the same check
  • test_types[].auto_detect_base_code — Whether base code is automatically excluded from results
  • test_types[].available — Whether your account has access to this test type
  • user_access — Your account's access level details
  • default_test_type — The test type used if none is specified
  • recommended_test_type — The recommended test type for your account level

Understanding Test Types

Peer Similarity (Type 0)

Compares all submissions within a check against each other. Best for detecting copying between students in the same class.

Web Check (Type 1)

Searches 20+ billion web sources including GitHub, Stack Overflow, and public repositories for matching code.

Database Check (Type 2)

Deep analysis against our proprietary database with AI-generated code detection and cross-institution matching.

Error Responses

401 Unauthorized

Invalid or missing API key.

Code Examples

cURL
curl -X GET "https://codequiry.com/api/v1/test-types" \
  -H "apikey: YOUR_API_KEY_HERE"
        
cURL
JavaScript
const response = await fetch('https://codequiry.com/api/v1/test-types', {
    headers: { 'apikey': 'YOUR_API_KEY_HERE' }
});

const data = await response.json();

if (data.success) {
    data.test_types.forEach(type => {
        console.log(`${type.name} (ID: ${type.id})`);
        console.log(`  Available: ${type.available}`);
        console.log(`  Features: ${type.features.join(', ')}`);
    });
    console.log(`Recommended: Type ${data.recommended_test_type}`);
}
        
JavaScript