Google search in browsers is usually nothing but loading appropriate Google page and letting the user use it.
In principle, you can hide the page, show your own controls for search options, generate your own HTTP request using
], get HTTP response from Google and even format it in your way. But why? In my opinion, just showing the Google search page is the safest; this way, you won't depend on any changes Google may make.