开发者

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

开发者 https://www.devze.com 2022-12-22 18:40 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 4 days ago.

The community reviewed whether to reopen this question 4 days ago and left it closed:

Original close reason(s) were not resolved

Improve this question

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 th开发者_运维问答e 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.


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.


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.


Try google custom search api. Get a developer API key from google and get a cx code for search engine. The procedure is given in my blog http://preciselyconcise.com/apis_and_installations/search_google_programmatically.php


Yes, Google provides a search API that you can use:

The Google AJAX Search API lets you put Google Search in your web pages with JavaScript. You can embed a simple, dynamic search box and display search results in your own web pages or use the results in innovative, programmatic ways. See the examples below for inspiration.

Don't let the name fool you, this API can be used for more than just JavaScript on a webpage.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号