i read your post on
simple php script to retrieve google keyword search completion
and i was wondering how would you go ‘echo’ the next page?
here’s my script..
$search = ‘query’;
$x = json_decode( file_get_contents(
‘http://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=‘
. urlencode( $search ) ) );echo
$x->responseData->results[0]->url;
i was able to ‘echo’ out the url, i am stucked in going to the next page and ‘echo’ out the next url’s
thanks sir
You change the index:
To loop through all:
You can inspect the complete result with
var_dump($x);.To retrieve another page of results, you can use the
startparameter, e.g.:You can request 8 results instead of 4 with
rsz=large.