7

Whenever I type a search query in Google Search, I am presented with long and complicated URLs like this one:

https://www.google.com/#hl=en&tbo=d&output=search&sclient=psy-ab&q=get+google+search+URL&oq=get+google+search+URL&gs_l=hp.3..0i30j0i8i30l5j0i22l2.755.6361.1.6653.36.21.6.6.7.0.450.3055.9j9j1j1j1.21.0.les%3B..0.0...1c.1.QWiPCjGahHw&psj=1&bav=on.2,or.r_gc.r_pw.r_cp.r_qf.&bvm=bv.41642243,d.dmQ&fp=9f9dd1f0efa38569&biw=1366&bih=631

Is there a more concise way to write Google Search URLs, without any unnecessary parameters?

2

4 Answers 4

9

It is possible to generate more concise Google Search URLs, as shown here: https://www.google.com/search?q=%22Stack+Exchange%22+OR+StackOverflow

This URL corresponds to the search query "Stack Exchange" OR StackOverflow. All you need to do is write the search string after https://www.google.com/search?q=., and this will take you to the search results page for that query.

2

most simple and short solutions include:

1

You can replace the search?q= with #q=. In most contexts (though not StackOverflow answers) you can also get rid of the https://.

The %22 or %20 (encoding for a space character) can be replaced with + to make it shorter and easier to read.

You can even get rid of an o or e in google.com, but that doesn't seem worth the possible confusion IMO. (This only works if you don't specify HTTPS - do it with the https and let it redirect you to https.)

So, I believe that the shortest simple form of the original query - without using a URshortenerer - is this:

gogle.com#q=get+google+search+URL

[edit: removed the slash from '.com/#q' as per @Adám]

2
0

The shorter "#q=" syntax doesn't seem to work for me anymore; "search?q=" still works fine. Time to rewrite some of my scripts!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.