Machine-readable: OpenAPI 3.1 specification (JSON)
Screenshot
The Screenshot Service provides a screenshot method that allows you to
capture screenshots or thumbnails of any website. You can choose to render
the webpage using either a desktop or mobile browser simulation.
Additionally, the captured image can be resized to specified dimensions and
output in either JPEG, PNG or PDF formats, offering flexible options for your
screenshot needs.
To get access to the methods below, you need an API token for this web service. You can create one by
clicking on the button below.
The Screenshot methods:
GET /api/v1/{token}/screenshot/nop
Example nop requests:
curl "https://api.eu-west.hqapi.com/api/v1/YourToken01/screenshot/nop"
The response:
{}
Try it now!
We have created a page with all the arguments and one of your tokens to test this nop method out yourself.Errors and limits
A successful call returns the image or PDF itself, with HTTP status 200. Anything else
returns JSON with the HTTP status repeated in code and a human-readable
message:
{"code": 429, "message": "You have exceeded the maximum number of concurrent calls."}
| Status | Meaning | What to do |
|---|---|---|
| 400 | A parameter is missing or not valid, for example a URL that is not http(s) or does not resolve to a public address. | Fix the request; the message names the parameter. Do not retry unchanged. |
| 401 | The token is unknown, or not valid for this API. | Check the token on this page when logged in. |
| 402 | The token is inactive. | Check your subscription. |
| 429 | More calls are running at the same time on this token than your plan allows. | Retry after a short wait, for example after 1, 2 and 4 seconds. |
| 500 | The page could not be rendered. | Retry once; if it keeps failing, the page itself is the problem. |
| 502 | Bad gateway: a part of the service did not answer. | Retry in a minute. |
| 504 | No screenshot within 62 seconds. | Retry later; a lower delay or no full_page makes it faster. |
Limits
browser_width600 to 1920,browser_height400 to 8000 pixels.mobileuses a 640 by 1136 window.image_width32 to 1920 andimage_height32 to 8000 pixels, and at most twice the browser size per side: an image can be scaled up at most 2 times.full_pagecaptures at most 8000 pixels of the page's height.delay0 to 5000 milliseconds, and at least 3000 withhide_cookie_popups.jpeg_quality1 to 100.- A page gets 15 seconds to load; one that is still loading is stopped and captured as it is. The API answers within 62 seconds.
- Only public
httpandhttpsaddresses: no localhost or internal networks. - How many calls may run at the same time, and how many a month, depends on your plan: see pricing.
- Call the API from your server, not from an
<img>tag in a web page: a GET request that comes from another site (with aRefererheader) gets a "blocked" image, so your token is not exposed and used by others.




