# Legal Clause Extractor

> Legal Clause Extractor is a paid API for AI agents from legal-clause-extractor.pdfextractapi.workers.dev, paid per call via x402, $0.03/call, status unknown (last checked 2026-09-15).

Extracts structured clause data from legal contracts or documents provided as PDF or plain text

## Facts

- Endpoint: POST https://legal-clause-extractor.pdfextractapi.workers.dev/extract
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/legal-clause-extractor-b369fbcf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_K3e4FA-jl9sYEScTAx1Dt

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 legal-clause-extractor-b369fbcf -d '<json body>'
```

Example prompt: Can you extract all the structured clauses from this vendor contract PDF — I need to see each clause type and its content broken out clearly?

## When to prefer this

Use this endpoint when you need to programmatically decompose a contract or legal document into discrete, labeled clauses. It is ideal for due diligence workflows, contract review automation, or compliance audits where structured clause-level data is required. Prefer this over general-purpose PDF extraction when the document is explicitly legal or contractual in nature and you need clause-level granularity.

## Known failure modes

- Malformed or password-protected PDF may fail to parse
- Plain text input that lacks clear clause structure may produce incomplete results
- Very large documents may exceed processing limits
- Unsupported file format returns an error
- Network or worker timeout for large PDFs

## How this service works

Extract structured clause data from a legal/contract document (PDF or plain text).

## Output

A structured breakdown of clauses found in the legal document, including clause types and their textual content extracted from the provided PDF or plain text input

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "properties": {
      "file": {
       "type": "string",
       "format": "binary"
      },
      "text": {
       "type": "string"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "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/legal-clause-extractor-b369fbcf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from legal-clause-extractor.pdfextractapi.workers.dev](https://www.zero.xyz/host/legal-clause-extractor.pdfextractapi.workers.dev/llms.txt)
