5

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

Manjot
  • 11,166
  • 9
  • 38
  • 49

2 Answers2

4

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.

ChssPly76
  • 99,456
  • 24
  • 206
  • 195
3

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.

Zinx
  • 2,291
  • 3
  • 28
  • 37