ASPForums.Net RSS Feed additions to the content that appears on ASPForums.Net(c) 2019 All rights reserved.Free API to get Gold and Silver rates as per market in ASP.Net<p>After lot of searching I managed to find one free international API that for Gold in USD</p> <pre class="brush: csharp">protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { string url = &#34;;trim_start={0}&amp;trim_end={1}&amp;collapse=daily&amp;transformation=&amp;commit=Refine&#34;; DateTime today = DateTime.Now; url = string.Format(url, today.AddDays(-1).ToString(&#34;yyyy-MM-dd&#34;), today.AddDays(-1).ToString(&#34;yyyy-MM-dd&#34;)); using (System.Net.WebClient client = new System.Net.WebClient()) { string xml = client.DownloadString(url); System.Xml.XmlDocument doc = new System.Xml.XmlDocument(); doc.LoadXml(xml); string rate = doc.SelectNodes(&#34;/dataset/data/datum/datum&#34;)[1].InnerText; } }</pre> <p>&nbsp;</p>, 18 Jan 2013 04:17:46 GMT