{"uid":"cap_oo7LTteHsjbapuzIm3N-A","slug":"switch402-viewport-screenshot-5523af6d","name":"switch402 Viewport Screenshot","description":"switch402 screenshot: the visible part of a public page (1280x800 viewport, JavaScript rendered) as a base64 PNG. Charged only on success.","url":"https://api.switch402.com/v1/screenshot?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","maxLength":2048,"description":"Public http(s) page to capture"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"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_AEHZ37BT-X2YIqBVqvaJH","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 the visible viewport (1280x800) of a public web page as a JavaScript-rendered base64-encoded PNG image.","exampleAgentPrompt":"Can you take a screenshot of https://example.com and show me what it looks like right now — just the visible part of the page, rendered with JavaScript?","exampleUseCases":[{"title":"Visual QA for deployed web app","prompt":"Take a screenshot of https://staging.myapp.io/dashboard so I can see what the page looks like after the latest deployment — I want the viewport view, JavaScript rendered."},{"title":"Competitor product page monitoring","prompt":"Grab a screenshot of https://competitor.com/pricing so I can see how their pricing page looks today."},{"title":"Link preview thumbnail generation","prompt":"Can you screenshot https://techcrunch.com/2024/05/01/ai-news/ to generate a preview thumbnail for the above-the-fold content?"}],"resultDescription":"A base64-encoded PNG image of the 1280x800 visible viewport of the requested public web page, captured after JavaScript rendering. Only charged on success.","failureModes":["URL is not publicly accessible or requires authentication — returns error","Page fails to render JavaScript correctly within timeout","URL is malformed or exceeds 2048 character limit — validation error","Private/localhost URLs rejected — must be a public http(s) address","Network timeout if the target page is slow to load"],"whenToPreferThis":"Choose this endpoint when you need just the above-the-fold visible viewport (1280x800) of a page, not the full scrollable content. It is ideal for generating thumbnail previews, quick visual checks, or capturing the initial user-facing state of a page. Use the full-page screenshot sibling endpoint if you need the entire scrollable page. Prefer this over scrape endpoints when visual fidelity (layout, images, styling) matters rather than extractable text or structured data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:35:55.210Z","isFirstParty":false,"canonicalSlug":"switch402-viewport-screenshot-5523af6d"}