Render a URL or HTML to PDF
Request
- Base URL: https://shotlane.dev
- URL: https://shotlane.dev/v1/pdf
- Auth: one of:
- API key in header X-API-Key
- API key in query parameter access_key
Request body
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.
All margins, e.g. 1cm (or margin_top/right/bottom/left).
Add a '1 / N' footer.
Header HTML (pageNumber, totalPages, date, title, url classes).
Footer HTML.
Pages to keep, e.g. 1-3, 5.
Custom page width (with pdf_height), e.g. 100mm.
Custom page height.
Diagonal watermark text on every page.
Encrypt with this password (AES-256).
Response
Changes
No recorded changes to this operation across all 1 revision of this API.