# Autonomy API Network Text Diff

> Autonomy API Network Text Diff is a paid API for AI agents from autonomy-api-network.onrender.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Compares two text or HTML snapshots and returns a structured diff showing additions, removals, and a similarity score.

## Facts

- Endpoint: POST https://autonomy-api-network.onrender.com/v1/text-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/autonomy-api-network-text-diff-2ec52c14
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GpJlkEvOaftifHix0z98n

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 autonomy-api-network-text-diff-2ec52c14 -d '<json body>'
```

Example prompt: Compare these two versions of the product description and tell me exactly what was added or removed: before: 'Free shipping on orders over $50. Returns accepted within 30 days.' after: 'Free shipping on all orders. No returns accepted.'

## When to prefer this

Use this endpoint when you need to programmatically compare two versions of text or HTML content and get structured output identifying exactly what changed — ideal for change detection pipelines, content monitoring, document revision tracking, or auditing webpage updates. Prefer it over manual diffing or generic LLM comparisons when you need precise, structured addition/removal output rather than a prose summary.

## Known failure modes

- Missing 'before' or 'after' field returns a 400 validation error
- Extremely large text payloads may time out or exceed size limits
- Non-UTF-8 encoded content may cause parsing errors
- Payment failure via x402 protocol returns 402 Payment Required

## How this service works

Compare two text or HTML snapshots and return additions, removals, and similarity.

## Output

A structured response containing the additions (new content in 'after' not present in 'before'), removals (content in 'before' not present in 'after'), and a similarity score reflecting how close the two inputs are.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "after": {
   "type": "string"
  },
  "before": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "changed": true,
   "addedLines": 1,
   "similarity": 0,
   "removedLines": 1
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/autonomy-api-network-text-diff-2ec52c14/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from autonomy-api-network.onrender.com](https://www.zero.xyz/host/autonomy-api-network.onrender.com/llms.txt)
