The high resolution screenshot API you’ve been searching for.
Table of contents
- Creating an image from a URL
- Additional parameters
- Screenshot examples
- Screenshot part of a page with Selector
- CSS Selectors
- Need help getting started?
With the API, you can automate taking a screenshot of any website.
url param to the
hcti.io/v1/image endpoint, and we’ll generate a screenshot for you. Here’s an example using cURL.
curl -X POST https://hcti.io/v1/image -u 'UserID:APIKey' -d url="https://google.com"
Don’t write code? Don’t worry, you can also do this with our Zapier integration.
To customize your image further, you can take advantage of the following optional parameters.
|css||Inject additional CSS into the page. This is useful when you want to customize the webpage. Such as hiding specific elements (like popups or cookie banners).|
|viewport_width||Set the width of Chrome’s viewport. Defaults to 1366.|
|viewport_height||Set the height of Chrome’s viewport. Defaults to 768.|
|device_scale||This adjusts the pixel ratio for the device. Default: 1. Maximum 3.|
|full_screen||When set to true, the API will generate an image of the entire height of the page.|
|selector||A CSS selector for an element on the webpage. We’ll crop the image to this specific element. For example: |
A full screenshot of
stripe.com. With device scale set to 2, for a super high resolution image.
You can set a
selector to target a specific part of the page.
For example, on Stripe’s homepage, there is an element with the CSS selector
When passing that to the API, we crop to that element only.
We’d be happy to walk you through getting started. Send us an email: email@example.com. We’re experts at generating images and will help you get going using the API.