API Documentation
Getting Started
Compare text, documents, images, and spreadsheets programmatically with the Diffchecker API.
https://web.preview.diffchecker.com/api/public/The Diffchecker API provides HTTP endpoints for comparing text, PDF documents, PDF rich text data, images, and Excel spreadsheets. Compute text diffs, document comparisons, structured rich-text diffs, image diffs, and spreadsheet diffs, all with varying output types.
Authentication
There are two ways of interacting with the Diffchecker API:
X-Api-Key header. This will allow you to make as many diffs as your paid plan allows.When both are provided, email gets ignored in favor of the API key. The examples in these docs assume you are authenticating via email.
Rate Limiting
API requests are rate-limited based on your authentication method. Free tier (email) users have lower limits than paid subscribers using an API key. If you exceed the rate limit, the API will return a `429 Too Many Requests` response.
Every public API response includes an `X-Credits-Used` response header. For backwards compatibility, JSON responses also continue to include the same value in the `creditsUsed` response body field.
Some `429` responses are returned for exhausted free or paid diff quotas. Zero-credit failed requests are also throttled separately and may include a `retryAfterSeconds` field in the JSON body.
Resources
You may find the following resources helpful when dealing with PDF, Image, or Excel diffs: