skip to main | skip to sidebar

Google AJAX Search APIThe Google AJAX Search API provides simple web objects that perform inline searches over a number of Google services (Web Search, Local Search, Video Search, Blog Search, News Search, Book Search, Image Search, and Patent Search).

It is an old news that: The API exposes a raw RESTful interface that returns JSON encoded results so it would be easily processed by most languages and runtimes.

Although API JavaScript objects allow you to set site restrictions, On RESTful Interface nothing was said on how to do so using the Standard URL Arguments..!

Enough intro.. How to fix that?
You would normally create HTTP request and send the Standard URL Arguments. Particularly the search expression 'q' can be something like 'Google'.
What you need to do is to change it to
'Google site:moretechtips.net' in case you are doing a web search,
and
'Google blogurl:moretechtips.net' in case of a Blog Search..
and
'Google source:bbc' in case of a news Search..

Check my 4KB jQuery plugin using RESTful Interface of AJAX Search API to replace the 118KB Google Blog Bar!

0 comments

Post a Comment

Thank you for taking the time to comment..But don't waste it on spamming!

Recent Posts

Mike

Mike MoreAfter few years as a web developer, I started to like blogging as a way to improve my skills and to share knowledge too. My favorite topics are jQuery, JavaScript, ASP.Net, XML, Twitter, Google.

Subscribe by email

Enter your email address:

or via RSS Feed

Now, take a break

<connect></connect>