Sign in to follow this  

Google AJAX API Search Results

This topic is 3664 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm trying to use Google’s Ajax search API to allow a website to search for content specifically to the site instead of from other sites including Google’s results. Which method of one of Google AJAX Search API class hierarchy allows me to specify that I want Google to search for content only on my site? PS: I tried to comprehend the class hierarchy first and then tried posting on Googles’ API board, but no one seemed to know or could parse what I was asking.

Share this post


Link to post
Share on other sites
I've not used the recent Google APIs, but from what I understand, you should use the GSearch class method .setQueryAddition("site:<yourdomain.com>"); where <yourdomain.com> is your site domain.


Share this post


Link to post
Share on other sites

This topic is 3664 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this