{"uid":"cap_KgkXgduopMuZUPPJpjLBQ","slug":"x402-deployer-x402-deployer-workers-dev-071eaf8e","name":"Website Screenshot API (URL to PNG/JPG)","description":"Website screenshot / URL to PNG/JPG. Configurable viewport, retina, crop/fit, transparent BG, JPG quality, JS wait conditions.","url":"https://x402-deployer.x402-deployer.workers.dev/screenshot?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":["url"],"properties":{"fit":{"type":"string","description":"How output is resized: 'max', 'crop', or 'scale'. Optional."},"url":{"type":"string","description":"Page URL to screenshot. Must use http or https."},"width":{"type":"number","description":"Output image width in px. 1-8000. Optional."},"format":{"type":"string","description":"'png' (default) or 'jpg'."},"height":{"type":"number","description":"Output image height in px. 1-8000. Optional."},"quality":{"type":"number","description":"JPG compression quality, 1-100. Only applies when format is 'jpg'."},"screen_width":{"type":"number","description":"Browser viewport width in px. 320-3840. Optional."},"screen_height":{"type":"number","description":"Browser viewport height in px. 240-4320. Optional."},"device_scale_factor":{"type":"number","description":"Device pixel ratio for retina capture. 1-4. Optional."},"transparent_background":{"type":"boolean","description":"Boolean. Renders a transparent background instead of white. Only applies when format is 'png'."}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"image_url":{"type":"string"}}}}}}},"responseSchema":null,"example":{"request":{"input":{"body":{"url":"https://example.com","format":"png","quality":80,"screen_width":1280,"screen_height":800,"device_scale_factor":2},"type":"http","method":"POST","bodyType":"json"}},"response":{"format":"png","job_id":"4dab84c1-9207-4415-86c8-0c29264d597c","image_url":"https://us-east.storage.cloudconvert.com/tasks/ead5c354-0434-43f0-9650-e953650b69c5/example.com.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=cloudconvert-production%2F20260605%2Fva%2Fs3%2Faws4_request&X-Amz-Date=20260605T232448Z&X-Amz-Expires=86400&X-Amz-Signature=74a55dd847ea9664724b3fab479d167b9998cb738fdfa0e0d3a4bd2cfe5a85f8&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%3D%22example.com.png%22&response-content-type=image%2Fpng&x-id=GetObject","source_url":"https://example.com","file_size_bytes":45356}},"exampleRequest":{"url":"https://example.com","format":"png","quality":80,"screen_width":1280,"screen_height":800,"device_scale_factor":2},"tags":["x402"],"displayCostAmount":"0.04","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.04/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ghDaM3Vsnw99xS596mBq2","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.04","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Captures a screenshot of any URL and returns it as a PNG or JPG image with configurable viewport, retina support, cropping, transparent background, and JS wait conditions.","exampleAgentPrompt":"Take a screenshot of https://example.com at 1280x800 viewport in PNG format with retina enabled and wait for the page to fully load before capturing.","exampleUseCases":null,"resultDescription":"Returns a PNG or JPG image file of the rendered webpage. The image reflects the configured viewport size, retina pixel density, crop/fit settings, background transparency, and any JavaScript wait conditions applied before capture.","failureModes":["Invalid or unreachable URL returns error","Timeout if JS wait condition never resolves","Unsupported image format parameter","Invalid viewport dimensions","Payment failure via x402 protocol returns 402"],"whenToPreferThis":"Use this endpoint when you need a visual screenshot or thumbnail of a live webpage with fine-grained control over viewport, image format, retina density, cropping, and JS rendering state. Prefer this over generic headless browser setups when you need a simple pay-per-call API with no infrastructure to manage.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T15:36:08.320Z","isFirstParty":false,"canonicalSlug":"x402-deployer-x402-deployer-workers-dev-071eaf8e"}