generate_screenshot_api_url($options); // $api_url = 'https://api.screenshotmachine.com?key=01a38f&url=tech4biz.io&dimension=1920xfull&format=jpg&cacheLimit=0&delay=0&zoom=0&crop=600'; // https://api.screenshotmachine.com?key=01a38f&url=tech4biz.io&dimension=1920xfull&format=jpg&cacheLimit=0&delay=0&zoom=0&crop=600 // https://api.screenshotmachine.com?key=01a38f&url=screenshotmachine.com&dimension=1024x768 //put link to your html code echo '' . PHP_EOL; //or save screenshot as an image $output_file = 'output.png'; file_put_contents($output_file, file_get_contents($api_url)); echo 'Screenshot saved as ' . $output_file . PHP_EOL;