Take the 2-minute tour ×
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
add comment

1 Answer 1

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
add comment

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.