{"uid":"cap_XktSGUK40BkkOAWjzE7EB","slug":"extract-api-url-to-pdf-18e4523e","name":"Extract API – URL to PDF","description":"Paid web & document extraction (single or batch), rendering, screenshots, URL-to-PDF and site intelligence for AI agents. Payment via x402 (HTTP 402) in USDC on Base (eip155:8453). $0.01 per extract/sitemap/feed, $0.02 per render/screenshot/pdf, $0.03 per site-intel, $0.05 per 10-URL batch.","url":"https://extract-x402.vercel.app/v1/pdf?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["url"],"properties":{"url":{"type":"string","description":"Absolute http(s) URL"},"media":{"enum":["print","screen"],"type":"string"},"paper":{"enum":["a4","a3","letter","legal","tabloid"],"type":"string"},"waitMs":{"type":"string"},"marginMm":{"type":"string"},"landscape":{"type":"string"},"background":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"body":"binary PDF bytes","contentType":"application/pdf"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm__B4O7Xeb2dUw9SbyTKx6k","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Renders a live web page at a given URL and returns a downloadable PDF file, with options for paper size, orientation, margins, and media type.","exampleAgentPrompt":"Can you convert this webpage to a PDF for me — https://example.com/report — in A4 portrait format with print media styling and 10mm margins?","exampleUseCases":[{"title":"Archive news article as PDF","prompt":"Save this news article as a PDF so I can keep a copy offline — here's the URL: https://www.nytimes.com/2024/05/01/tech/ai-news.html — use A4 paper size with screen media styling."},{"title":"Export legal document page to PDF","prompt":"Turn this legal document page into a PDF with letter paper size, print media mode, and 15mm margins so it's ready to print: https://legalsite.com/contract/12345"},{"title":"Generate printable report from dashboard","prompt":"Can you grab this dashboard page at https://app.myanalytics.com/report/q1 and render it as a landscape A3 PDF with background colors included? Wait 3000ms before capturing so the charts load."}],"resultDescription":"Returns binary PDF bytes with content-type application/pdf — a fully rendered PDF document of the target web page, ready to save or display, reflecting the page's visual state at time of capture.","failureModes":["Invalid or inaccessible URL returns an error — target site may block headless rendering","Payment failure via x402 if insufficient USDC balance on Base","Timeout if waitMs is too short for heavy JavaScript pages to load","Incorrect paper/media enum values cause a validation error","Protected pages behind authentication cannot be rendered","Very large pages may time out or produce oversized PDFs"],"whenToPreferThis":"Choose this endpoint when you need a full-fidelity rendered PDF of a live web page — including JavaScript-rendered content — with control over paper format, orientation, margins, and media type. It is better than static HTML-to-PDF converters when the page requires JavaScript rendering. It is distinct from the screenshot endpoint (which returns an image, not a PDF). Use it when the output must be a printable, archivable PDF document.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-24T04:59:50.661Z","isFirstParty":false,"canonicalSlug":"extract-api-url-to-pdf-18e4523e"}