Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Searching google images from java code

Tags:

java

I am writing a java code. I want to search a string on google and google images using my java code.

Previously i wasnt even able to search text and then i had to register with google and then i could do it.

Now i want to search a string against googleimages

How can i do it?

Regards Manjot

like image 292
Manjot Avatar asked Oct 07 '09 05:10

Manjot


2 Answers

It's pretty similar to text search, you just need to specify the URL as

http://ajax.googleapis.com/ajax/services/search/images

Standard arguments are described here, image -specific ones are here.

like image 176
ChssPly76 Avatar answered Sep 24 '22 05:09

ChssPly76


I agree with ChssPly76, but you have to include version number in URL as following

http://ajax.googleapis.com/ajax/services/search/images?v=1.0&q=

put q= watever you want to search for.

I hope it will help you. Cheers.

like image 39
Zinx Avatar answered Sep 20 '22 05:09

Zinx