Answer the question
In order to leave comments, you need to log in
Does the Google Ajax API Search Images have image filters?
Here is the code:
function google_search_images ($search){
$json = file_get_contents('http://ajax.googleapis.com/ajax/services/search/images?v=1.0&rsz=large&q='.urlencode($search).'&start=0');
$data = json_decode($json);
$img = array();
if($data->responseData->cursor->estimatedResultCount > 0) {
foreach ($data->responseData->results as $v){
$img[] = $v->unescapedUrl;
}
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question