{"uid":"cap_TlIWQU8sAaKVcLySx_NPv","slug":"weblens-screenshot-api-b7499d16","name":"WebLens Screenshot API","description":"Capture high-quality screenshots of any webpage using headless browser.","url":"https://api.weblens.dev/screenshot?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","format":"uri","example":"https://example.com","description":"The URL to process"},"width":{"type":"number","default":1280,"maximum":3840,"minimum":320,"description":"Viewport width in pixels"},"height":{"type":"number","default":720,"maximum":2160,"minimum":240,"description":"Viewport height in pixels"},"timeout":{"type":"number","default":10000,"example":10000,"maximum":30000,"minimum":5000,"description":"Request timeout in milliseconds"},"fullPage":{"type":"boolean","default":false,"example":false,"description":"Capture the whole scrollable page, not just the viewport"},"selector":{"type":"string","example":"p","description":"CSS selector to capture"}}},"responseSchema":{"type":"json","example":{"url":"https://example.com","image":"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==","requestId":"req_screen123","capturedAt":"2026-01-26T12:00:00.000Z"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.008","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.008/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_pxoIOdasOkHE9oiq_xxg2","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.008","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Captures a full-page screenshot of any URL and returns it as a base64-encoded PNG image","exampleAgentPrompt":"Can you take a screenshot of https://stripe.com and show me what it looks like right now?","exampleUseCases":[{"title":"Visual website monitoring","prompt":"Take a screenshot of https://mycompany.com/pricing every hour and let me know if the layout or content changes — I want to catch any unexpected modifications."},{"title":"Competitor page documentation","prompt":"Grab a screenshot of https://competitor.io/features so I can see exactly what their features page looks like today and save it for our records."},{"title":"Social media preview verification","prompt":"Can you screenshot https://myblog.com/new-post so I can check how the page visually renders before I share it on social media?"}],"resultDescription":"A JSON object containing the original URL, a base64-encoded PNG image of the rendered webpage, a unique requestId for tracking, and a capturedAt ISO 8601 timestamp indicating when the screenshot was taken. The image can be decoded and displayed or stored as a PNG file.","failureModes":["Invalid or unreachable URL returns an error response","Timeout if the target page takes too long to load","Private or authentication-gated pages may render login screens instead of content","Malformed URL input causes request rejection","Rate limiting or payment failure via x402 protocol blocks the request"],"whenToPreferThis":"Choose this endpoint when you need a visual, pixel-accurate rendering of a webpage rather than raw HTML or text content. Ideal for visual regression testing, competitive monitoring, social preview checks, or any use case where the rendered appearance of a page matters. The 70% cache discount makes it cost-effective for repeated captures of the same URL.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-11T06:35:37.911Z","isFirstParty":false,"canonicalSlug":"weblens-screenshot-api-b7499d16"}