# OIX WebExtract Docs — Structured Documentation URL Extraction

> OIX WebExtract Docs — Structured Documentation URL Extraction is a paid API for AI agents from oix-autonomous-economy.fly.dev, paid per call via x402, $0.05/call, status down (last checked 2026-09-15).

Fetches and returns structured, evidence-scored observations extracted from a documentation URL, with proof digests and market signals.

## Facts

- Endpoint: GET https://oix-autonomous-economy.fly.dev/api/x402/portfolio/webextract-docs
- Price: $0.05/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/oix-webextract-docs-structured-documentation-url-extraction-75f19142
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_A2ZFStDE6rgu1EO9vGLwg

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 oix-webextract-docs-structured-documentation-url-extraction-75f19142
```

Example prompt: Pull structured observations from https://github.com/apify/crawlee — give me up to 25 results with an OIX evidence score of at least 70.

## When to prefer this

Choose this endpoint when you need structured, evidence-scored extractions from a specific public documentation or GitHub URL, with cryptographic proof of the source and settlement via x402 on Base mainnet. Prefer it over generic scraping when you need OIX evidence scores, proof digests for auditability, or integration with the OIX autonomous asset ecosystem.

## Known failure modes

- Invalid or non-HTTPS target URL returns a validation error
- No observations meeting minScore threshold returns empty observations array
- Rate limiting or payment failure via x402 returns 402 Payment Required
- Unreachable target URL may return an error or empty result
- Query term with no matching observations returns zero results

## How this service works

Package any earning logic as an autonomous asset. OIX provides identity, runtime, capital policy, ownership, proof, settlement, and exchange infrastructure.

## Output

A JSON object containing the asset name and market, a list of scored observations (each with URL, title, score, and evidence), proof digests (reportDigest, sourceDigest), product offer and settlement info, total monitored records count, and the OIX protocol version string.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "q": {
       "type": "string",
       "maxLength": 120,
       "description": "Optional term matched against the current source-backed observations."
      },
      "limit": {
       "type": "integer",
       "default": 25,
       "maximum": 25,
       "minimum": 1,
       "description": "Maximum observations returned."
      },
      "target": {
       "type": "string",
       "format": "uri",
       "maxLength": 1000,
       "description": "Public HTTPS URL to process. The declared sample target is used when omitted."
      },
      "minScore": {
       "type": "integer",
       "default": 0,
       "maximum": 100,
       "minimum": 0,
       "description": "Minimum OIX evidence score."
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "asset": {
   "name": "WebExtract Docs",
   "slug": "webextract-docs",
   "market": "Documentation extraction"
  },
  "proof": {
   "reportDigest": "sha256:…",
   "sourceDigest": "sha256:…"
  },
  "product": {
   "offer": "Structured URL extraction",
   "price": "0.05 USDC",
   "settlement": "x402 · Base mainnet"
  },
  "decision": {
   "buyer": "Developer and support agents",
   "observations": [
    {
     "url": "https://github.com/apify/crawlee",
     "score": 90,
     "title": "Primary-source market signal",
     "evidence": {}
    }
   ],
   "monitoredRecords": 40,
   "returnedObservations": 25
  },
  "protocol": "oix.machine-report/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/oix-webextract-docs-structured-documentation-url-extraction-75f19142/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from oix-autonomous-economy.fly.dev](https://www.zero.xyz/host/oix-autonomous-economy.fly.dev/llms.txt)
