{
  "x402Version": 2,
  "id": 33899,
  "slug": "33899",
  "resource": "https://x402.agentindex.world/pdf",
  "description": "Extract a public PDF (by HTTPS URL or base64) into clean Markdown - headings and tables preserved via layout-aware parsing, plus title/author/page count/date metadata and a real token count. Text content itself is never generated or altered, only its structure is inferred. Try GET /pdf/sample. Part of the AgentIndex content kit (pdf, web-read, extract, summarize, detect-language) - see GET /capabilities.",
  "type": "http",
  "serviceName": "pdf-to-markdown",
  "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1790530885/bazaar-icons/fde5dd6af2b2b42f.png",
  "resourceType": "Beauty & Personal Care",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xb3F32bdfe8D07825BC0D7387295aB1D7559BA69d",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "2000",
      "amountUsd": 0.002,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "markdown": {
            "description": "Extracted Markdown - headings and tables preserved via layout-aware parsing.",
            "type": "string"
          },
          "metadata": {
            "properties": {
              "author": {
                "description": "Document author from PDF metadata, when present."
              },
              "date": {
                "description": "Document creation date from PDF metadata, when present."
              },
              "pages": {
                "description": "Number of pages in the PDF.",
                "type": "integer"
              },
              "title": {
                "description": "Document title from PDF metadata, when present."
              }
            },
            "type": "object"
          },
          "token_count": {
            "description": "Real BPE token count (cl100k_base) of the extracted markdown.",
            "type": "integer"
          },
          "x402_receipt": {
            "description": "Billing and provenance receipt for this call.",
            "type": "object"
          }
        },
        "required": [
          "markdown",
          "metadata",
          "token_count"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "url": "https://www.ohchr.org/sites/default/files/UDHR/Documents/UDHR_Translations/eng.pdf"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "markdown": "# Universal Declaration of Human Rights \n\n## Preamble \n\nWhereas recognition of the inherent dignity and of the equal and inalienable rights of all members of the human family is the foundation of freedom, justice and peace in the world, ...",
            "metadata": {
              "author": "lindner",
              "date": "2001-09-10T01:04:58-07:00",
              "pages": 8,
              "title": null
            },
            "token_count": 2164
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "pdf_base64": {
                    "description": "Base64-encoded PDF file content. Provide this or url, not both.",
                    "type": "string"
                  },
                  "url": {
                    "description": "Public HTTPS URL of a PDF file. Provide this or pdf_base64, not both.",
                    "type": "string"
                  }
                },
                "required": []
              },
              "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": {
                "properties": {
                  "markdown": {
                    "description": "Extracted Markdown - headings and tables preserved via layout-aware parsing.",
                    "type": "string"
                  },
                  "metadata": {
                    "properties": {
                      "author": {
                        "description": "Document author from PDF metadata, when present."
                      },
                      "date": {
                        "description": "Document creation date from PDF metadata, when present."
                      },
                      "pages": {
                        "description": "Number of pages in the PDF.",
                        "type": "integer"
                      },
                      "title": {
                        "description": "Document title from PDF metadata, when present."
                      }
                    },
                    "type": "object"
                  },
                  "token_count": {
                    "description": "Real BPE token count (cl100k_base) of the extracted markdown.",
                    "type": "integer"
                  },
                  "x402_receipt": {
                    "description": "Billing and provenance receipt for this call.",
                    "type": "object"
                  }
                },
                "required": [
                  "markdown",
                  "metadata",
                  "token_count"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "pdf",
    "documents",
    "markdown",
    "bazaar"
  ],
  "sourceHost": "x402.agentindex.world",
  "lastUpdated": "2026-10-08T05:34:55.25Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 4,
    "lastCalledAt": "2026-10-08T05:34:54.736Z"
  },
  "metadata": {
    "serviceName": "pdf-to-markdown",
    "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1790530885/bazaar-icons/fde5dd6af2b2b42f.png",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "url": "https://www.ohchr.org/sites/default/files/UDHR/Documents/UDHR_Translations/eng.pdf"
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "markdown": "# Universal Declaration of Human Rights \n\n## Preamble \n\nWhereas recognition of the inherent dignity and of the equal and inalienable rights of all members of the human family is the foundation of freedom, justice and peace in the world, ...",
              "metadata": {
                "author": "lindner",
                "date": "2001-09-10T01:04:58-07:00",
                "pages": 8,
                "title": null
              },
              "token_count": 2164
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "properties": {
                    "pdf_base64": {
                      "description": "Base64-encoded PDF file content. Provide this or url, not both.",
                      "type": "string"
                    },
                    "url": {
                      "description": "Public HTTPS URL of a PDF file. Provide this or pdf_base64, not both.",
                      "type": "string"
                    }
                  },
                  "required": []
                },
                "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": {
                  "properties": {
                    "markdown": {
                      "description": "Extracted Markdown - headings and tables preserved via layout-aware parsing.",
                      "type": "string"
                    },
                    "metadata": {
                      "properties": {
                        "author": {
                          "description": "Document author from PDF metadata, when present."
                        },
                        "date": {
                          "description": "Document creation date from PDF metadata, when present."
                        },
                        "pages": {
                          "description": "Number of pages in the PDF.",
                          "type": "integer"
                        },
                        "title": {
                          "description": "Document title from PDF metadata, when present."
                        }
                      },
                      "type": "object"
                    },
                    "token_count": {
                      "description": "Real BPE token count (cl100k_base) of the extracted markdown.",
                      "type": "integer"
                    },
                    "x402_receipt": {
                      "description": "Billing and provenance receipt for this call.",
                      "type": "object"
                    }
                  },
                  "required": [
                    "markdown",
                    "metadata",
                    "token_count"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "x402.agentindex.world",
    "manifest_name": "x402.agentindex.world",
    "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": {
      "markdown": "string",
      "metadata": {
        "author": null,
        "date": null,
        "pages": 0,
        "title": null
      },
      "token_count": 0,
      "x402_receipt": {}
    },
    "type": "string"
  }
}