Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to programmatically access Google's search engine results?

Does google offer a way to programmatically see their search engine results for a certain query?

I want to build a tracking application so that a user can see what rank on the google results their website is for certain keywords.

EDIT: The behavior of the program would be: every day the program queries Google for the desired phrases, sees what position the user's websites are, and emails the users an update of their positions for their phrases.

I want to be sure to comply with Google's terms of service too.

like image 365
Doug Avatar asked Mar 15 '10 05:03

Doug


People also ask

How do I get data from Google search results?

Google Search inside Google Sheets And now that you have the Google Search results inside the sheet, you can export the Google Search results as a CSV file, publish the sheet as an HTML page (it will refresh automatically) or you can go a step further and write a Google Script that will send you the sheet as PDF daily.

Which search engine does Google use to find results?

Google Search is a fully-automated search engine that uses software known as web crawlers that explore the web regularly to find pages to add to our index.


2 Answers

After finding this question I have been researching as the other answers seem out of date.

The Google search API would be the obvious choice as quoted by other users however it is now been deprecated in favour of Custom Search API.

Although not obvious at first the Custom Search API does allow you to search the entire web. However the bad news is that the order of the results are not the same as a regular web search.

In conclusion it used to be possible however it is no longer. The new API (at a cost) will allow you to search the web to you will not be able to get the ranking back as required.

like image 181
John Avatar answered Sep 19 '22 23:09

John


I know the question is Google specific, but it doesn't hurt to try out other search engines which might be more open to API integration.

Check out DuckDuckGo's API.

like image 23
bluesman Avatar answered Sep 17 '22 23:09

bluesman