Welcome to weblogs.com.pk Sign in | Join | Help

ASP.NET Applications

Discuss and share about ASP.NET Development
Google Search RSS Feeds

Here is my attempt to transform Google Search Results into a RSS feed. This functionality is missing from Google. Test it out and provide some feedback. I have published the feed as a web service at


There is a single function called GetSearchResults with the following signature

GetSearchResults(byval searchPage As string, byval gQuery As String, byval numOfResults As String)

  • searchPage provides the google search page that runs in multiples of 10 with 10 results each page (default on Google). The value for first page is 0
  • gQuery is google query. You can use any set of Google operators here to tune the query
  • numOfResults is the number of results to return per page. Default is 15.

The returned XML is RSS 2.0 compliant. As such, any feed reader can also read the returned XML document.


Using in a Feed Reader

To call this in a feedreader, here is the GET syntax for the web service


In the above, replace the parameter values shown in red with the your query values.

Posted: Friday, January 9, 2009 5:55 PM by aspnet
Filed under: , , , ,


nasir said:

very good!!

this can be used a filter layer on google search, and can have diverse applications like marketing, content filtering ...

# January 10, 2009 10:59 PM

kadnan said:

good stuff. I think Google Alert and Gmail already provides RSS feature.

# January 10, 2009 11:49 PM

Rafay Bin Ali said:

@nasir, @kadnan: thanks for the feedback and appreciation.

Google Alert provides this feature, but requires a google account (from what I understand, though I have never personally subscribed to the feeds) and feeds are not as easy to change or manage.

Plus, since this is a web service, it can be easily integrated into apps.

If you have any ideas on how to further improve it, please let me know.

# January 11, 2009 12:15 AM

kadnan said:

Thanks for explaination. I would suggest you to provide a JSON port as well. It's much lighter than XML.

Also, how will you be dealing with traffic issue on your site?

# January 11, 2009 1:29 PM

Rafay Bin Ali said:

@kadnan, thanks for the feedback. I have not had much experience with JSON. Moreover, the major concern here was to use a format that is widely spread, as well as widely known even outside of the dev community. However, I would definitely look into your suggestion. Thank You.

Iam using services of a shared host to host the web services. To date, the traffic has been well within the allocation. What are your suggestions to deal with potential traffic issues?

# January 11, 2009 10:48 PM

Khurram said:

Using ASP.NET AJAX you can turn any ASMX (ASP.NET WebService) into Script Service, which can be invoked through JSON.

See http://www.asp.net/Ajax/documentation/live/mref/T_System_Web_Script_Services_ScriptServiceAttribute.aspx

# January 13, 2009 1:04 AM

Rafay Bin Ali said:

Thanks for the link khurram. I tried a couple of dev sites and looked into this as well as JSON. From what I gather on the topic, JSON is a way of representing data in a lightweight format. Is this correct? If so, would the data be automatically serialized into a JSON compatible format using ScriptService attribute?

# January 13, 2009 7:16 AM

Khurram said:

Yes, JSON is lightweight and usually a preferred way of data communication when you are using JavaScript.

ScriptService attribute is just a start ;) You need to setup few configurations so that ASP.NET app can understand the request is being made by some JSON client and other such things. http://msdn.microsoft.com/en-us/magazine/cc163499.aspx article explains all the steps in detail.

# January 13, 2009 12:30 PM
Anonymous comments are disabled