Api Endpoint

x402.hydratrader.ai

Extract fields from a PDF or long document into JSON matching your schema. Every returned field carries a source quote and page number, checked against the document text; fields whose quote isn't found are dropped, not guessed. Input: public PDF/HTML URL or pasted text, up to 40 pages. Use for invoices, spec sheets, RFPs, filings. Not for scanned/image PDFs (no OCR), login/paywalled sources, or financial/legal advice. Errors aren't charged. No API key.

Open interactive test console

Offering

Provider
x402.hydratrader.ai
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
Data
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://x402.hydratrader.ai/v1/document-extract
MIME type
application/json
First seen
2026-10-16T01:52:40.118Z
Last seen
Tags
None supplied

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.3 USDC
Atomic price: 300000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "300000",
    "payTo": "0x55d06e282a699710e03088c218a9e79d2b1616fc"
  }
]

Observed health

Status
Healthy
Latest latency
204 ms
Average latency
725 ms
HTTP status
200
Last checked
Reachability
100% over 14 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "POST",
        "PUT",
        "PATCH"
      ]
    },
    "bodyType": {
      "type": "string",
      "enum": [
        "json",
        "form-data",
        "text"
      ]
    },
    "body": {
      "properties": {
        "source": {
          "type": "object",
          "required": [
            "type"
          ],
          "properties": {
            "type": {
              "type": "string",
              "enum": [
                "text",
                "public_url"
              ]
            },
            "text": {
              "type": "string",
              "maxLength": 160000,
              "description": "Pasted document text (type=text)"
            },
            "url": {
              "type": "string",
              "pattern": "^https?://",
              "description": "Public http(s) PDF, HTML or text URL (type=public_url); ≤10 MB"
            }
          }
        },
        "schema": {
          "type": "object",
          "description": "JSON Schema (type=object) for the record you want; 1–40 top-level properties; nested objects/arrays allowed"
        },
        "instructions": {
          "type": "string",
          "maxLength": 1000,
          "description": "Optional formatting hints (e.g. 'amounts in USD')"
        },
        "pages": {
          "type": "string",
          "description": "Optional PDF page selection like '1-20,25' (≤40 pages; required when the PDF has >40 pages)"
        },
        "client_ref": {
          "type": "string"
        }
      },
      "required": [
        "source",
        "schema"
      ]
    }
  },
  "required": [
    "type",
    "method",
    "bodyType",
    "body"
  ],
  "additionalProperties": false
}

Output schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "body": {
          "properties": {
            "client_ref": {
              "type": "string"
            },
            "instructions": {
              "description": "Optional formatting hints (e.g. 'amounts in USD')",
              "maxLength": 1000,
              "type": "string"
            },
            "pages": {
              "description": "Optional PDF page selection like '1-20,25' (≤40 pages; required when the PDF has >40 pages)",
              "type": "string"
            },
            "schema": {
              "description": "JSON Schema (type=object) for the record you want; 1–40 top-level properties; nested objects/arrays allowed",
              "type": "object"
            },
            "source": {
              "properties": {
                "text": {
                  "description": "Pasted document text (type=text)",
                  "maxLength": 160000,
                  "type": "string"
                },
                "type": {
                  "enum": [
                    "text",
                    "public_url"
                  ],
                  "type": "string"
                },
                "url": {
                  "description": "Public http(s) PDF, HTML or text URL (type=public_url); ≤10 MB",
                  "format": "uri",
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "source",
            "schema"
          ]
        },
        "bodyType": {
          "enum": [
            "json",
            "form-data",
            "text"
          ],
          "type": "string"
        },
        "method": {
          "enum": [
            "POST",
            "PUT",
            "PATCH"
          ],
          "type": "string"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method",
        "bodyType",
        "body"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}