Skip to content
Free data

Gold Price API

Cached indicative metals prices and selected macro data in JSON. No API key is needed to view the responses. Use is subject to our Terms of Service. Published widget permission is limited to the hosted gold-price widget. Other commercial use or automated extraction requires authorization; this page does not grant blanket rights to redistribute every series.

Try it right now
curl https://goldmarketdaily.com/wp-json/gmd/v1/metals

The examples below show GET requests and response formats. Technical access, including CORS availability, does not override our terms or upstream data rights.

Indicative spot-price snapshot

GET /wp-json/gmd/v1/metals

Cached indicative prices for four precious metals, with comparison fields where available. Read the source and quote timestamp; this response is not an exchange settlement or an executable price.

{
  "metals":            { "gold": 4349.70, "silver": 64.62, "platinum": 1802, "palladium": 1320 },
  "metals_change_perc":{ "gold": 0.87, "silver": 2.08, "platinum": 1.24, "palladium": 1.07 },
  "prev_close":        { "gold": 4312, "silver": 63.30, "platinum": 1780, "palladium": 1306 },
  "timestamp": 1789178521,
  "fetched_at": 1789178544,
  "source": "gold-api.com",
  "cached": true
}

Prices are US dollars per troy ounce. timestamp identifies the quote snapshot; fetched_at identifies when GMD fetched it. A recent fetch does not make an older quote current. Check both times, the source and any stale-data fields before using a response.

Recorded daily gold snapshots

GET /wp-json/gmd/v1/gold-history

{ "history": [ { "date": "2026-08-13", "close": 4325.70 }, ... ], "count": 30 }

Daily stored observations, oldest first. The response uses a legacy close field name, but these are indicative snapshots, not independently verified exchange settlements or a complete intraday history. Capturing an upstream quote does not remove the upstream provider’s rights.

Gold to silver ratio history

GET /wp-json/gmd/v1/ratio-history

{ "points": [ { "date": "2026-08-02", "ratio": 70.52 }, ... ], "count": 41 }

The ratio divides the recorded gold observation by the silver observation for the same stored date. A matching date alone does not establish simultaneous or official closing quotes. See the gold to silver ratio tool.

Gold against real yields and the S&P 500

GET /wp-json/gmd/v1/gold-macro-series

{
  "series": [ { "m": "2026-08", "gold": 4042.69, "ry": 2.40, "sp": 7711.32 }, ... ],
  "built": "2026-09-11",
  "points": 29
}

Monthly observations. ry is the 10-year Treasury inflation-indexed yield from FRED series DFII10, and sp is an S&P 500 series. Check built and the observation dates; this is a limited historical sample. FRED aggregates data from multiple owners, and individual series can carry separate usage restrictions.

Macro indicators

GET /wp-json/gmd/v1/economic-feed

Selected macro indicators retrieved through FRED, including real yields, interest rates, inflation expectations and market indexes. FRED is an aggregator, so the original publisher and usage rights vary by series. Read each value’s date and the response freshness fields rather than assuming every series updates together.

Currency rates

GET /wp-json/gmd/v1/fx-rates

Exchange rates against the US dollar, used to price gold in other currencies. Includes provider, last_updated and next_update.

Economic calendar

GET /wp-json/gmd/v1/economic-calendar

Upcoming releases that tend to move the gold price, with the event, date and window. The same data behind our economic calendar.

Example response handling

fetch('https://goldmarketdaily.com/wp-json/gmd/v1/metals')
  .then(r => r.json())
  .then(d => {
    document.querySelector('#gold').textContent =
      '$' + d.metals.gold.toFixed(2) + ' (' + d.metals_change_perc.gold + '%)';
  });

Use, permissions and data limits

  • Existing terms apply. Free tools are for personal, non-commercial use unless a specific published permission applies under our Terms of Service. The hosted gold-price widget may be displayed publicly with its attribution intact. Other commercial use, republication and automated extraction require authorization. Contact GMD with the intended use.
  • Third-party rights still apply. GMD cannot grant rights owned by an upstream data provider. The primary metals provider permits commercial API use in its gold-api.com terms. That does not license unrelated macro series or every fallback feed. Check the original provider and series-specific restrictions, including the FRED terms.
  • No availability or freshness guarantee. No key is currently required to view responses, but access and service availability may change. Inspect timestamps and freshness fields.
  • Indicative data. Metals data can come from the primary gold-api.com feed or a fallback. Read the response source; values may be cached, normalized or combined with stored comparisons. Do not use these snapshots as settlement prices or trade execution quotes.

Something missing?

For a data question or permission request, tell us the endpoint and intended use. Permission may also be needed from the original data owner.

Did this help? Shape what we build next.

After trying this tool, share three quick choices. The basic tools remain free.

This is research, not an offer or signup. We save your selected answers and this page's tool or section name as grouped counts. No email address is requested. Privacy details.

Want to discuss a future paid pilot? Tell us which feature you would use. No payment or commitment is required.

This form needs JavaScript to load. You can also share feedback through our contact form.

For your next question

Related calculators and market references. View all gold tools.

Share
Indicative prices may be delayed. Check the observation time.
Editorial independence policy · GoldMarketDaily has no affiliate relationships at present. If that changes, the affected pages will disclose it. Full disclaimer