convertfilefast-com HTML to PDF API

The HTML to PDF API from convertfilefast-com — 3 operation(s) for html to pdf.

Operations 3

POST /v2/convert/html-to-pdf Convert HTML to PDF #
POST /v2/convert/markdown-to-pdf Convert Markdown to PDF #
POST /v2/convert/url-to-pdf Convert URL to PDF #

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/convertfilefast-com:convertfilefast-com-html-to-pdf-api"
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 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. See our Privacy Policy and Terms.

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

OpenAPI Specification

convertfilefast-com-html-to-pdf-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ConvertFileFast HTML to PDF API
  description: '## ConvertFileFast API


    API for converting files to PDF format.


    ### Supported Formats


    | Format | Extension | Description |

    |--------|-----------|-------------|

    | Excel | .xlsx | Excel spreadsheets |

    | Word | .doc, .docx | Word documents |

    | PowerPoint | .pptx | PowerPoint presentations |

    | ZIP | .zip | Batch conversion of multiple files |

    | Text | .txt | Plain text files |

    | RTF | .rtf | Rich Text Format |

    | ODT | .odt | OpenDocument Text |


    ### Authentication


    All conversion endpoints require an API Key.


    **Option 1: X-API-Key header**

    ```

    X-API-Key: your-api-key

    ```


    **Option 2: Authorization Bearer**

    ```

    Authorization: Bearer your-api-key

    ```


    ### Quick Example


    ```bash

    curl -X POST "https://api.convertfilefast.com/v1/convert" \

    -H "X-API-Key: your-api-key" \

    -F "file=@document.docx" \

    -o document_converted.pdf

    ```'
  contact:
    name: API Support
    email: support@convertfilefast.com
  license:
    name: MIT License
    url: https://opensource.org/licenses/MIT
  version: 1.0.0
tags:
- name: HTML To PDF
paths:
  /v2/convert/html-to-pdf:
    post:
      tags:
      - HTML To PDF
      summary: Convert HTML to PDF
      description: 'Convert HTML content to PDF using WeasyPrint.


        Accepts **JSON body** (`application/json`) with `content`, `css`, `options` fields OR

        **multipart/form-data** with `file` (.html) + optional `css` + optional `options` (JSON string).


        The `options` object supports: `page_size` (A4, A3, A5, letter, legal), `orientation` (portrait, landscape), and margin fields.'
      operationId: html_to_pdf_v2_convert_html_to_pdf_post
      responses:
        '200':
          description: Successful Response
          content:
            application/pdf: {}
        '400':
          description: Invalid or missing input
        '401':
          description: Unauthorized - invalid or missing API key
        '429':
          description: Rate limit or monthly limit exceeded
        '500':
          description: Internal conversion error
      security:
      - HTTPBearer: []
      - APIKeyHeader: []
  /v2/convert/markdown-to-pdf:
    post:
      tags:
      - HTML To PDF
      summary: Convert Markdown to PDF
      description: 'Convert Markdown content to PDF using markdown-it-py and WeasyPrint.


        Accepts **JSON body** (`application/json`) with `content`, `css`, `options` fields OR

        **multipart/form-data** with `file` (.md) + optional `css` + optional `options` (JSON string).'
      operationId: markdown_to_pdf_v2_convert_markdown_to_pdf_post
      responses:
        '200':
          description: Successful Response
          content:
            application/pdf: {}
        '400':
          description: Invalid or missing input
        '401':
          description: Unauthorized - invalid or missing API key
        '429':
          description: Rate limit or monthly limit exceeded
        '500':
          description: Internal conversion error
      security:
      - HTTPBearer: []
      - APIKeyHeader: []
  /v2/convert/url-to-pdf:
    post:
      tags:
      - HTML To PDF
      summary: Convert URL to PDF
      description: 'Fetch a public web page and render it to PDF using WeasyPrint.


        Accepts **JSON body** (`application/json`) with `url` and optional `options` fields OR

        **multipart/form-data** with `url` as a form field.


        SSRF protection is applied: private/reserved IP addresses are blocked.'
      operationId: url_to_pdf_v2_convert_url_to_pdf_post
      responses:
        '200':
          description: Successful Response
          content:
            application/pdf: {}
        '400':
          description: Invalid URL, SSRF attempt blocked, or fetch failed
        '401':
          description: Unauthorized - invalid or missing API key
        '429':
          description: Rate limit or monthly limit exceeded
        '500':
          description: Internal conversion error (WeasyPrint failure)
      security:
      - HTTPBearer: []
      - APIKeyHeader: []
components:
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key