Bestseller
Text Processing NLP Machine Learning
Text Similarity Calculator
Calculate semantic similarity between two text contents using advanced NLP deep learning model, returning a similarity score between 0 and 1
Data & API Features
Deep learning-based semantic similarity analysis;
Powered by ELECTRA-based Chinese semantic model;
Returns precise similarity score between 0 and 1;
Supports both Chinese and English text comparison;
Ideal for plagiarism detection and content deduplication;
Full API support for HTTPS (TLS v1.0 / v1.1 / v1.2 / v1.3);
Fully compatible with Apple ATS;
Nationwide multi-node CDN deployment;
Ultra-fast response, API interface load balancing built with multiple servers;
Perfect for search engines, recommendation systems, and content moderation.

Annual Subscription
$149$299
Try it for free!
Sign In Sign in to get a trial key and test all APIs.
Secure payment by Stripe
API Document
HTTP Protocol:HTTPS
HTTP Method:POST
HTTP Endpoint:https://api.gugudata.io/v1/text/similarity
Response Type:application/json; charset=utf-8
DEMO Endpoint:https://api.gugudata.io/v1/text/similarity/demo
Live Demo:Try Interactive Demo
API Request Parameters
| Name | Type | Is Required | Default Value | Remark |
|---|---|---|---|---|
| appkey | string | true | YOUR_APPKEY | API key obtained after payment, passed as query parameter |
| content1 | string | true | First text content for similarity comparison | |
| content2 | string | true | Second text content for similarity comparison |
API Response Parameters
| Name | Type | Remark |
|---|---|---|
| dataStatus | object | Response status information |
| dataStatus.requestParameter | string | Echo of request parameters |
| dataStatus.statusCode | integer | Custom status code (100 = success) |
| dataStatus.statusDescription | string | Status description message |
| dataStatus.responseDateTime | string | Server response timestamp |
| dataStatus.dataTotalCount | integer | Total data count (usually 1 for similarity result) |
| data | object | Similarity calculation result |
| data.similarity | string | Similarity score between 0 and 1, where 1 means identical and 0 means completely different |
API Response Status Codes
| Status Code | Explanation of Status Code | Remarks |
|---|---|---|
| 200 | API responding normally | For business status codes, see below under API Custom Status Codes. |
| 400 | Parameter error | |
| 402 | APPKEY error | Please check if the APPKEY provided is the one obtained from the developer center. |
| 403 | Account overdue | Please pay attention to the E-mail reminders regarding order expiration. |
| 429 | Request rate limited | Requests cannot exceed 5 times per second. The CDN layer intelligently determines based on the frequency of IP requests. General high-frequency requests do not trigger this status code. |
| 500 | API response error |



