Text Difference Comparison API

Text Difference Comparison API

Text Difference Comparison API allows you to easily compare two strings or texts and view the differences between them. The API returns a JSON for easy processing and also provides pre-rendered results for HTML and CLI output

API description

About the API:

Our Text Difference Comparison API is a powerful tool for comparing two strings or texts and identifying the differences between them. The API is designed to be easy to use and provides a variety of output options to suit your needs.

One of the key features of the API is its ability to return the results in an easy-to-process JSON format. This makes it simple to integrate the API into your existing applications and workflow. Additionally, the API also provides pre-rendered results for HTML and CLI output, giving you the flexibility to display the results in the format that works best for you.

The API compares two inputted texts and returns a JSON object that contains the differences between the two strings. The returned JSON contains the original strings with the differences highlighted.

The Text Difference Comparison API is designed to be highly accurate and efficient, making it ideal for a wide range of applications. Whether you're working on a software development project, a research project, or simply need to compare two documents, this API is an excellent choice. It can be used to compare different versions of a document, compare original and translated text, or even to compare two different sources of information.

Overall, our Text Difference Comparison API is a versatile and powerful tool that can help you quickly and easily compare two strings or texts and identify the differences between them. With its easy-to-use JSON output and pre-rendered results for HTML and CLI output, it's the perfect choice for any project that requires text comparison.

 

What this API receives and what your API provides (input/output)?

Pass two text strings and receive the difference recognized between them.

 

What are the most common uses cases of this API?

  1. Version control for software development: Developers can use the API to compare different versions of code and quickly identify any changes or updates.

  2. Quality assurance for translated text: The API can be used to compare the original text with its translation, and identify any errors or inconsistencies in the translation.

  3. Plagiarism detection: The API can be used to compare student papers or articles and identify any instances of plagiarism.

  4. Content comparison for SEO: The API can be used to compare the content of two websites and identify any similarities or duplicates, which can be useful for SEO and avoiding penalties.

  5. Document comparison for legal or financial industries: The API can be used to compare contracts, legal documents, or financial statements and identify any changes or discrepancies.

  6. News comparison: The API can be used to compare news articles from different sources to identify similarities, or to detect any bias or manipulation in the reporting.

 

Are there any limitations to your plans?

Besides API call limitations per month, there is a limitation of:

Free Plan: 10 requests per day. Up to 1000 characters. 

Basic Plan: Up to 50,000 characters.  

Pro Plan: Up to 100,000 characters. 

API Documentation

Endpoints


Compare 2 strings/texts and get the differences between them. The API provides both an easy-to-process JSON to work with and a pre-rendered result for HTML and CLI output.

**Diff-Types:** * `eq` = text passage is equal * `add` = text passage was added in text2 * `del` = text passage was removed in text2



                                                                            
POST https://zylalabs.com/api/1157/text+difference+comparison+api/1016/compare
                                                                            
                                                                        

Compare - Endpoint Features
Object Description
Request Body [Required] Json
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"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"}
                                                                                                                                                                                                                    
                                                                                                    

Compare - CODE SNIPPETS


curl --location --request POST 'https://zylalabs.com/api/1157/text+difference+comparison+api/1016/compare' --header 'Authorization: Bearer YOUR_API_KEY' 

    

API Access Key & Authentication

After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Text Difference Comparison API REST API, simply include your bearer token in the Authorization header.

Headers

Header Description
Authorization [Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.


Simple Transparent Pricing

No long term commitments. One click upgrade/downgrade or cancellation. No questions asked.

🚀 Enterprise
Starts at $10,000/Year

  • Custom Volume
  • Dedicated account manager
  • Service-level agreement (SLA)

Customer favorite features

  • ✔︎ Only Pay for Successful Requests
  • ✔︎ Free 7-Day Trial
  • ✔︎ Multi-Language Support
  • ✔︎ One API Key, All APIs.
  • ✔︎ Intuitive Dashboard
  • ✔︎ Comprehensive Error Handling
  • ✔︎ Developer-Friendly Docs
  • ✔︎ Postman Integration
  • ✔︎ Secure HTTPS Connections
  • ✔︎ Reliable Uptime

Zyla API Hub is, in other words, an API MarketPlace. An all-in-one solution for your developing needs. You will be accessing our extended list of APIs with only your user. Also, you won't need to worry about storing API keys, only one API key for all our products is needed.

Prices are listed in USD. We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world’s most reliable payment companies. If you have any trouble with paying by card, just contact us at [email protected]

Sometimes depending on the bank's fraud protection settings, a bank will decline the validation charge we make when we attempt to be sure a card is valid. We recommend first contacting your bank to see if they are blocking our charges. If more help is needed, please contact [email protected] and our team will investigate further

Prices are based on a recurring monthly subscription depending on the plan selected — plus overage fees applied when a developer exceeds a plan’s quota limits. In this example, you'll see the base plan amount as well as a quota limit of API requests. Be sure to notice the overage fee because you will be charged for each additional request.

Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.

Just go to the pricing page of that API and select the plan that you want to upgrade to. You will only be charged the full amount of that plan, but you will be enjoying the features that the plan offers right away.

Yes, absolutely. If you want to cancel your plan, simply go to your account and cancel on the Billing page. Upgrades, downgrades, and cancellations are immediate.

You can contact us through our chat channel to receive immediate assistance. We are always online from 9 am to 6 pm (GMT+1). If you reach us after that time, we will be in contact when we are back. Also you can contact us via email to [email protected]

 Service Level
100%
 Response Time
2,829ms

Category:

NLP

Tags:


Related APIs