{"id":"page-capture","title":"Page capture: screenshot or PDF of a public URL","description":"Renders one public web page in a real browser (Cloudflare Browser Run, JavaScript enabled) and returns a PNG or JPEG screenshot or a PDF as base64 with its sha256, for agents that need to see or archive a page. Does not log in, click or fill forms, does not capture private or internal hosts, and returns an error rather than a capture larger than 6 MB.","roi":"A rendered screenshot or PDF of any public page without running a headless browser.","audience":"developer","channels":["x402","mcp","rapidapi","apify"],"endpoint":{"method":"POST","url":"https://agents.writerslogic.com/api/v1/page-capture","path":"/api/v1/page-capture","contentType":"application/json"},"price":{"amount":"0.01","currency":"USDC","network":"base","perCall":true,"failedCallsCharged":false},"inputSchema":{"type":"object","additionalProperties":false,"required":["url"],"properties":{"url":{"type":"string","minLength":8,"maxLength":2048,"description":"Public http(s) URL."},"output":{"type":"string","enum":["png","jpeg","pdf"],"default":"png"},"full_page":{"type":"boolean","default":false,"description":"Capture the full scroll height (screenshots only; a PDF is always the whole page)."},"viewport":{"type":"object","additionalProperties":false,"required":["width","height"],"properties":{"width":{"type":"integer","minimum":320,"maximum":1920},"height":{"type":"integer","minimum":320,"maximum":1080}},"description":"Default 1280x800."},"wait_until":{"type":"string","enum":["load","networkidle0"],"default":"load"},"timeout_ms":{"type":"integer","minimum":1000,"maximum":30000,"default":15000,"description":"Page navigation timeout."}}},"resultSchema":{"type":"object","properties":{"url":{"type":"string"},"output":{"type":"string","enum":["png","jpeg","pdf"]},"media_type":{"type":"string"},"bytes":{"type":"integer"},"content_base64":{"type":"string"},"content_sha256":{"type":"string","description":"sha256 of the decoded file bytes."},"viewport":{"type":"object","properties":{"width":{"type":"integer"},"height":{"type":"integer"}}},"full_page":{"type":"boolean"},"captured_at":{"type":"string"},"limits":{"type":"object","properties":{"note":{"type":"string"}}}}},"outputSchema":{"type":"object","properties":{"data":{"type":"object","properties":{"url":{"type":"string"},"output":{"type":"string","enum":["png","jpeg","pdf"]},"media_type":{"type":"string"},"bytes":{"type":"integer"},"content_base64":{"type":"string"},"content_sha256":{"type":"string","description":"sha256 of the decoded file bytes."},"viewport":{"type":"object","properties":{"width":{"type":"integer"},"height":{"type":"integer"}}},"full_page":{"type":"boolean"},"captured_at":{"type":"string"},"limits":{"type":"object","properties":{"note":{"type":"string"}}}}},"_provenance":{"type":"object","description":"C2PA-aligned manifest and W3C VC 2.0 (eddsa-jcs-2022) issued by the hub DID; verify at POST /api/v1/verify-provenance"}},"required":["data","_provenance"]},"example":{"url":"https://example.com/","output":"png","viewport":{"width":1280,"height":800}},"openapiOperation":{"operationId":"page_capture","summary":"Page capture: screenshot or PDF of a public URL","description":"Renders one public web page in a real browser (Cloudflare Browser Run, JavaScript enabled) and returns a PNG or JPEG screenshot or a PDF as base64 with its sha256, for agents that need to see or archive a page. Does not log in, click or fill forms, does not capture private or internal hosts, and returns an error rather than a capture larger than 6 MB.\n\nPrice: 0.01 USDC on Base (x402).","x-x402-price-usdc":"0.01","x-x402-amount":"10000","x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.01"}},"x-audience":"developer","x-sample-url":"https://agents.writerslogic.com/api/v1/samples/page-capture","security":[{"x402":[]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["url"],"properties":{"url":{"type":"string","minLength":8,"maxLength":2048,"description":"Public http(s) URL."},"output":{"type":"string","enum":["png","jpeg","pdf"],"default":"png"},"full_page":{"type":"boolean","default":false,"description":"Capture the full scroll height (screenshots only; a PDF is always the whole page)."},"viewport":{"type":"object","additionalProperties":false,"required":["width","height"],"properties":{"width":{"type":"integer","minimum":320,"maximum":1920},"height":{"type":"integer","minimum":320,"maximum":1080}},"description":"Default 1280x800."},"wait_until":{"type":"string","enum":["load","networkidle0"],"default":"load"},"timeout_ms":{"type":"integer","minimum":1000,"maximum":30000,"default":15000,"description":"Page navigation timeout."}}},"example":{"url":"https://example.com/","output":"png","viewport":{"width":1280,"height":800}}}}},"responses":{"200":{"description":"Paid result with provenance","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"url":{"type":"string"},"output":{"type":"string","enum":["png","jpeg","pdf"]},"media_type":{"type":"string"},"bytes":{"type":"integer"},"content_base64":{"type":"string"},"content_sha256":{"type":"string","description":"sha256 of the decoded file bytes."},"viewport":{"type":"object","properties":{"width":{"type":"integer"},"height":{"type":"integer"}}},"full_page":{"type":"boolean"},"captured_at":{"type":"string"},"limits":{"type":"object","properties":{"note":{"type":"string"}}}}},"_provenance":{"type":"object","description":"C2PA-aligned manifest and W3C VC 2.0 (eddsa-jcs-2022) issued by the hub DID; verify at POST /api/v1/verify-provenance"}},"required":["data","_provenance"]}}}},"400":{"description":"Invalid request (no payment consumed)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}}}}}},"401":{"description":"Invalid X-API-KEY","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}}}}}},"402":{"description":"Payment required or invalid","content":{"application/json":{"schema":{"type":"object","description":"x402 v2 PaymentRequired (also base64 in the PAYMENT-REQUIRED header)","properties":{"x402Version":{"type":"integer"},"error":{"type":"string"},"code":{"type":"string"},"resource":{"type":"object"},"accepts":{"type":"array","items":{"type":"object"}},"extensions":{"type":"object"}}}}}},"502":{"description":"Upstream failure; the payment is released or not settled","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}}}}}}}},"links":{"docs":"https://agents.writerslogic.com/docs/page-capture/","docsJson":"https://agents.writerslogic.com/docs/page-capture.json","sample":"https://agents.writerslogic.com/api/v1/samples/page-capture","openapi":"https://agents.writerslogic.com/openapi.json","catalog":"https://agents.writerslogic.com/api/v1/catalog","verifyProvenance":"https://agents.writerslogic.com/api/v1/verify-provenance","index":"https://agents.writerslogic.com/docs/index.json"}}