AgentAPIGate
Back to Catalog
GET /v1/web/page/screenshotPack: search·MCP Tool: web_page_screenshot

SSRF-Hardened Headless Browser Page Screenshot

Capture crisp PNG or JPEG screenshots of any public webpage in headless Chromium with dual-layer SSRF protection.

API Key Price:$0.0030 / call
x402 Base USDC:$0.0030 / call
Partner Credit:eligible
1. Parameters & Controls
Public https:// or http:// webpage URL to capture
Output image format: jpeg (compact) or png (lossless)
Viewport width in pixels (320-1920, default: 1280)
Viewport height in pixels (320-1440, default: 800)
Capture full scrollable page height (default: false)
Get $0.25 Free Key →
curl -sG "https://api.agentapigate.ai/v1/web/page/screenshot" \
  --data-urlencode "url=https://example.com" \
  --data-urlencode "format=md" \
  --data-urlencode "width=1280" \
  --data-urlencode "height=720" \
  -H "Authorization: Bearer aag_live_YOUR_KEY" \
  -H "X-AAG-Max-Cost: 0.0100"
1-Click Agent IDE Install
Add to Cursor (1-Click OAuth)
-99% tokens
# SSRF-Hardened Headless Browser Page Screenshot (`web.page.screenshot`)
**url**: https://example.com/ · **title**: Example Domain · **mime_type**: image/jpeg · **width**: 1280 · **height**: 720 · **byte_length**: 55343 · **image_base64**: /9j/4AAQSkZJRgABAQAAAQABAAD/4gHYSUNDX1BST0ZJTEUAAQEAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAH4AABAAEAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAACRyWFlaAAABFAAAABRnWFlaAAABKAAAABRiWFlaAAABPAAAABR3dHB0AAABUAAAABRyVFJDAAABZAAAAChnVFJDAAABZAAAAChiVFJDAAABZAAAAChjcHJ0AAABjAAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAHMAUgBHAEJYWVogAAAAAAAAb6IAADj1AAADkFhZWiAAAAAAAABimQAAt4UAABjaWFlaIAAAAAAAACSgAAAPhAAAts9YWVogAAAAAAAA9tYAAQAAAADTLXBhcmEAAAAAAAQAAAACZmYAAPKnAAANWQAAE9AAAApbAAAAAAAAAABtbHVjAAAAAAAAAAEAAAAM…

Endpoint Parameters, Cost & Token Economy Reference

Endpoint ID: web.page.screenshot · Method: GET
ParameterTypeReqSample / DefaultDescription
urlstringrequiredhttps://example.comPublic https:// or http:// webpage URL to capture
formatstringoptionaljpegOutput image format: jpeg (compact) or png (lossless)
widthnumberoptional1280Viewport width in pixels (320-1920, default: 1280)
heightnumberoptional720Viewport height in pixels (320-1440, default: 800)
full_pagebooleanoptionalfalseCapture full scrollable page height (default: false)
formatenumoptionaljson | compact | mdResponse format; compact or md cuts LLM tokens.
dry_run0 | 1optional1Returns exact pre-flight price quote & validation at $0.00 cost.
Access Rail / MetricValuePolicy & SLA
API Key (PAYG)$0.0030 / call$0/mo · Balance never expires
Remote MCP Toolweb_page_screenshotOAuth 2.1 Hub & /mcp/search
x402 Base USDC$0.0030 / callZero-signup USDC enabled
P50 Latency1327 ms$0 billed on empty or 4xx/5xx
Token Economy73618t → 211t (-99%)Partner credit: eligible

More Search & Web Real-Time APIs

Frequently Asked Questions

How do I call SSRF-Hardened Headless Browser Page Screenshot (web.page.screenshot) over REST and Remote MCP?

Send GET requests to https://api.agentapigate.ai/v1/web/page/screenshot with an aag_live_* / aag_agent_* Bearer key, pay per call via x402 USDC, or call MCP tool web_page_screenshot on https://mcp.agentapigate.ai/mcp.

What does web.page.screenshot cost per call and are failed calls billed?

Each successful HTTP 200 response costs $0.003 USD from a non-expiring PAYG balance ($0/month minimum). Upstream errors, empty responses, and ?dry_run=1 pre-flight quotes always bill $0.00.

How does ?format=md or ?format=compact optimize AI agent token usage on web.page.screenshot?

Passing ?format=md transforms the response into normalized Markdown (~211 tokens vs ~73618 raw tokens, saving 99% of LLM context budget) while preserving structured JSON via ?format=json.

Can I restrict an AI agent key to only search endpoints with a daily USD cap?

Yes. Create a scoped aag_agent_* sub-key via POST /v1/keys with allowed_packs: ["search"], optional allowed_endpoints: ["web.page.screenshot"], read_only: true, and a hard daily_cap_usd enforced atomically in Redis.