SnapAPI · Schema

SnapAPI PDF Request

Request body for POST /api/pdf. Configures page format and orientation for the headless Chromium PDF render.

ScreenshotsWebsite ScreenshotsMetadata ExtractionText ExtractionPDF GenerationHeadless ChromiumWeb ScrapingDeveloper ToolsREST

Properties

Name Type Description
url string Fully qualified URL to render as PDF.
format string Paper format for the rendered PDF.
landscape boolean Render the page in landscape orientation.
View JSON Schema on GitHub

JSON Schema

snapapi-pdf-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/snapapi/main/json-schema/snapapi-pdf-request-schema.json",
  "title": "SnapAPI PDF Request",
  "description": "Request body for POST /api/pdf. Configures page format and orientation for the headless Chromium PDF render.",
  "type": "object",
  "required": ["url"],
  "properties": {
    "url": {
      "type": "string",
      "format": "uri",
      "description": "Fully qualified URL to render as PDF."
    },
    "format": {
      "type": "string",
      "enum": ["A4", "Letter", "Legal", "Tabloid"],
      "default": "A4",
      "description": "Paper format for the rendered PDF."
    },
    "landscape": {
      "type": "boolean",
      "default": false,
      "description": "Render the page in landscape orientation."
    }
  },
  "additionalProperties": false
}