Skip to content
APISeeker
Free API30 req/minDeveloper Tools

Text Diff

Compare left and right text and return added/removed/unchanged lines.

By RSM DevOps

Public endpoint

GETtextdiff.apiseeker.com
/v1/diff

Auth: X-SEEKER-Key

Endpoint

Pass left and right as query parameters.

Method

GET

Path

/v1/diff

Full URL

https://textdiff.apiseeker.com/v1/diff

Authentication

Send X-SEEKER-Key on every request. Free tools still require a valid APISeeker key — no auth bypass.

Parameters

  • leftquerystringrequired

    Original text

  • rightquerystringrequired

    Updated text

Request example

cURL
curl -s "https://textdiff.apiseeker.com/v1/diff?left=a%0Ab%0Ac&right=a%0Ax%0Ac" \
  -H "X-SEEKER-Key: YOUR_API_KEY"

Response example

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 & limits

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

Rate limit: 30 req/min

Playground

Live playground

Text Diff

Login required

Sign in to send live requests. Docs and URL preview stay open. Log in

GETRequest URL
https://textdiff.apiseeker.com/v1/diff?left=a%0Ab%0Ac&right=a%0Ax%0Ac
Log in to test endpoint
Status: Latency:

Response

Response will appear here after you send a request.

Related tools

FAQ