Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Format for a url that goes to Google image search?

I have a web page which has links at the bottom like this:

- <a href='http://www.google.com/q?rome+photos'>photos of rome</a> - <a href='http://www.google.com/q?paris+photos'>photos of paris</a> - <a href='http://www.google.com/q?london+photos'>photos of london</a> 

The idea is that if somebody clicks we go to Google search image page and we search for those images of those cities.

The questions are:

  1. what's the right URL for starting an image search in Google
  2. is there a place in Google documentation where I can find this ? (I searched and could not find it)
  3. does Google restrict this type of usage for some reasons?

Edit: The 3rd point is very important to me: it's okay to work out the url from blogs and others but the question remains: is google okay with this ? will it ever discourage this approach ? if so then all my urls would become suddenly worth nothing

like image 235
Zo72 Avatar asked Feb 03 '14 14:02

Zo72


People also ask

What is the URL for a Google Image Search?

Go to images.google.com. Search for an image.

How do I create a URL for an image?

How to create a URL for an image using Imgur. By far one of the easiest image-to-URL converters on the market. Go to the Imgur website, then on the top left click the 'New post' button. Then you can drag an image into the box or you can select the image from your desktop or another source.

What is the URL for images?

What is an image URL? A URL is a web address that specifies location. Therefore, an image URL is a web address that specifies the location of an image. Having an image URL makes it easy to share.

How do I use Google image URL in HTML?

Go to photos.google.com and open any image that you wish to embed in your website. Tap the Share Icon (video tutorial) and then click the Get Link button to generate a shareable link of that image. Go to j.mp/EmbedGooglePhotos, paste that link and it will instantly generate the embed code for your selected picture.


2 Answers

  1. url: https://www.google.com/search?tbm=isch&q=findSomeImage,
  2. Nothing official that I'm aware of, but this blog has some documentation.
  3. Nope, no limit you should worry about if you're manually clicking the urls. (I'm sure google has some kind of flood protection against bots, though)

So, the only change you have to make, is to add the tbm=isch option to your urls.

like image 107
Cerbrus Avatar answered Sep 27 '22 21:09

Cerbrus


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.

like image 33
Stephen Wright Avatar answered Sep 27 '22 22:09

Stephen Wright