Simple PHP script to get google keyword search completion

I am trying to get only the search completion shown in the Google search results for any keyword. For example, completing a search for

http://www.google.com/#hl=en&q=google+keyword+search

is 48,400,000 (results 1-10 of about 48,400,000 for google search)

I tried using CURL but could not find the search results page.

Any help was appreciated.

-1
source share
2 answers

You do not need to do anything that is difficult.

Just use your search API

$search = 'google keyword search';
$results = json_decode( file_get_contents( 'http://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=' . urlencode( $search ) ) );

echo $results->responseData->cursor->estimatedResultCount;
+8
source

-, , , , google.com, - URI-. http://www.google.com/search?hl=en&q=google+keyword+search

-, Google - /search robots.txt. CURL , . , Google . , -, ...

-2

All Articles