# Bounty Engineer Document Structure Scan

> Bounty Engineer Document Structure Scan is a paid API for AI agents from bounty-engineer-x402-prod.onrender.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-12).

Extracts structural elements from document text, including headings, dates, amounts, obligation markers, and character/line counts with offsets.

## Facts

- Endpoint: POST https://bounty-engineer-x402-prod.onrender.com/v1/document-structure-scan?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bounty-engineer-document-structure-scan-85c5ccc3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NnjT7fzGEpAf0Mj_zPh75

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 bounty-engineer-document-structure-scan-85c5ccc3 -d '<json body>'
```

Example prompt: 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.'

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bounty-engineer-document-structure-scan-85c5ccc3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from bounty-engineer-x402-prod.onrender.com](https://www.zero.xyz/host/bounty-engineer-x402-prod.onrender.com/llms.txt)
