{"uid":"cap_5vsmWlBuY5lsjrc2KTmqO","slug":"invoket-legal-diff-batch-b12788d2","name":"Invoket Legal Diff Batch","description":"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).","url":"https://api.invoket.com/legal/diff/batch","method":"POST","headers":{},"bodySchema":{"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"}}},"responseSchema":{"type":"object"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_s2YTgToIgQ9nk0w_xf5Q7","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns word-level diffs of French legal article texts between two dates for a batch of legal code references","exampleAgentPrompt":"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.","exampleUseCases":null,"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:34:49.621Z","isFirstParty":false}