Skip to content
onelayer.
All tools

Tool detail

pdf

Renders a given URL to a PDF with selectable paper size and print emulation, returning it base64-encoded with final URL, title, and size.

Categories: Browser automation, Document processing

Use when

  • convert a webpage to a PDF file
  • capture a printable snapshot of a URL as a PDF
  • generate a PDF of an article for archiving

Not for

  • not for image or PNG screenshots; PDF output only
  • not for internal or loopback URLs, which are rejected

Inputs

POST JSON body: { url: string (required), format: A4|A3|Letter|Legal|Tabloid (optional), wait_until: load state (optional) }

Admitted input schema

{
  "type": "object",
  "properties": {
    "format": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "description": "Paper size: 'A4', 'A3', 'Letter', 'Legal', or 'Tabloid'. Defaults to 'A4'."
    },
    "url": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "description": "The http(s) URL to capture, e.g. 'https://example.com'. Internal/loopback hosts are rejected."
    },
    "wait_until": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "description": "Playwright load state to wait for before capture: 'load', 'domcontentloaded', 'networkidle', or 'commit'. Defaults to 'networkidle'."
    }
  },
  "required": [
    "url"
  ],
  "additionalProperties": false
}

Endpoint

Method
POST
URL
https://screenshot-api-production-fe7e.up.railway.app/capture/pdf

Payment

Protocol
x402
Listed price
0.002 USDC per call on Base
Payment method
exact
Network
eip155:8453
Asset
0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913

Listed terms are catalog metadata. The caller supplies inputs and calls the tool outside Onelayer. If payment is required, the caller uses a compatible wallet to pay.

Source

Record
POST https://screenshot-api-production-fe7e.up.railway.app/capture/pdf
Retrieved
2026-09-30T20:37:07.382Z
Catalog file SHA-256
6837ccddf886f0007cf3727ea9d27faaa5047b51b4f425345c554ce1c271a524
Catalog built
2026-09-30T22:31:58.034Z