LabStack Docs
Login Signup

Webpage Image

Convert webpage to an image



Parameter Description Type Required Default
url Webpage URL String Yes
language Language locale for webpage rendering String No en-US
ttl Max number of seconds to cache the webpage Number No 604800
full_page Enables full length webpage Boolean No false
retina Enables retina display Boolean No false
width Webpage viewport width Number No 800
height Webpage viewport height Number No 600
delay Number of milliseconds to delay Number No 0
curl \
  -X GET \
  -H 'Authorization: Bearer <API_KEY>'
c := labstack.NewClient("<API_KEY>")
s := c.Webpage()
res, err := s.Image(&webpage.ImageRequest{
  URL: "",
if err != nil {
Client client = new Client("<API_KEY>");
WebpageService service = client.webpage();
try {
  ImageRequest request = ImageRequest.builder().url("").build();
  ImageResponse response = service.image(request);
} catch (LabStackException e) {
const client = new Client("<API_KEY>")
const service = client.webpage();
try {
  const response = await service.image({
    url: ""
} catch (error) {
client = Client("<API_KEY>")
service = client.webpage()
  response = service.image({
    "url": ""
except LabStackError as e:


  "image": "",
  "cached": false,
  "took": 3189,
  "generated_at": "2019-07-19T03:57:08+00:00"
Parameter Description Type
image Image URL String
cached Image is cached or not Boolean
took Number of milliseconds took to generate the image Number
generated_at Generated timestamp Number