Note- Use https:// in the url.
<?php $response = file_get_contents('https://unfurl.io/api/v2/preview?api_token=yourapitoken&url=https://www.google.com'; echo $response; ?>