{"diffs":[{"type":"eq","text":"Lorem ipsum "},{"type":"del","text":"d"},{"type":"add","text":"D"},{"type":"eq","text":"olor "},{"type":"del","text":"sit "},{"type":"eq","text":"amet"}],"html":"\u003cspan\u003eLorem ipsum \u003c/span\u003e\u003cdel style=\"background:#ffe6e6;\"\u003ed\u003c/del\u003e\u003cins style=\"background:#e6ffe6;\"\u003eD\u003c/ins\u003e\u003cspan\u003eolor \u003c/span\u003e\u003cdel style=\"background:#ffe6e6;\"\u003esit \u003c/del\u003e\u003cspan\u003eamet\u003c/span\u003e","cli":"TG9yZW0gaXBzdW0gG1szMW1kG1swbRtbMzJtRBtbMG1vbG9yIBtbMzFtc2l0IBtbMG1hbWV0"}
curl --location --request POST 'https://zylalabs.com/api/5188/text+compare+api/6653/compare+texts' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{
"text1": "Lorem ipsum dolor sit amet",
"text2": "Lorem ipsum Dolor amet"
}'
| 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.
Send two text strings via POST, and get a detailed analysis of their differences in JSON and HTML.
It's a text comparison tool that identifies changes, providing detailed differences between two text strings.
The API receives two text strings and provides a JSON object with detailed differences, and a pre-rendered HTML view.
Version control systems comparing code changes. Document management platforms tracking edits. Educational tools highlighting textual differences.
Beside the number of API calls per month allowed, there are no other limitations.
There are different plans suits everyone including a free trial for small amount of requests, but it’s rate is limit to prevent abuse of the service.
The API uses API keys for authentication. To access the API, include your API key in the request header. The API key is provided upon registration and should be kept secure.
The API returns detailed information about the age and history of a domain, including years, months and days since its creation, as well as expiration and update dates.
The API returns a JSON object containing detailed differences between two text strings, including additions, deletions, and unchanged segments. It also provides a pre-rendered HTML representation of these differences for easy display.
The key fields in the JSON response include "diffs," which is an array of objects detailing the type of change (e.g., "add," "del," "eq") and the corresponding text. The response also includes "html" for visual representation and "cli" for command line output.
The response data is organized into a JSON object with a "diffs" array, where each object specifies the type of change and the text involved. Additionally, the "html" field contains a formatted string for web display, while "cli" provides a command line-friendly output.
The primary parameters for the endpoint are the two text strings to be compared. Users can customize their requests by adjusting the content of these strings to analyze different versions or edits of the text.
Typical use cases include comparing document revisions in editing software, analyzing code changes in version control systems, and educational tools that highlight differences in student submissions or texts.
Users can parse the "diffs" array to programmatically identify specific changes, such as which text was added or deleted. The "html" output can be directly embedded in web applications for visual comparison, while the "cli" output is useful for command line interfaces.
The API employs robust algorithms to accurately detect differences between text strings, ensuring that all modifications, including subtle changes, are captured. Continuous testing and updates help maintain high accuracy levels.
Users can expect a structured output where each change is categorized as "add," "del," or "eq." This consistent format allows for straightforward parsing and analysis, making it easy to integrate the API's output into various applications.
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.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
Service Level:
100%
Response Time:
250ms
Service Level:
100%
Response Time:
263ms
Service Level:
100%
Response Time:
1,571ms
Service Level:
100%
Response Time:
389ms
Service Level:
83%
Response Time:
334ms
Service Level:
100%
Response Time:
2,466ms
Service Level:
100%
Response Time:
212ms
Service Level:
100%
Response Time:
162ms
Service Level:
100%
Response Time:
206ms
Service Level:
100%
Response Time:
731ms
Service Level:
100%
Response Time:
10,448ms
Service Level:
100%
Response Time:
10,154ms
Service Level:
100%
Response Time:
10,831ms
Service Level:
100%
Response Time:
11,307ms
Service Level:
100%
Response Time:
878ms
Service Level:
100%
Response Time:
1,463ms
Service Level:
100%
Response Time:
2,255ms
Service Level:
100%
Response Time:
10,496ms
Service Level:
100%
Response Time:
5,368ms
Service Level:
100%
Response Time:
3,882ms