Data feed

Metal prices for your own software

A plain JSON feed of gold, silver, platinum and palladium prices. Use it to price products, build quotes or drive a display, without a widget in sight.

The data feed is part of the paid plan, with a 1-day free trial.

// Sample reply for one pair. Figures are examples.
{
  "success": true,
  "xauusd_bid": 4127.10,
  "xauusd_ask": 4128.10,
  "xauusd_change_dollar": 17.30,
  "xauusd_change_percent": "0.42%",
  "xauusd_high": 4139.80,
  "xauusd_low": 4102.40
}
How it works

Three steps, all on one page of your account

The Data Feed & Billing page walks you through it and builds your feed link for you.

Step 1

Tell us your server

Enter the IP address of the server that will ask for prices. Your feed answers only to that address.

Step 2

Choose your pairs

A pair is a price you want, such as gold in US dollars (XAUUSD) or silver in Canadian dollars (XAGCAD). Add as many as you need.

Step 3

Copy your link

The page builds the link as you go. Copy it, test it with one button, and hand it to your developer.

The request

One GET request, one JSON reply

Your link holds your key followed by the pairs you want. Request it from your server and read the reply. There is no SDK to install and nothing to sign.

  • Works from any language that can make a web request
  • Ask for one pair or several in the same request
  • Numbered error codes that say what to fix
# Your link, shown in your account
GET /goldfeed/paid/YOUR-KEY/XAUUSD/XAGUSD

# PHP
$json = file_get_contents($feedLink);
$data = json_decode($json, true);
$gold = $data['xauusd_ask'];
The reply

What you get for each pair

Field names start with the pair in lower case, so a request for XAUUSD returns fields beginning with xauusd.

FieldMeaningSample
xauusd_bidCurrent bid price4127.10
xauusd_askCurrent ask price4128.10
xauusd_change_dollarChange on the day, as an amount17.30
xauusd_change_percentChange on the day, as a percentage0.42%
xauusd_highHighest price of the day4139.80
xauusd_lowLowest price of the day4102.40

Sample values are examples, not live prices.

Uses

What customers build with it

Product pricing

Reprice coins, bars and jewellery in your shop from the metal price plus your own premium.

Quotes and buy prices

Feed your quoting or point-of-sale software so staff always work from the same number.

Displays and apps

Drive an in-store screen, a mobile app or an internal dashboard in your own design.

Questions

Data feed questions

Can I call the feed from a web page in the browser?

No. The feed is made for servers and answers only to the IP address you registered. To show prices on a web page, use a widget, or have your server request the feed and pass the numbers to your page.

What happens if my server's IP address changes?

Update it on the Data Feed & Billing page. The change takes effect straight away and your link stays the same.

Which pairs can I ask for?

Gold, silver, platinum and palladium against the currencies we cover. You choose your pairs in your account and can change the list whenever you need to.

How does the free trial work?

When you activate the paid plan you get one day to try everything, including the data feed. If you cancel within that day you are not charged. After that the plan renews monthly until you cancel.

May I resell or republish the prices?

The feed is for use in your own business. Reselling or redistributing the data is not allowed. The Terms of Service set out the details.

Try the data feed for a day

Create an account, open Data Feed & Billing and start the trial. Your link is ready in a couple of minutes.