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

前端 未结 4 1707
陌清茗
陌清茗 2020-12-02 20:31

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 r

相关标签:
4条回答
  • 2020-12-02 20:42

    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

    0 讨论(0)
  • 2020-12-02 20:43

    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.

    0 讨论(0)
  • 2020-12-02 20:50

    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 讨论(0)
  • 2020-12-02 20:56

    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.

    0 讨论(0)
提交回复
热议问题