Precious Metals Spot Prices Service
This REST service will provide the prices in U.S. Dollars for various precious metals. The prices are updated daily at the end of the business day and are available in XML or JSON format.
The format of the XML file is similar to the one shown below.
<?xml version="1.0" encoding="UTF-8"?> <SpotPrices> <date>2015-03-05</date> <gold>1200.01</gold> <silver>16.25</silver> <platinum>1185.00</platinum> </SpotPrices>
Note that this service is for informational purposes only and is not guaranteed to be accurate. We will try to correct issues if they are pointed out to us, but will not accept responsibility for incorrect data or service failure.
To use this service, you should issue an HTTP GET request against this URL with the Accept header set to "application/xml" or "application/json". Alternatively, a request may be issued with a URL parameter of "f" set equal to "xml" or "json" (i.e., "?f=xml" or "?f=json").
You can download a sample perl script to fetch the spot prices and display them on the screen.
Note: Use of this service is subject to the Terms of Service.