<!-- see http://www.opentracker.net/examples/php_api_example.php for php enabled version --?>
<?php
$admin =        "login=demo@opentracker.net";
$pwd =          "password=demo123";
$site =         "site=www.opentracker.net";
$period =       "period=4w";

// get the data from the api
$json = file_get_contents("http://api.opentracker.net/api/trends/trends_summary.jsp?$admin&$pwd&$site&$period");

// transform to object
$obj = json_decode($json, true);


?>

<html>
<head>

</head>
<body>
<?php echo $obj["resultsList"][1]["selected period"]; ?>
</body>
</html>