About this endpoint
What it does
Computes a similarity score between two input strings and returns the score as a floating-point number between 0 and 1.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| source | String | Yes | First string to compare. |
| target | String | Yes | Second string to compare. |
Response
Returns a JSON object with a data number field — a similarity score rounded to 3 decimal places. The value is constrained to the range 0 to 1.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| data | Number | Yes | Similarity score rounded to 3 decimal places. Minimum 0, maximum 1. |