PrintFriendly Convert API

The unified endpoint.

GitHub OpenAPI

Operations 1

POST /v2/convert Convert a URL, HTML or Markdown #

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/printfriendly-com:printfriendly-com-convert-api"
All apis
curl "https://apis.io/api/v1/apis?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.

OpenAPI Specification

printfriendly-com-convert-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PrintFriendly Convert API
  version: 2.0.0
  summary: Turn a web page, HTML or Markdown into a PDF, Word file, Markdown, JSON, HTML or text.
  description: 'One endpoint, POST /v2/convert, takes a URL, some HTML or some Markdown and returns a PDF, a Word file, Markdown, JSON, HTML or plain text. The older /v2/pdf/create, /v2/html/create and /v2/text/create endpoints keep working unchanged.


    Get a free key at https://www.printfriendly.com/me/api-key (100 documents a month, no card). Send it as `Authorization: Bearer YOUR_API_KEY`.


    Calls are synchronous by default and answer within 27 seconds. Add `async: true` to /v2/convert to run a conversion in the background instead: it answers 202 with a job id, and the result is read from GET /v2/jobs/{id} or POSTed to your `webhook_url`. Only a successful conversion counts toward your plan, however it was run. To check that a key works without using a document, call GET /v2/usage: it is free, never counted, and answers 200 even when the key''s allowance is used up.


    AI agents: a plain-text version of these docs is at https://www.printfriendly.com/llms-full.txt.'
  termsOfService: https://www.printfriendly.com/terms
  contact:
    name: PrintFriendly support
    url: https://www.printfriendly.com/support
servers:
- url: https://api.printfriendly.com
  description: Production
security:
- bearerAuth: []
- apiKeyHeader: []
- apiKeyQuery: []
- basicAuth: []
tags:
- name: Convert
  description: The unified endpoint.
paths:
  /v2/convert:
    post:
      operationId: convert
      summary: Convert a URL, HTML or Markdown
      description: 'Send exactly one of url, html or markdown, and choose an output. pdf and docx are stored for 48 hours and returned as a file_url; markdown, html and text come back in content; json returns the article in pieces in document.


        One successful call is one document on your plan, whatever the output. Failed calls are free.


        Async: add `async: true` and the call answers 202 straight away with a job_id. The job counts once, when it succeeds. Read it at GET /v2/jobs/{id}, or set `webhook_url` and it is POSTed to you.'
      tags:
      - Convert
      requestBody:
        required: true
        description: JSON, a urlencoded form or multipart.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConvertRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/ConvertRequest'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/ConvertRequest'
      responses:
        '200':
          description: The conversion worked and counted once toward your plan.
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/ConvertFileResponse'
                - $ref: '#/components/schemas/ConvertContentResponse'
                - $ref: '#/components/schemas/ConvertJsonResponse'
          '202':
            description: 'Only with async: true. The job was queued.'
            content:
              application/json:
                schema:
                  $ref: '#/components/schemas/ConvertJobAccepted'
components:
  schemas:
    ConvertJobAccepted:
      type: object
      description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
      x-ae-placeholder: true
    ConvertFileResponse:
      type: object
      description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
      x-ae-placeholder: true
    ConvertJsonResponse:
      type: object
      description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
      x-ae-placeholder: true
    ConvertRequest:
      type: object
      description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
      x-ae-placeholder: true
    ConvertContentResponse:
      type: object
      description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
      x-ae-placeholder: true
externalDocs:
  description: Human-readable API docs
  url: https://www.printfriendly.com/api/instructions/v2