PlagScan Plagiat Prüfung![]() |
PlagScan API guide, version 2.02, 03 August 2011 Momentan leider nur auf Englisch verfügbar! PlagScan API specification Plagiarism checker API integration
![]() Requests are always send as a POST request to https://www.plagscan.com/api/. They have to be accompanied by the organization's identification key. To get an API key you will have to register for a PlagScan Pro organization account. After logging in as administrator go to the settings menu and change the user interface to 'extended'. Afterwards your adminstration menu will display 'API Integration'. Here you can generate your PlagScan API key, set the call-back URL for completion notifications as well as define the IP address or IP range (CIDR format: 1.2.3.4/24) from which requests with your API key may originate. The reply is generally sent as XML data, with the exception of RETRIEVE method with MODE=3, MODE=4, MODE=5: Annotated docx files (RETRIEVE method with MODE=3) are sent as plain binary data. RETRIEVE method with MODE=4 or 5 will return reports in valid HTML but not XML. This document is intended as a reference or may give you a first idea of what is possible. Please do not hesitate to contact us at api@plagscan.com if you have questions! See sample code below.
Submit → Check → Callback → Retrieve
Security requirements
Request Format Each POST request consists of required (and possibly optional) parameters and their values. Parameter names are not case sensitive. The examples in this document use UPPERCASE for parameter names and divide the parameters into required security parameters and body parameters. The former are always the same regardless of the function executed while the latter parameters depend on the method called.
Required Parameters: API Credentials
Return Format Results of a request are sent as XML data - with the exception of Word 2007/2010 docx files, which are sent as plain data.
Supported methods
Method Submit – submit a document file (Analysis does not start automatically unless turned on in the user's settings. One single document per call; zip archives are not supported for API submissions. To ensure proper text conversion please use the common ending for the file type - i.e. .txt for a plain text file. If you do not need annotated MS Word versions of your text turn docx generation off in the user settings - this will speed up submission and analysis!)
After analysis, notification is sent to the call-back address
given in your institution’s administration settings.
Method Submit – submit plain text (Analysis does not start automatically unless turned on in the user's settings. If you do not need annotated MS Word versions of your text turn docx generation off in the user settings - this will speed up submission and analysis!)
After analysis, notification is sent to the call-back address
given in your institution’s administration settings.
Method Retrieve – retrieve plagiarism report data for a document
Method List – list all documents stored for user
Method Check – analyze a document
Method Delete – delete a document (and possibly the corresponding report)
Method GetConfig – retrieve user configuration
Method SetConfig – set user configuration property
Administrative Functions The methods listed below will only work when the username sent with the request belongs to the institution’s administrator for PlagScan. Otherwise an “N/A” error message is returned. Note that the default configuration for new users and the institutional limit for the usage of additional credits as well as billing details etc. can currently not be changed via the API.
Method ListUser – list one or all users belonging to this account (one user in detail or all users with id and username only)
Method AddUser – add a new user for this institution
Method DelUser – delete a user from this institution
Method ConfigUser – change configuration for existing user
Parameter / value details
Retrieve report modes · 0 Retrieve statistics only, such as plagiarism level, number of hits and sources · 1 Retrieve links; to list of possible plagiarism sources; e.g. http://www.plagscan.com/report?6055 and in-document view of possible plagiarism sources; e.g. http://www.plagscan.com/view?6055 · 2 Retrieve XML with data on all possible plagiarism sources · 3 Retrieve annotated Docx document (if available, depending on user configuration) · 4 Retrieve HTML document with annotations · 5 Retrieve HTML report of matches sorted by relevance
List detail level · 0 PlagScan document IDs, user unique IDs, number of words and submission datetime, plus analysis state (0 not carried out, 1 waiting, 2 ongoing, 3 finished, 4 queued) · 1 In addition to the above: Plagiarism level, Filename and Label · 2 In addition to the above: Content preview (first 85 characters)
Configuration properties and values · LANG Set language to 0 English, 1 German, or 2 Spanish · EMAIL Email notification: 0 never, 1 always, 2 only if “red” plagiarism level · DOCX Generate Docx documents: 0 generate and email, 1 generate only, 2 do not generate · AUTO Autostart plagiarism checks: 0 do not start analysis automatically, 1 start analysis automatically as soon as possible · SHARE Share my documents for analysis with (compare to): 0 no one (compare to web sources only), 1 no one (compare to web and my documents), 2 my institution (compare to institution database), 3 general database (compare with general database) · DEL Automatically remove data after: 0 after one week, 1 after four weeks, 2 after six months, 3 never delete automatically
Java: << Hauptseite
Download Java sample code PHP: Download PHP sample code Processing script example: Download PHP processing test call-back script HTML forms: testList testSubmit (document file) testSubmit (plain text) testRetrieve testCheck testDelete testGetConfig testSetConfig testListUser testAddUser testDelUser testConfigUser Test user data: Username: apitest Key: W9fUaSq2vjkXUPMmenlmp3Xqnc1xWPtN Note: NO changes are actually executed when using the test user data! |
| Copyright © PlagScan.com 2012 | Presse | Kontakt & Impressum | AGB & Datenschutz |