Format for a url that goes to Google image search?

后端 未结 5 1310
一整个雨季
一整个雨季 2021-01-31 07:11

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

- photos of rome
- 

        
相关标签:
5条回答
  • 2021-01-31 07:45

    This is the link that works for me: https://www.google.com/search?q=rome+photos&source=lnms&tbm=isch

    0 讨论(0)
  • 2021-01-31 07:49

    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.

    0 讨论(0)
  • 2021-01-31 07:52
    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.

    0 讨论(0)
  • 2021-01-31 07:56

    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.

    0 讨论(0)
  • 2021-01-31 08:09
    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.

    0 讨论(0)
提交回复
热议问题