Users Viewing This Thread
 1 Guest(s)
amatorbalikci.net

Post Reply  Post Thread 
Google API- Number of pages indexed
Author Message
seoguru.bbrij
Senior Member
****


Posts: 500
Group: Registered
Joined: Sep 2007
Status: Offline
Reputation: 0

Country:
Post: #1
Google API- Number of pages indexed

<?php
// include the NuSOAP class
require_once('lib/nusoap.php');
if(isset($_POST['submit'])) { // buton pressed
$mq='site:'.$_POST['url'];
$parameters = array(
'key'=> 'Your_Google_API_Key',
'q'=> $mq,
'start'=> '0',
'maxResults'=>'10',
'filter'=> 'false',
'restrict'=>'',
'safeSearch'=>'false',
'lr'=>'',
'ie'=>'',
'oe'=>''
);
$soapclient=new soapclient('http://api.google.com/GoogleSearch.wsdl','wsdl');
$results = $soapclient->call('doGoogleSearch',$parameters);
$no_pages=$results['estimatedTotalResultsCount'];
}
?>

09-11-2007 09:32 AM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: