Google Autocomplete Fun Your task is to create a program which, given an input string, will output the first Google autocomplete result for that search. The format of input/output is up to you.
Rules

Your program must take 1 input, a string, and output the top Google autocomplete/auto-fill suggestions result. The format of input/output is up to you. Just be sure to mention what your I/O format is.
Obviously, accessing the Internet is allowed.
URL shorteners (like bit.ly, TinyURL, etc.) are strictly disallowed. You should fetch your autocomplete results from this URL: http://suggestqueries.google.com/complete/search?client=your_browser&amp;q=your_query or http://google.com/complete/search?client=your_browser&amp;q=your_query. You are allowed to assume any browser name (or string, for that matter) for client. In the program I wrote, I assume Chrome. Any browser name or string should work. You are allowed to pass any options to the webpage as long as you are using some variant of http://suggestqueries.google.com/complete/search.
Please provide an explanation of how your program works. It is not mandatory, but I strongly advise it.
All standard loopholes are strictly forbidden.

Test Cases
These are constantly changing, so edit this post if these become out-of-date.
'how to'
  =&gt; 'how to make slime'
'code golf'
  =&gt; 'code golf languages'
'you'
  =&gt; 'youtube'
'g'
  =&gt; 'google' (why would you google 'google'?)

This is code-golf, so may the shortest code win and the best programmer prosper...
Vim 8 + unimpaired.vim, 93 89 85 70 73 71 bytes


-4 bytes thanks to tsh
-2 bytes thanks to Ian Emnace
-2 bytes thanks to FatalMerlin
-1 byte thanks to tsh/ckjbgames




:s/ /+/g
D:e http://google.us/complete/search?client=gma&amp;q="
d3f";D]yy


As a bonus, the last bytes look like they're winking at you ;D Since this contains non-printing characters, the explanation contains substitutions (and I've replaced the pre-querystring part of the url with [url], for brevity):

:s/ /+/g&lt;CR&gt;D:e [url]?client=gma&amp;q=&lt;C-R&gt;"&lt;CR&gt;d3f";D]yy
:s/ /+/g&lt;CR&gt;                                           " Replace spaces with +
            D                                          " Delete and yank result
             :e                                        " Type :e ('edit' command) and a space
                [url]?client=gma&amp;q=                    " Type the url, except the query
                                   &lt;C-R&gt;"              " Paste from the default register
                                         &lt;CR&gt;          " Execute the command, which opens the response
                                                       "   in a new buffer
                                             d3f"      " Delete through the first three quotation marks
                                                       "   This deletes everything before the suggestion
                                                 ;     " Repeat motion; this jumps to the next \"
                                                  D    " Delete everything from there, leaving only the suggestion
                                                   ]yy " unimpaired.vim C string unescape to handle escaped '


As far as running goes, it works fine if you save it to a file named script and run with vim -s script input.txt on macOS, at least. It doesn't work if you add -u NONE, but it works fine if my .vimrc is empty. I assume it is using something from the system .vimrc to make the URL stuff work. This means, however, that it doesn't work in V, so no TIO link.

Some more test cases:

'what' =&gt; 'whataburger'
'what ' =&gt; 'what time is it' (Seriously? People Google that?)




What I really need is a way to open a URL with spaces in it. Replacing them with + first is just too many bytes!