Skip to content
js
const request = require('request');

const options = {
  method: 'POST',
  url: 'https://api.doppio.sh/v1/render/screenshot/sync',
  headers: {
    'Authorization': 'Bearer <YOUR API KEY>',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    page: {
      screenshot: {
        fullPage: true,
        type: 'webp'
      },
      goto: {
        url: 'https://www.spacejam.com/1996'
      }
    }
  })
};

request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

All rights reserved