Api Endpoint

d21 pdf_extract

PDF Extract ($0.04): deterministic PDF -> per-page plain text + metadata, no OCR, no table extraction, no third-party PDF/OCR vendor -- text pulled directly from the PDF's own embedded text objects via pdfjs-dist (Mozilla's own PDF.js, Apache-2.0) running in this process. Body { url } (public http(s) PDF link, SSRF-hardened fetch) OR { pdf_base64 } (raw base64 bytes), not both. Max 10 MiB, max 40 pages. Check free /v1/pdf_extract/availability first.

Open interactive test console

Offering

Provider
draconic21-x402-api.onrender.com
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://draconic21-x402-api.onrender.com/v1/pdf_extract
MIME type
application/json
First seen
2026-10-16T01:50:32.458Z
Last seen
Tags
pdf-extraction, text-extraction, document-parsing, pdf-to-text, pdf-parsing

Payment pricing

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

Payment option 1
0.04 USDC
Atomic price: 40000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Payment option 2
0.04 USDC
Atomic price: 40000 · Network: solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "40000",
    "payTo": "0x1520Ef5530AA71350049BE2903Cf078B38c40AE5"
  },
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "amount": "40000",
    "payTo": "6mc4GhWFyNcMh7gAVDWrKeYjDqFtEKWKQuZ9RTw2VkfM"
  }
]

Observed health

Status
Healthy
Latest latency
135 ms
Average latency
308 ms
HTTP status
204
Last checked
Reachability
100% over 9 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"
      ]
    },
    "bodyType": {
      "type": "string",
      "enum": [
        "json",
        "form-data",
        "text"
      ]
    },
    "body": {
      "type": "object",
      "properties": {
        "url": {
          "type": "string",
          "description": "Public http(s) link to a PDF. Mutually exclusive with pdf_base64."
        },
        "pdf_base64": {
          "type": "string",
          "description": "Raw PDF bytes, base64-encoded. Mutually exclusive with url. Max 10 MiB decoded."
        },
        "max_pages": {
          "type": "integer",
          "description": "Optional; defaults to 40 (the route's own cap). Capped at 40 regardless of the value passed."
        }
      },
      "required": [],
      "additionalProperties": true
    }
  },
  "required": [
    "type",
    "method",
    "bodyType",
    "body"
  ],
  "additionalProperties": false
}

Output schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string"
    },
    "example": {
      "type": "object",
      "properties": {
        "document_sha256": {
          "type": "string"
        },
        "page_count": {
          "type": "integer"
        },
        "pages_read": {
          "type": "integer"
        },
        "engine": {
          "type": "string"
        },
        "pages": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "page": {
                "type": "integer"
              },
              "text": {
                "type": "string"
              },
              "char_count": {
                "type": "integer"
              },
              "has_text": {
                "type": "boolean"
              }
            }
          }
        },
        "word_count": {
          "type": "integer"
        },
        "metadata": {
          "type": "object",
          "properties": {
            "title": {
              "type": [
                "string",
                "null"
              ]
            },
            "author": {
              "type": [
                "string",
                "null"
              ]
            },
            "producer": {
              "type": [
                "string",
                "null"
              ]
            },
            "creator": {
              "type": [
                "string",
                "null"
              ]
            },
            "creation_date": {
              "type": [
                "string",
                "null"
              ]
            },
            "pdf_version": {
              "type": [
                "string",
                "null"
              ]
            }
          }
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "caveats": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "document_sha256",
        "page_count",
        "pages",
        "caveats"
      ]
    }
  },
  "required": [
    "type"
  ]
}