API - Minimize

$minimize_url = file_get_contents('http://fy.to/api.php?url=http://www.long_url.com');

API - Expand

$long_url = file_get_contents('http://fy.to/api.php?key=w');

API - Stats

$stats = json_decode(file_get_contents('http://fy.to/api.php?stats=1&since=Yesterday'));

$stats = json_decode(file_get_contents('http://fy.to/api.php?stats=1'));