I have a web page which has links at the bottom like this:
- photos of rome
-
This is the link that works for me: https://www.google.com/search?q=rome+photos&source=lnms&tbm=isch
Please use below URL for google image search
http://images.google.com/images?um=1&hl=en&safe=active&nfpr=1&q=your_search_query
Replace your_search_query with your own search term. Please note this url will behave differently according to the user agent. Google can identify whether this request comes from a browser or a bot
Also note you can add another query string to navigate through this image search
http://images.google.com/images?um=1&hl=en&safe=active&nfpr=1&q=your_search_query&start=30
This will make the search start from 3rd page. I hope this helps somebody.
https://www.google.com/search?tbm=isch&q=findSomeImage
,So, the only change you have to make, is to add the tbm=isch
option to your urls.
Use the "images" keyword instead of "search" (this should also work for "videos", "maps", etc.)
http://www.google.com/images?q=your+search+terms
https://productforums.google.com/d/msg/websearch/No-YWMdgFp8/l_SNghlwCV0J
Update
Following Chris F Carroll's comment below, I had a look with Fiddler. The /images
request results in a 301 (moved permanently) response with the redirect URL in the format www.google.com/search?q=search+terms&tbm=isch
as described by other answers here.
Contrary to what I said above (taken from the linked article), the /video
request doesn't work. /maps
does work, and doesn't result in a redirect.
http://www.google.com/search?q=<SEARCH TERM>&tbm=isch
The tbm=isch
is the internal google search parameter that determines what kind of search to perform. There doesn't seem to be any official documentation on it, but this page has a decent write up:
Google Search Request Params
EDIT:
It looks like if you don't include the "/search" part of the string, it fills the google searchbox, but doesn't actually execute the search.