Text Similarity API

POST

Score how closely two pieces of text match.

Text Similarity compares two text strings and calculates their percentage match score. It returns case-insensitive and case-sensitive similarity scores plus the count and proportion of differing words.

Try it — live request, no key required

Request
POSTapi.apiverve.com/v1/textsimilarity
Body
Verification
Format

No key required to try it. Get a key to use it in your app.

Example
{
  "status": "ok",
  "error": null,
  "data": {
    "simiarity": 45.83,
    "similarityCaseSensitive": 47.22,
    "difference": {
      "count": 7,
      "percentage": 58.33
    }
  }
}

About the Text Similarity API

Text Similarity works by comparing the two texts and calculating the similarity score based on various factors. It returns the similarity score in a structured format.

What people use it for

Plagiarism Screening
Educators check student assignment submissions against reference essays to catch paraphrased or near-identical passages using case-insensitive similarity scores.
Catalog Deduplication
To merge duplicate inventory listings, marketplace operators evaluate difference percentages across submitted product titles.
Support Ticket Clustering
Helpdesk systems group incoming user inquiries with existing knowledge base answers when match percentages cross predefined thresholds.
Translation Revision Tracking
When editors revise translated copy, localization teams compute case-sensitive similarity to track how much phrasing changed between drafts.

Ways to call it

One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.

JSON
Default REST response
XML
Markup format
YAML
Human-readable
CSV
Tabular export
Beta
GraphQL
Query language
New
MCP
For AI agents

Other ways to use Text Similarity

Same data, same APIVerve account, same credit balance — one key works on all of them.

Questions.

Common questions about the Text Similarity API.

Read the docs
What is the maximum length of text I can compare?
Each text string must be under 1,000 characters. This makes Text Similarity well suited for comparing sentences, headlines, user submissions, or short paragraphs against each other.
What metrics does the comparison return?
The API returns two matching values: a normalized similarity score between 0 and 1, and a difference percentage between 0 and 100. You can use either value to set automated matching thresholds in your code.
Can I compare one text against multiple candidates in one call?
No. Each request accepts exactly two text parameters to compare as a single pair. To check a text against a list of candidates, send each comparison as an individual request.
What should I do if my text exceeds 1,000 characters?
Both input fields strictly require fewer than 1,000 characters. For longer documents or articles, split the content into individual paragraphs or sections before sending each pair to the endpoint.
What would 20,000 text comparisons a month cost me?
Running 20,000 comparisons uses 40,000 credits, which uses a fifth of the Starter plan's 200,000 credit allowance. That works out to about $0.30 per 1,000 comparisons, or roughly $0.0003 per call. You can also test the endpoint with 100 free comparisons every month.

Ready to build with Text Similarity? Start with 200 free credits — one key unlocks all 300+ APIs.

Explore the catalog

300+ APIs on the same key and the same response shape.

Browse all APIs