<?
$data_string = array("website"=>"example.com","size"=>"small","color1"=>"e6e4d6","color2"=>"424242","color3"=>"000000");
$ch = curl_init('https://api.verifyup.com/v1/widget?username=johnsmith&api_key=8d3839f1154750d191e792dc0b667fdd');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($ch);
print $result;
?>
api_key = the API Key uniquely assigned to your account found on the settings page
website = the website/url that is setup on your account to display for the widget
size = the size of the widget you'd like to display, options are tiny | small | medium | large
color1 = hex value for widget background
color2 = hex value for the top header and border color
color3 = hex value for the text colors
<?
$data_string = array( "website"=>"example.com");
$ch = curl_init('https://api.verifyup.com/v1/details?username=johnsmith&api_key=8d3839f1154750d191e792dc0b667fdd');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($ch);
$pieces = explode("|", $result);
echo "Website: ".$pieces[0];
echo "Status: ".$pieces[1];
echo "Uptime: ".$pieces[2];
echo "Score: ".$pieces[3];
echo "Total Checks: ".$pieces[4];
echo "Total Up: ".$pieces[5];
echo "Screenshot: ".$pieces[6];
echo "Last Check: ".$pieces[7];
?>
api_key = the API Key uniquely assigned to your account found on the settings page
website = the website/url that is setup on your account to display for the widget
<?
$data_string = array("website"=>"verifyup.com","thumb"=>"yes","report"=>"full");
$ch = curl_init('https://api.verifyup.com/v1/check?username=johnsmith&api_key=8d3839f1154750d191e792dc0b667fdd');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($ch);
$pieces = explode("|", $result);
echo "Website: ".$pieces[0];
echo "Status: ".$pieces[1];
echo "Thumb: ".$pieces[2];
echo "DNS: ".$pieces[3];
echo "Size: ".$pieces[4];
echo "Score: ".$pieces[5];
echo "Requests: ".$pieces[6];
echo "Load Time: ".$pieces[7];
?>
api_key = the API Key uniquely assigned to your account found on the settings page
website = the website/url that you'd like to get details about(does not have to be setup on your account)
thumb = whether or not to have us generate a screenshot of the website/url yes | no
report = the kind of information you'd like to receive basic | full
verifyup.com|UP|https://api.verifyup.com/thumbs/2014/August/16/1408256190.jpg|205.196.221.71,ns1.dreamhost.com,|1361636|79|29|0.76
MAX API REQUESTS ALREADY USED THIS HOUR
API USERNAME AND OR API KEY INVALID
UNABLE TO PROCESS REQUEST
WEBSITE NOT ALLOWED