{
  "x402Version": 2,
  "id": 36097,
  "slug": "36097",
  "resource": "https://draconic21-x402-api.onrender.com/v1/pdf_extract",
  "description": "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.",
  "type": "http",
  "serviceName": "d21 pdf_extract",
  "resourceType": "Monitoring",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x1520Ef5530AA71350049BE2903Cf078B38c40AE5",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "40000",
      "amountUsd": 0.04,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "6mc4GhWFyNcMh7gAVDWrKeYjDqFtEKWKQuZ9RTw2VkfM",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "40000",
      "amountUsd": 0.04,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "caveats": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "document_sha256": {
            "type": "string"
          },
          "engine": {
            "type": "string"
          },
          "metadata": {
            "properties": {
              "author": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "creation_date": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "creator": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "pdf_version": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "producer": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "title": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "type": "object"
          },
          "page_count": {
            "type": "integer"
          },
          "pages": {
            "items": {
              "properties": {
                "char_count": {
                  "type": "integer"
                },
                "has_text": {
                  "type": "boolean"
                },
                "page": {
                  "type": "integer"
                },
                "text": {
                  "type": "string"
                }
              },
              "type": "object"
            },
            "type": "array"
          },
          "pages_read": {
            "type": "integer"
          },
          "warnings": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "word_count": {
            "type": "integer"
          }
        },
        "required": [
          "document_sha256",
          "page_count",
          "pages",
          "caveats"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "url": "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "caveats": [
              "Embedded-text extraction only -- scanned/image-only PDFs return empty page text (no OCR)."
            ],
            "document_sha256": "3df79d34abbca99308e79cb94461c1893582604d68329a41fd4bec1885e6adb4",
            "engine": "pdfjs-dist (Mozilla PDF.js, Apache-2.0) — no OCR, no table extraction, no third-party PDF …",
            "page_count": 1,
            "pages": [
              {
                "char_count": 14,
                "has_text": true,
                "page": 1,
                "text": "Dummy PDF file"
              }
            ]
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": true,
                "properties": {
                  "max_pages": {
                    "description": "Optional; defaults to 40 (the route's own cap). Capped at 40 regardless of the value passed.",
                    "type": "integer"
                  },
                  "pdf_base64": {
                    "description": "Raw PDF bytes, base64-encoded. Mutually exclusive with url. Max 10 MiB decoded.",
                    "type": "string"
                  },
                  "url": {
                    "description": "Public http(s) link to a PDF. Mutually exclusive with pdf_base64.",
                    "type": "string"
                  }
                },
                "required": [],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "caveats": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "document_sha256": {
                    "type": "string"
                  },
                  "engine": {
                    "type": "string"
                  },
                  "metadata": {
                    "properties": {
                      "author": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "creation_date": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "creator": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "pdf_version": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "producer": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "title": {
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "type": "object"
                  },
                  "page_count": {
                    "type": "integer"
                  },
                  "pages": {
                    "items": {
                      "properties": {
                        "char_count": {
                          "type": "integer"
                        },
                        "has_text": {
                          "type": "boolean"
                        },
                        "page": {
                          "type": "integer"
                        },
                        "text": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "pages_read": {
                    "type": "integer"
                  },
                  "warnings": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "word_count": {
                    "type": "integer"
                  }
                },
                "required": [
                  "document_sha256",
                  "page_count",
                  "pages",
                  "caveats"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "pdf-extraction",
    "text-extraction",
    "document-parsing",
    "pdf-to-text",
    "pdf-parsing",
    "bazaar"
  ],
  "sourceHost": "draconic21-x402-api.onrender.com",
  "lastUpdated": "2026-10-08T19:56:19.975Z",
  "quality": {
    "calls30d": 2,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-08T19:56:19.643Z"
  },
  "metadata": {
    "serviceName": "d21 pdf_extract",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "url": "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "caveats": [
                "Embedded-text extraction only -- scanned/image-only PDFs return empty page text (no OCR)."
              ],
              "document_sha256": "3df79d34abbca99308e79cb94461c1893582604d68329a41fd4bec1885e6adb4",
              "engine": "pdfjs-dist (Mozilla PDF.js, Apache-2.0) — no OCR, no table extraction, no third-party PDF …",
              "page_count": 1,
              "pages": [
                {
                  "char_count": 14,
                  "has_text": true,
                  "page": 1,
                  "text": "Dummy PDF file"
                }
              ]
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": true,
                  "properties": {
                    "max_pages": {
                      "description": "Optional; defaults to 40 (the route's own cap). Capped at 40 regardless of the value passed.",
                      "type": "integer"
                    },
                    "pdf_base64": {
                      "description": "Raw PDF bytes, base64-encoded. Mutually exclusive with url. Max 10 MiB decoded.",
                      "type": "string"
                    },
                    "url": {
                      "description": "Public http(s) link to a PDF. Mutually exclusive with pdf_base64.",
                      "type": "string"
                    }
                  },
                  "required": [],
                  "type": "object"
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "caveats": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "document_sha256": {
                      "type": "string"
                    },
                    "engine": {
                      "type": "string"
                    },
                    "metadata": {
                      "properties": {
                        "author": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "creation_date": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "creator": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "pdf_version": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "producer": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "title": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "type": "object"
                    },
                    "page_count": {
                      "type": "integer"
                    },
                    "pages": {
                      "items": {
                        "properties": {
                          "char_count": {
                            "type": "integer"
                          },
                          "has_text": {
                            "type": "boolean"
                          },
                          "page": {
                            "type": "integer"
                          },
                          "text": {
                            "type": "string"
                          }
                        },
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "pages_read": {
                      "type": "integer"
                    },
                    "warnings": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "word_count": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "document_sha256",
                    "page_count",
                    "pages",
                    "caveats"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "draconic21-x402-api.onrender.com",
    "manifest_name": "draconic21-x402-api.onrender.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "caveats": [
        "string"
      ],
      "document_sha256": "string",
      "engine": "string",
      "metadata": {
        "author": "string",
        "creation_date": "string",
        "creator": "string",
        "pdf_version": "string",
        "producer": "string",
        "title": "string"
      },
      "page_count": 0,
      "pages": [
        {
          "char_count": 0,
          "has_text": true,
          "page": 0,
          "text": "string"
        }
      ],
      "pages_read": 0,
      "warnings": [
        "string"
      ],
      "word_count": 0
    },
    "type": "string"
  }
}