# Invoket Legal Diff Batch

> Invoket Legal Diff Batch is a paid API for AI agents from api.invoket.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Returns word-level diffs of French legal article texts between two dates for a batch of legal code references

## Facts

- Endpoint: POST https://api.invoket.com/legal/diff/batch
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/invoket-legal-diff-batch-b12788d2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5vsmWlBuY5lsjrc2KTmqO

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 invoket-legal-diff-batch-b12788d2 -d '<json body>'
```

Example prompt: Show me what changed in French civil code articles L1234-1 and L5678-2 between January 1 2024 and June 20 2026 — give me the word-level diff so I can see exactly which words were added or removed.

## When to prefer this

Use this endpoint when you need to compare multiple French legal article texts across two specific dates in a single batch call, receiving structured word-level diffs. Prefer this over single-article diff endpoints when processing multiple articles at once to save on per-call costs. Ideal for compliance monitoring, legal audits, or legislative change tracking workflows where precise textual changes matter.

## Known failure modes

- Invalid article code returns error or empty results
- Date range with no version boundary returns changed=false with identical text
- Incomplete coverage (coverage.complete=false) when full text is unavailable
- Payment failure via x402 if USDC balance is insufficient
- Malformed batch input returns 400 error
- Article not found in the legal database returns empty results array

## How this service works

Before your agent re-runs a contract review or due diligence after time has passed: a structured diff of the consolidated text — word-level segments plus a git-style unified patch — for up to 50 French or EU article references, each between its own two dates, in one call, from the official LEGI and EUR-Lex datasets. Covers 12 major French codes and statutes and key EU acts (GDPR, DSA, AI Act, MiCA and more).

## Output

A JSON object containing an array of per-article diff results. Each result includes the article code, from/to dates, from/to version metadata (version ID, etat, date_debut, date_fin), a boolean indicating whether the text changed, word-level diff segments (op: equal/insert/delete plus text), added/removed word counts, a unified diff string, and a coverage.complete flag. Also includes provenance metadata with source, fetched_at, and freshness info.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "refs"
 ],
 "properties": {
  "refs": {
   "type": "array",
   "description": "Array of article references, French ({ code, article, from, to? }) and EU ({ celex or eli, article?, from, to? }) mixed freely, each diffed between its own two dates. Dates use the strict ISO calendar format YYYY-MM-DD (zero-padded), and an item whose 'from' is after its 'to' is rejected with 400 INVALID_RANGE quoting its index rather than billed. Covered corpus — French law (Légifrance LEGI): Code civil, Code du travail, Code de commerce, Code pénal, Code de la consommation, Code général des impôts (CGI), Code de la sécurité sociale, Code monétaire et financier, Code de l'environnement, Code de la propriété intellectuelle, Code des assurances, plus the Data Protection Act (loi 78-17); EU law (EUR-Lex): GDPR, eIDAS, the e-Commerce Directive, the DSM copyright Directive, DSA, DMA, AI Act, MiCA and NIS2"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/invoket-legal-diff-batch-b12788d2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.invoket.com](https://www.zero.xyz/host/api.invoket.com/llms.txt)
