If you want to take right results for entry pages you need to use following parameters:
$siteId - unique site identificator, it sets at config file 'includes/config.php'
$apiKey - api key for your website
$outputType - it's a type og your output, you need set it as 'XML', 'PHP' or 'JSON'
XML - return results at XML format, PHP - serialize array, JSON - JSON format