# quartermaster.surewhynot.app – Line-Level Diff

> quartermaster.surewhynot.app – Line-Level Diff is a paid API for AI agents from quartermaster.surewhynot.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Returns a compact line-level diff between two text strings, showing what changed between a 'before' and 'after' version.

## Facts

- Endpoint: GET https://quartermaster.surewhynot.app/v1/diff
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/quartermaster-surewhynot-app-line-level-diff-a6652fe5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4W4aVq8UOphrfIsgzrhIN

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability quartermaster-surewhynot-app-line-level-diff-a6652fe5
```

Example prompt: Show me a line-by-line diff between these two versions of my README — before: 'Hello world
This is v1
Goodbye' and after: 'Hello world
This is v2
New line added
Goodbye'.

## When to prefer this

Use this endpoint when you need a quick, cheap ($0.001) line-level diff between two text strings and don't want to run a local diff tool. Ideal for AI agents that need to summarize changes between document versions, config files, or code snippets on the fly without infrastructure overhead.

## Known failure modes

- Missing 'before' or 'after' query parameter returns an error
- Extremely large text inputs may be truncated or rejected
- Non-UTF-8 or binary content may produce unexpected diff output
- Empty strings for both inputs return an empty or trivial diff

## How this service works

Compact line-level diff between two texts.

## Output

A compact line-level diff indicating which lines were added, removed, or unchanged between the 'before' and 'after' text inputs, returned as structured JSON.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "before",
      "after"
     ],
     "properties": {
      "after": {
       "type": "string"
      },
      "before": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/quartermaster-surewhynot-app-line-level-diff-a6652fe5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from quartermaster.surewhynot.app](https://www.zero.xyz/host/quartermaster.surewhynot.app/llms.txt)
