Google news API using ASP.NET C#

Google provides huge range of API for searching,maps,news and much more..
This article is related to Google news API , Just enter keyword for news and you will get results for keyword. I have used Ajax post method for Google news API.

Introduction

This article is reagarding google news API. Google provides API for news , We have to just request and it will provide result in json and xml format. I have used AJAX POST methos for request to Google API.

We have to provide keyword to get data from Google API. All the procedure and Code snippet i have written below.

BackGround

I have used HttpWebRequest and HttpWebResponse for retrieving news from Google API URL.I have one textbox for search parameters in using Google API.When we click enter on textbox after type keyword in textbox, it calls JavaScript GetNews() function.From JavaScript function, Ajax post method calls web method from code behind.Google News content has been retrieved using HttpWebRequest and HttpWebRequest, this WebMethod returns data into array format from code behind.Now Div having name "DivNews" has been appended for showing news content using jQuery.For further details, please take a look at the code.