GET
/v1/diffText Diff
Line-level diff between two text strings.
Part of Text Diff· Rate limits: 30 req/min
Parameters
leftquerystringrequiredOriginal text
rightquerystringrequiredUpdated text
X-SEEKER-KeyheaderstringrequiredYour API Seeker key
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| left | query | string | Yes | Original text |
| right | query | string | Yes | Updated text |
| X-SEEKER-Key | header | string | Yes | Your API Seeker key |
Code examples
cURL
curl -s "https://textdiff.apiseeker.com/v1/diff" \
-H "X-SEEKER-Key: YOUR_API_KEY"Response
JSON
{
"success": true,
"data": {
"changes": [
{
"op": "equal",
"line": "a"
},
{
"op": "remove",
"line": "b"
},
{
"op": "add",
"line": "x"
},
{
"op": "equal",
"line": "c"
}
]
},
"request_id": "req_example"
}Errors
- 400 — Invalid or missing parameters
- 401 — Missing or invalid API key
- 429 — Rate limit exceeded
Try this endpoint
API Playground
Text Diff
Live testing requires an account. Log in or create an API key to send requests. Docs and snippets stay available without login.
GET
textdiff.apiseeker.comhttps://textdiff.apiseeker.com/v1/diffStatus: —Latency: —
Response headers
Log in to run a test and see headers.
Response body
Log in required for live testing.
Generated snippets
cURL
curl -s "https://textdiff.apiseeker.com/v1/diff" \
-H "X-SEEKER-Key: YOUR_API_KEY"