i think it is not possible with the help of an ajax call as browser prevents from other origins(See CORS developer.mozilla.org/en-US/docs/Web/HTTP/Access_…) is not supported. What i do in nodejs i do an ajax call to an endpoint in my server and then load the results with the help of request module and once the fetching of results is complete i return the results to the client. In sort you want to create an API in your server side which can fetch results from google server and from google server in the client side you can make a request to your server to load the results from google with the help of the api you created. In short you have scrape results from server side. Since you are using php I found a good web scraper in php https://github.com/FriendsOfPHP/Goutte. Here is the basic idea
client -> Server(your server) ->google.com
client to server the communication will be with the help of ajax and then server to google.com will be with the help of web scraper