This API uses algorithms that can be used for string similarity comparison such as Levenshtein, Jaro-Winkler and Dice. These algorithms compare the characters or words in two strings and assign a score based on their similarity. For example, the Levenshtein distance algorithm calculates the minimum number of insertions, deletions or substitutions needed to transform one string into another. The Jaro-Winkler distance algorithm calculates a similarity score based on the number of matching characters and the number of transpositions required to transform one string into another.
A Text Similarity API can be used for a variety of purposes, such as data deduplication, record linking and fuzzy matching. For example, in data deduplication, an API can be used to compare two records in a database to determine whether they represent the same entity, such as a customer or a product. In record linking, an API can be used to link records from different data sources that represent the same entity. In fuzzy matching, an API can be used to match text strings that may contain misspellings, typos, or formatting variations.
One of the main advantages of using a Text Similarity API is that it provides high accuracy for string matching. In addition, APIs can be used to compare words quickly and efficiently, making it easier to process data or data streams in real time.The API offers powerful functionality with precision. This makes it easy for your users to find exact measurements and discover the percentage of similar text found in your strings. This allows you to tailor the search results to your specific needs, making this API a flexible and versatile tool for your applications or string-related services.
In summary, the Text Similarity API is a useful tool for comparing text strings and determining their similarity. By using an API, developers can create applications that rely on string similarity comparison, such as data deduplication, logging, and so on.
It will receive parameters and provide you with a JSON.
Data Deduplication: Can be used to identify duplicate records in a database, such as duplicate customer entries or duplicate product listings.
Fuzzy matching: Can be used to match similar text strings, such as names or addresses, even if they contain misspellings or variations.
Record linking: This API can be used to differentiate records from different data sources that represent a similar entity, such as a customer or patient.
Search engine optimization: This can be used to identify duplicate content on a Web site, which can negatively affect search engine rankings.
Fraud detection: Can be used to identify fraudulent activity, such as detecting similar user accounts or transaction patterns.
1 request per second in the free plan.
To use this endpoint all you have to do is insert 2 strings in the parameters.
Get Text Comparison - Endpoint Features
| Object | Description |
|---|---|
string1 |
[Required] |
string2 |
[Required] |
{"string1":"Arun","string2":"Kumar","results":{"jaro-wrinkler":0.48333333333333334,"levenshtein-inverse":0.2,"dice":0}}
curl --location --request GET 'https://zylalabs.com/api/1961/text+similarity+api/1711/get+text+comparison?string1=twitter&string2=twitte' --header 'Authorization: Bearer YOUR_API_KEY'
To use this endpoint all you have to do is insert 2 strings in the parameters.
Get Comparison - Endpoint Features
| Object | Description |
|---|---|
Request Body |
[Required] Json |
{"string1":"Arun","string2":"Kumar","results":{"jaro-wrinkler":0.48333333333333334,"levenshtein-inverse":0.2,"dice":0}}
curl --location --request POST 'https://zylalabs.com/api/1961/text+similarity+api/1712/get+comparison' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{
"string1": "twitter",
"string2": "twitte"
}'
| Header | Description |
|---|---|
Authorization
|
[Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed. |
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
Each endpoint returns a JSON object containing the input strings and a results object with similarity scores calculated using various algorithms, such as Jaro-Winkler, Levenshtein, and Dice.
The key fields in the response data include "string1," "string2," and a "results" object that contains similarity scores for each algorithm used, such as "jaro-winkler," "levenshtein-inverse," and "dice."
The endpoints require two parameters: "string1" and "string2," which are the text strings to be compared. Users can customize their requests by providing different text inputs for comparison.
The response data is organized in a JSON format, with the input strings at the top level and a nested "results" object that contains the similarity scores for each algorithm, making it easy to access and interpret.
Typical use cases include data deduplication to identify duplicate records, fuzzy matching for correcting misspellings, record linking across data sources, and fraud detection by analyzing similar transaction patterns.
Data accuracy is maintained through the use of established algorithms like Levenshtein and Jaro-Winkler, which are designed to provide reliable similarity scores based on character and word comparisons.
Users can expect similarity scores ranging from 0 (no similarity) to 1 (identical strings) for each algorithm. Scores may vary based on the nature of the input strings, such as length and character differences.
Users can utilize the returned data by analyzing the similarity scores to determine how closely related the input strings are, enabling applications like deduplication, record linking, and enhancing search functionalities.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
To obtain your API key, you first need to sign in to your account and subscribe to the API you want to use. Once subscribed, go to your Profile, open the Subscription section, and select the specific API. Your API key will be available there and can be used to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
If you don’t cancel before the 7th day, your free trial will end automatically and your subscription will switch to a paid plan under the same plan you originally subscribed to, meaning you will be charged and gain access to the API calls included in that plan.
The free trial ends when you reach 50 API requests or after 7 days, whichever comes first.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes, we offer a 7-day free trial that allows you to make up to 50 API calls at no cost, so you can test our APIs without any commitment.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
Service Level:
100%
Response Time:
542ms
Service Level:
100%
Response Time:
308ms
Service Level:
100%
Response Time:
393ms
Service Level:
100%
Response Time:
162ms
Service Level:
100%
Response Time:
820ms
Service Level:
100%
Response Time:
393ms
Service Level:
100%
Response Time:
250ms
Service Level:
100%
Response Time:
388ms
Service Level:
100%
Response Time:
207ms
Service Level:
100%
Response Time:
316ms
Service Level:
100%
Response Time:
2,244ms
Service Level:
100%
Response Time:
304ms
Service Level:
100%
Response Time:
1,873ms
Service Level:
100%
Response Time:
600ms
Service Level:
100%
Response Time:
340ms
Service Level:
100%
Response Time:
1,527ms
Service Level:
100%
Response Time:
466ms
Service Level:
100%
Response Time:
254ms
Service Level:
100%
Response Time:
83ms
Service Level:
100%
Response Time:
438ms