Screenshot a URL or HTML
Request
- Base URL: https://shotlane.dev
- URL: https://shotlane.dev/v1/screenshot
- Auth: one of:
- API key in header X-API-Key
- API key in query parameter access_key
Query parameters
Page to render (https:// assumed).
Raw HTML to render instead of url (prefer POST).
Markdown to render as a styled document instead of url/html (prefer POST).
Your own proxy, e.g. http://user:pass@host:port (http, https, socks5).
Viewport width.
Viewport height.
Capture the full scrollable page.
Device scale factor.
Capture only the first element matching this CSS selector.
Emulate prefers-color-scheme: dark.
Hide cookie consent banners.
Block ad and tracker requests.
Extra wait after load (ms).
Navigation wait condition.
JPEG/WebP quality.
Cache seconds; cache hits are free.
json: hosted 24 h link + details instead of the file.
Upload the result to this S3-compatible bucket (returns JSON).
Object key/path in the bucket.
https endpoint for non-AWS storage (R2, B2, MinIO).
Bucket region (default us-east-1, or auto with an endpoint).
Access key for the bucket.
Secret key for the bucket.
Object ACL.
Viewport preset.
CSS to inject.
JavaScript to run before capture.
Comma-separated selectors to hide.
Selector to click before capture.
Selector to wait for.
JSON object of extra headers (target host only).
Cookies for the target URL, 'a=1; b=2'.
IANA time zone, e.g. Europe/Berlin.
Browser locale and Accept-Language, e.g. de-DE.
Geolocation latitude (with longitude).
Geolocation longitude (with latitude).
Emulate prefers-reduced-motion.
CSS media type.
Render without JavaScript.
Close or hide sign-in/newsletter/app modals.
Block analytics and tracking requests.
Block chat widgets (Intercom, Drift, Crisp...).
Comma-separated URL patterns to block (* wildcards).
Comma-separated resource types to block: image, media, font, stylesheet, script, xhr, fetch, websocket, other.
Selector to hover before capture.
Selector to scroll into view before capture.
Selector that must disappear first (e.g. a spinner).
HTTP basic auth 'user:password' for the target origin.
Navigation timeout in seconds.
Fail (not charged) if the page answers 4xx/5xx.
Fail (not charged) if the page text contains this.
Clip region x.
Clip region y.
Clip region width.
Clip region height.
Resize the result to this width.
Resize the result to this height.
How to fit when both sizes are set.
Response
Rendered file
Changes
No recorded changes to this operation across all 1 revision of this API.