{"uid":"cap_NnjT7fzGEpAf0Mj_zPh75","slug":"bounty-engineer-document-structure-scan-85c5ccc3","name":"Bounty Engineer Document Structure Scan","description":"Machine-buyable infrastructure for autonomous agents: API cost routing, margin optimization, funding-rate data, webpage extraction, result verification, spend controls, retry planning, state, tender search and GitHub bounty intelligence.","url":"https://bounty-engineer-x402-prod.onrender.com/v1/document-structure-scan?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string"}}},"responseSchema":{"type":"json","example":{"ok":true,"mode":"document_structure_scan","dates":[{"value":"2026-10-31","offset":56}],"lines":3,"amounts":[{"value":"€500","offset":48}],"headings":[{"line":1,"text":"SERVICE AGREEMENT"},{"line":2,"text":"1. Payment"}],"characters":67,"limitations":["Structural extraction only; not legal advice and not a determination of rights, enforceability or risk."],"document_sha256":"38a40d516335e424fbfa80cd06efc3b9a73e50abc6e46cc7e026f865a3498525","obligation_markers":[{"term":"shall","offset":38}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_HRD4vUzvkANC6hw5wiuNT","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts structural elements from document text, including headings, dates, amounts, obligation markers, and character/line counts with offsets.","exampleAgentPrompt":"Scan this service agreement text and pull out all the headings, dates, payment amounts, and any obligation words like 'shall' — I need to know the document structure before I review it properly: 'SERVICE AGREEMENT\\n1. Payment\\nContractor shall be paid €500 by 2026-10-31.'","exampleUseCases":[{"title":"Contract obligation detection","prompt":"I need to review this vendor contract before signing — can you scan it and pull out all the headings, any dates, dollar amounts, and places where it says 'shall' or similar obligation language? Here's the text: 'VENDOR AGREEMENT\\n1. Services\\nVendor shall deliver software by 2025-03-01.\\n2. Payment\\nClient shall pay $10,000 upon delivery.'"},{"title":"Invoice date and amount extraction","prompt":"I've got a batch of invoice text and I need to extract all the dates and monetary amounts with their positions in the document — can you run this through the document structure scanner? Text: 'INVOICE #1042\\nDate: 2025-06-15\\nAmount Due: €1,200\\nDue Date: 2025-07-15'"},{"title":"Document integrity fingerprinting","prompt":"Can you scan this agreement text and give me its SHA-256 hash along with the structural breakdown? I want to verify the document hasn't changed later. Text: 'MUTUAL NDA\\n1. Confidentiality\\nBoth parties shall keep all shared information confidential until 2027-12-31.'"}],"resultDescription":"Returns a JSON object with: ok status, mode label, an array of detected dates with values and character offsets, an array of amounts with values and offsets, an array of headings with line numbers and text, an array of obligation markers (e.g. 'shall') with offsets, total line and character counts, a SHA-256 hash of the document, and a limitations disclaimer noting this is structural extraction only and not legal advice.","failureModes":["Empty or missing 'text' field returns error or empty structure arrays","Extremely long documents may hit processing limits or timeout","Non-textual or binary input may produce empty results with no meaningful structure","Ambiguous date or amount formats may be missed or incorrectly parsed","Network timeout on the hosted Render.com infrastructure during high load"],"whenToPreferThis":"Choose this endpoint when you need lightweight structural extraction from a document — especially to detect dates, monetary amounts, obligation language, and section headings with character-level offsets — without needing full NLP understanding or legal interpretation. It is well-suited for pre-processing contracts or agreements before deeper review, and for generating a SHA-256 fingerprint of document content for integrity tracking. Prefer alternatives if you need semantic understanding, entity resolution, or legal risk assessment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T12:37:57.930Z","isFirstParty":false,"canonicalSlug":"bounty-engineer-document-structure-scan-85c5ccc3"}