text

Diff two strings (line, word, or char)

LCS-based diff. Returns structured changes (+/-/=), git-style unified diff, and a similarity score. Tokens are split by line by default; pass mode=word or mode=char for finer granularity.

post/text-diff.php

Request

  • Base URL: https://mate.tools/api/v1
  • URL: https://mate.tools/api/v1/text-diff.php
  • Auth: none declared

Request body

astring required
bstring required
mode'line' | 'word' | 'char'
contextinteger

Response

Success

Changes

No recorded changes to this operation across all 1 revision of this API.