开发者

Is there a Google Search API I can call, server-side, no strings attached? [closed]

开发者 https://www.devze.com 2023-01-19 06:07 出处:网络
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 years ago.

Improve this question

I would like to use Google Search to power my site search, without having to use Google-supplied JavaScript or overly-specific (if they need me to say “Powered by Google,” that’s fine). I don’t want to send users开发者_StackOverflow中文版 to Google’s domain, and I don’t want them to see a Google Custom Search logo.

Is there an API for this?


There is a Google AJAX Search API, which can also be used by a server-side application:

http://code.google.com/apis/ajaxsearch/documentation/#fonje

The problem with this, however, is that it's limited to 64 results per query, if I remember correctly.


the normal google search API - http://code.google.com/apis/ajaxsearch/documentation/#fonje for non javascript (a.k.a. mostly for server side) - with the sitesearch parameters

the downsite is, with google custom search you have access to something called on demand index a.k.a. you can create and access a more complete index of your site, with the search api above you have only access to the normal google index, which does not offer on demand index


There are examples on the google code playground. You can figure out the url its calling using firebug or some similar tool.

0

精彩评论

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