We have moved to a new domain. Plagiarism-Detect.org is now PlagiarismDetect.org. Welcome!
x

PlagiarismDetect.org API

Thanks to our IT team’s hard and persistent work, PlagiarismDetect.org is now able to offer a plagiarism detection API which can be customized and integrated into different systems. This API allows you to check any texts for plagiarism right in your management system. In other words, it makes your life easier: you do not have to go to our website, just log in to your control panel and use PlagiarismDetect there.

Technical description

  • API Gateway: http://www.plagiarismdetect.org/apiuser/index
  • Every user has his own INU (Instant Notification Url) in our system. PlagiarismDetect uses it to send the results of plagiarism check.
  • Each client has Secret – a verification key for API and INU.
  • All the requests are sent to the API using POST method.

1.Send documents for checking (.doc, .docx)

POST parameters

  • uid – unique identification number of a user in PlagiarismDetect.org system
  • action – the operation which is performed (“check_file” in this case)
  • quality – the quality of plagiarism check, defined by numbers (1 – Standard; 2 - Premium)
  • name – the name of the document that will be displayed in the Results section
  • file – the body of the document, first encoded in base64, than in url
  • file_extension – the format of the file (.doc, .docx)
  • secret - a user's verification key for API and INU
  • check – the check field equal to md5 of string-apend:
uid+action+quality+file+secret

You can receive your UID and SECRET in your profile.

Response from PlagiarismDetect.org in JSON format

  • rid – request identification number
  • status – the status of request (100 – document successfully sent for check; 101 – check field mismatch; 102 – could not read the text in the file sent; 103 – the word count is less than a required minimum; 104 – the word count exceeds maximum; 105 – not enough credits to scan the full text)
  • words – the word count of the text (true if status = 100)
  • credits – the number of credits required for plagiarism check (true if status = 100)
  • document_id – unique identification number of the document in PlagiarismDetect.org system (true if status = 100)

After the plagiarism check of the document, PlagiarismDetect.org sends an IN (Instant Notification) to a user, consisting of the following POST parameters:

  • document_id document_id – unique identification number of the checked document
  • status – the check status (200 – checked successfully)
  • similarity – the percentage of plagiarism
  • internet_results – the amount of sources which have similarities
  • check - the check field equal to md5 of string-apend:
document_id+status+similarity+internet_results+secret

2. HTML plagiarism report retrieval

POST parameters

  • uid – unique identification number of the user in PlagiarismDetect.org system
  • action – the operation which is performed (“report” in this case)
  • document_id – unique identification number of the checked document
  • check - the check field equal to md5 of string-apend
uid+action+ document_id+secret

Response from PlagiarismDetect.org in JSON format

  • rid – API request identification number
  • status – the status of request (100 – report sent successfully; 101 – check field mismatch)
  • html - HTML report encoded in base64 (true if status = 100)
PHP function to send a document for plagiarism check:
function pd_send_file($file_path,$file_extension,$quality,$title) {
                        
PHP function to receive HTML plagiarism report:
function pd_get_report($document_id,$file_path) {
PHP code to receive IN
if (!isset($_POST["document_id"]) || !isset($_POST["status"]) ||
If you have any questions, suggestions or requests regarding PlagiarismDetect.org API, please do not hesitate to contact us.