Skip to main content
POST
https://plagiarism.api.pangram.com
Plagiarism Detection
curl --request POST \
  --url https://plagiarism.api.pangram.com/ \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "text": "<string>"
}
'
{
  "text": "<string>",
  "plagiarism_detected": true,
  "plagiarized_content": [
    {
      "source_url": "<string>",
      "matched_text": "<string>",
      "similarity_score": 123
    }
  ],
  "total_sentences": 123,
  "plagiarized_sentences": 123,
  "percent_plagiarized": 123
}

POST /

Check text for potential plagiarism by comparing it against a vast database of online content.
POST https://plagiarism.api.pangram.com

Request

text
string
required
The input text to check for plagiarism.

Response

text
string
The input text that was checked.
plagiarism_detected
boolean
Whether plagiarism was detected in the text.
plagiarized_content
array
A list of detected plagiarized content, including source URLs and matched text.
total_sentences
integer
Total number of sentences in the input text.
plagiarized_sentences
integer
Number of sentences that were detected as plagiarized.
percent_plagiarized
float
of the text that was detected as plagiarized.

Example

curl -X POST https://plagiarism.api.pangram.com \
  -H "Content-Type: application/json" \
  -H "x-api-key: your_api_key_here" \
  -d '{
    "text": "The text to check for plagiarism"
  }'
Example Response
{
  "text": "The text to check for plagiarism",
  "plagiarism_detected": true,
  "plagiarized_content": [
    {
      "source_url": "https://example.com/source",
      "matched_text": "The text to check for plagiarism",
      "similarity_score": 0.95
    }
  ],
  "total_sentences": 1,
  "plagiarized_sentences": 1,
  "percent_plagiarized": 100.0
}