I'm querying Google websearch throught the API, and i can't seem to get the filtering to work, as i get 7 results from the same host for my query. I use PHP, with the latest NUSOAP, and the following params: $params = array( 'key' => $googleapikey, 'q' => $query, 'start' => 0, 'maxResults' => 1, 'filter' => true, 'restrict' => '', 'safeSearch' => false, 'lr' => '', 'ie' => '', 'oe' => '' ); PHP: Anyone got a clue as to what i'm doing wrong / what is wrong?
Try putting quotes around the values: $params = array( 'key' => $googleapikey, 'q' => $query, 'start' => '0', 'maxResults' => '1', 'filter' => 'true', 'restrict' => '', 'safeSearch' => 'false', 'lr' => '', 'ie' => '', 'oe' => '' ); PHP: