Convert HTML to PDF API

Convert HTML from a URL, base64 string, or file upload into PDF bytes or a signed link. Useful for invoices, reports, and printable web pages.

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/apyhub-convert-html-to-pdf"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

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

OpenAPI Specification

apyhub-apyhub-convert-html-to-pdf-openapi.yml Raw ↑
# Derived by API Evangelist from ApyHub's own published service documentation
# (https://apyhub.com/llms.txt -> https://apyhub.com/apyhub/service/convert-html-to-pdf).
# Paths verified callable against https://api.apyhub.com (401 = exists + gated).
# Request/response schemas are NOT published by ApyHub and are deliberately omitted.
openapi: 3.1.0
info:
  title: Convert HTML to PDF API
  description: Convert HTML from a URL, base64 string, or file upload into PDF bytes or a signed link.
    Useful for invoices, reports, and printable web pages.
  version: 1.0.0
  contact:
    name: ApyHub
    url: https://apyhub.com/apyhub/service/convert-html-to-pdf
servers:
- url: https://api.apyhub.com
  description: ApyHub API
security:
- apyToken: []
tags:
- name: File Conversion
paths:
  /convert/html-url/pdf-url:
    post:
      operationId: postConvertHtmlUrlPdfUrl
      summary: Convert HTML to PDF API
      description: Converts a remote HTML file at the given URL into a PDF and returns a signed PDF link.
      tags: &id001
      - File Conversion
      responses:
        '200':
          description: Successful response
        '401':
          description: Missing or invalid API key
      x-apyhub-atoms: 100
  /convert/html-base64/pdf-file:
    post:
      operationId: postConvertHtmlBase64PdfFile
      summary: Convert HTML to PDF API
      description: Converts a base64-encoded HTML file into a PDF and returns the PDF as a download. The
      tags: *id001
      responses:
        '200':
          description: Successful response
        '401':
          description: Missing or invalid API key
      x-apyhub-atoms: 100
  /convert/html-base64/pdf-url:
    post:
      operationId: postConvertHtmlBase64PdfUrl
      summary: Convert HTML to PDF API
      description: Converts a base64-encoded HTML file into a PDF and returns a signed link to the genera
      tags: *id001
      responses:
        '200':
          description: Successful response
        '401':
          description: Missing or invalid API key
      x-apyhub-atoms: 100
  /convert/html-file/pdf-file:
    post:
      operationId: postConvertHtmlFilePdfFile
      summary: Convert HTML to PDF API
      description: Uploads an HTML file and returns the generated PDF as a binary download. Query Paramet
      tags: *id001
      responses:
        '200':
          description: Successful response
        '401':
          description: Missing or invalid API key
      x-apyhub-atoms: 100
  /convert/html-file/pdf-url:
    post:
      operationId: postConvertHtmlFilePdfUrl
      summary: Convert HTML to PDF API
      description: Converts an uploaded HTML file into a PDF and returns a signed link to the generated
        P
      tags: *id001
      responses:
        '200':
          description: Successful response
        '401':
          description: Missing or invalid API key
      x-apyhub-atoms: 100
  /convert/html-url/pdf-file:
    post:
      operationId: postConvertHtmlUrlPdfFile
      summary: Convert HTML to PDF API
      description: Converts a remote HTML file accessible by URL into a PDF download. The request accepts
      tags: *id001
      responses:
        '200':
          description: Successful response
        '401':
          description: Missing or invalid API key
      x-apyhub-atoms: 100
components:
  securitySchemes:
    apyToken:
      type: apiKey
      in: header
      name: apy-token