Tell me more ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I am trying to get an API that I can use to do searches on my own site.

Google has something called site search and something called custom search. What is the difference?

I make a new site search, then it is listed on a page with "custom search" in the heading. This is really confusing.

I just want an API that I can use to search my site. I would prefer json to xml as the results. And if this service is offered by someone other than Google, that is fine too.

The ones that I create at Google want me to embed a premade search box into my site. I do not want that, I want an API that I can call from PHP or JS.

How can I get this?

share|improve this question

2 Answers

The biggest difference between the two is how the results are displayed. A Custom Search sends you to Google to see the results. The Site Search allows you to integrate the results with your site. I believe that Site Search gives you results in XML format for site integration.

Also Site Search is not free. Custom Search is supported by Adsense.

Since you are looking for the api version, you want site search, since that has an xml api.

share|improve this answer

Try SearchBlox which comes with an api.

share|improve this answer
Please include links when you mentioned products. They are extra helpful! – RandomBen Mar 10 '11 at 2:04
I did download that today, having a little trouble using it, I set it to index, then it only indexed 2 files? Also it gives me a search box to use, not sure how to use it as an API. I may tinker with it some more though. – JD Isaacks Mar 10 '11 at 4:46
Create a custom collection and you can do simple http posts with xml messages - searchblox.com/developers/api – tss Mar 10 '11 at 12:40

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.