Paulund
Subscribe
← Changelog

Bullion API1 October 2026, 1 min read

Adding past metal prices to the Bullion API price request

Daily history and the latest price, in one request.

I noticed past prices were easy to miss in the Bullion API docs. They were listed separately from the latest price.

I changed each metal's price request so it can return the latest saved price or daily prices for dates you choose. Someone building a chart can get both from the same request. The docs explain how to ask for past prices.

A shortened example looks like this:

JSON
{
  "metal": "gold",
  "currency": "USD",
  "unit": "troy_oz",
  "series": [
    {
      "frequency": "daily",
      "unit": "troy_oz",
      "observations": [
        { "date": "2025-07-08", "value": "3320.1" },
        { "date": "2025-07-09", "value": "3342.55" }
      ]
    }
  ]
}

Each date has one gold price, ready to plot on a chart.

I chose to return the last recorded price for each weekday. That works for a day-by-day chart, but it doesn't show how prices move during the day. You can ask for up to five years at a time; dates without an available price are left out.

More from Bullion API

Who holds US Treasury debt, country by country, every month.31 October 2026Adding US Treasury holders to the Bullion APISee how much US debt foreign investors, the Federal Reserve and everyone else hold.29 October 2026Adding who holds US federal debt to the Bullion API