Developers send a page URL and the options they want to one endpoint, https://api.urlshot.io/v1/screenshot. Each request authenticates with a Bearer API key created in the dashboard. Pages load in headless Chromium. Scripts run, web fonts load and lazy-loaded content appears. By default the screenshot waits for the page to load and its network to go quiet, for up to 3 seconds. The response is the screenshot image itself. It can be written to a file or uploaded to storage. urlshot.io returns a JSON error envelope for every non-2xx response. No SDK is needed. Any language that can send an HTTP request can use the API. Code examples cover cURL, Node.js, Python, PHP, Ruby, Java, C# / .NET and Go.
Capabilities
The full_page=true option captures the whole page from top to bottom in one image.
Passing a CSS selector returns just that element at its own size, even when it is taller than the screen.
The viewport_width parameter accepts widths from 200 to 3840 pixels, and device_scale_factor sets pixel density up to 3×.
The block_cookie_banners=true option hides consent dialogs from the major platforms and unlocks page scrolling.
A server can sign a screenshot URL so it works in an img tag without exposing the secret key. Signed URLs are included on every plan.
When to use it
You need website thumbnails.
You want to embed screenshots in your own pages.
You need to capture one element of a page, such as a pricing table, a chart or an embedded post.