Skip to content
APISeeker
GET/v1/diff

Text Diff

Line-level diff between two text strings.

Part of Text Diff· Rate limits: 30 req/min

Parameters

  • leftquerystringrequired

    Original text

  • rightquerystringrequired

    Updated text

  • X-SEEKER-Keyheaderstringrequired

    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

  • 400Invalid or missing parameters
  • 401Missing or invalid API key
  • 429Rate limit exceeded

Try this endpoint

API Playground

Text Diff

Login required
Live testing requires an account. Log in or create an API key to send requests. Docs and snippets stay available without login.
GETtextdiff.apiseeker.com
https://textdiff.apiseeker.com/v1/diff
Log in to test endpoint
Status: 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"