Random Fact API
<?php
$contents = file_get_contents("https://api.tylermwise.uk/v1/randomfact");
$data = json_decode($contents);
?><?php
echo $data->credit;
echo $data->fact;
?>{
"credit": "API Data from <a href='https://dev.tylermwise.com/randomfact'>tylermwise.com</a>",
"fact": "A random fact will appear here!"
}Random Fact
<?php echo $data->fact; ?>API Credit
Last updated