{"uid":"cap_K3e4FA-jl9sYEScTAx1Dt","slug":"legal-clause-extractor-b369fbcf","name":"Legal Clause Extractor","description":"Extract structured clause data from a legal/contract document (PDF or plain text).","url":"https://legal-clause-extractor.pdfextractapi.workers.dev/extract","method":"POST","headers":{},"bodySchema":{"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"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_wUsZL4DsFb1EsQ5FlnHcx","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts structured clause data from legal contracts or documents provided as PDF or plain text","exampleAgentPrompt":"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?","exampleUseCases":[{"title":"NDA clause breakdown for review","prompt":"I've uploaded an NDA PDF — can you pull out all the structured clauses so I can review the confidentiality and non-compete terms separately?"},{"title":"Contract compliance audit","prompt":"Extract all clauses from this vendor agreement text so I can check which ones relate to liability, indemnification, and termination before we sign."},{"title":"Due diligence document parsing","prompt":"I have a lease agreement as a PDF — can you extract every clause and structure it so our legal team can quickly scan the key obligations and rights?"}],"resultDescription":"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","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:35:45.617Z","isFirstParty":false}