pdfmd.dev · Schema

OcrResult

A converted document plus the OCR fields. Returned when `output` is `markdown`.

PDFConversionLLMOCR

Properties

Name Type Description
id string A prefix of the SHA-256 of the file.
parserVersion string The parser version that read the file.
title string
pages integer
scannedPages integer Pages with no text layer. The Markdown endpoint counts them and does not read their image text. Use /api/v1/ocr for that.
tables integer
chars integer
ms integer Conversion time in milliseconds.
pageBreaks array Character offsets in the Markdown where each page starts. They stay when `format` is `html`, which does not return the Markdown they point into.
warnings array Parser 0.1.2 and later. A response from an earlier parser has no `warnings` field.
markdown string The document as Markdown. Present when `format` is `markdown` (the default) or `both`.
html string The document as an HTML fragment with no `` or ``, ready to embed: GitHub-flavoured tables, headings, lists, code blocks and links. Scripts, event handlers, iframes, styles and `javascript
operation string
output string
language string English printed text only.
ocrPages integer Image-only pages that OCR read.
View JSON Schema on GitHub

JSON Schema

pdfmd-dev-ocr-result-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pdfmd-dev/json-schema/pdfmd-dev-ocr-result-schema.json",
  "title": "OcrResult",
  "description": "A converted document plus the OCR fields. Returned when `output` is `markdown`.",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/pdfmd-dev-api-openapi.json#/components/schemas/OcrResult",
  "allOf": [
    {
      "$ref": "#/$defs/ConvertResult"
    },
    {
      "type": "object",
      "required": [
        "operation",
        "output",
        "language",
        "ocrPages"
      ],
      "properties": {
        "operation": {
          "type": "string",
          "enum": [
            "ocr"
          ]
        },
        "output": {
          "type": "string",
          "enum": [
            "markdown"
          ]
        },
        "language": {
          "type": "string",
          "enum": [
            "eng"
          ],
          "description": "English printed text only."
        },
        "ocrPages": {
          "type": "integer",
          "minimum": 0,
          "description": "Image-only pages that OCR read."
        }
      }
    }
  ],
  "$defs": {
    "ConvertResult": {
      "type": "object",
      "description": "A converted document. Counted in pages, one page credit per page, whatever the format. Depending on `format`, `markdown`, `html` or both are present: always at least one of them.",
      "required": [
        "id",
        "parserVersion",
        "title",
        "pages",
        "scannedPages",
        "tables",
        "chars",
        "ms",
        "pageBreaks"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "A prefix of the SHA-256 of the file."
        },
        "parserVersion": {
          "type": "string",
          "description": "The parser version that read the file."
        },
        "title": {
          "type": "string"
        },
        "pages": {
          "type": "integer",
          "minimum": 1,
          "maximum": 400
        },
        "scannedPages": {
          "type": "integer",
          "minimum": 0,
          "description": "Pages with no text layer. The Markdown endpoint counts them and does not read their image text. Use /api/v1/ocr for that."
        },
        "tables": {
          "type": "integer",
          "minimum": 0
        },
        "chars": {
          "type": "integer",
          "minimum": 0
        },
        "ms": {
          "type": "integer",
          "minimum": 0,
          "description": "Conversion time in milliseconds."
        },
        "pageBreaks": {
          "type": "array",
          "items": {
            "type": "integer",
            "minimum": 0
          },
          "description": "Character offsets in the Markdown where each page starts. They stay when `format` is `html`, which does not return the Markdown they point into."
        },
        "warnings": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Warning"
          },
          "description": "Parser 0.1.2 and later. A response from an earlier parser has no `warnings` field."
        },
        "markdown": {
          "type": "string",
          "description": "The document as Markdown. Present when `format` is `markdown` (the default) or `both`."
        },
        "html": {
          "type": "string",
          "description": "The document as an HTML fragment with no `<html>` or `<body>`, ready to embed: GitHub-flavoured tables, headings, lists, code blocks and links. Scripts, event handlers, iframes, styles and `javascript:` links are removed. The warnings that close a page in the Markdown as comments are not in the HTML; read `warnings`. Present when `format` is `html` or `both`."
        }
      },
      "additionalProperties": true
    },
    "Warning": {
      "type": "object",
      "description": "A value the parser could not settle. The same message closes its page in the Markdown as an HTML comment.",
      "required": [
        "page",
        "kind",
        "message"
      ],
      "properties": {
        "page": {
          "type": "integer",
          "minimum": 1
        },
        "kind": {
          "type": "string",
          "enum": [
            "raised_mark_unresolved",
            "table_value_not_in_source"
          ]
        },
        "message": {
          "type": "string"
        },
        "values": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "table_value_not_in_source: the values that the page does not print."
        }
      },
      "additionalProperties": true
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/pdfmd-dev-ocr-result"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.