Integration tutorials
Build gold price alerts with Python and Slack, a complete threshold-crossing example with persistent state and delivery limits.
30 step-by-step guides for getting live gold and precious-metals prices in your platform of choice. Working code, copy-pasteable, multi-currency, tested April 2026.
Spreadsheets
How to get live gold prices in Google SheetsPull live and historical gold prices into Google Sheets without storing an API key, compare a reference quote, and refresh safely every 4 hours.8 Sep 2026
How to get live gold prices in ExcelConnect Excel to live gold prices with a downloadable setup workbook and Power Query M.18 Aug 2026
How to get live gold prices in Power BIPull live gold prices into Power BI via Power Query M, with scheduled refresh in the Service. One refresh per workspace, 8/day on Pro.27 Apr 2026
Silver price in Google SheetsTrack silver holdings in Google Sheets with a downloadable workbook and scheduled XAG refresh.29 Sep 2026
Silver price in ExcelFetch the silver spot price in US dollars per troy ounce, then calculate prices per gram, per kilogram or in another currency.26 Oct 2026
How to get live gold prices in Gold price in Looker StudioRecord gold prices hourly in Google Sheets, then build a Looker Studio time series chart and scorecard.23 Oct 2026
How to get live gold prices in Copper price in ExcelFetch the copper spot price in US dollars per pound, then calculate prices per gram, per kilogram or with your own exchange rate.23 Oct 2026
Silver price in Power BIBring silver prices into Power BI with Power Query M, then set up scheduled refresh. Free prices are delayed; paid plans provide live prices.23 Oct 2026
No-code & Automation
How to get live gold prices in n8nImport a credential-free n8n workflow for hourly gold prices, then attach your API key securely.18 Aug 2026
How to get live gold prices in ZapierPull live gold prices into Zapier via Webhooks by Zapier, Custom Request GET, hourly Schedule trigger, downstream to Slack, Sheets, or Airtable.27 Apr 2026
How to get live gold prices in Gold price in Home AssistantShow gold prices per ounce and gram, keep your API key in secrets.yaml, and receive a notification above your chosen price.23 Oct 2026
Silver price in ZapierFetch silver prices with Webhooks by Zapier, then send them to Slack, Google Sheets or Airtable. Free prices are delayed; paid plans are live.23 Oct 2026
Silver price in n8nImport an hourly n8n workflow, set the silver endpoint, and attach your API key through Header Auth.23 Oct 2026
Code
How to get live gold prices in PythonCall the goldprice.dev API from Python with requests, Decimal arithmetic, retry-on-429, and a 60-second TTL cache.27 Apr 2026
How to get live gold prices in GoCall the goldprice.dev API from Go with net/http, shopspring/decimal, retry-on-429, and a 60-second TTL cache.26 Jun 2026
How to get live gold prices in PHPCall the goldprice.dev API from PHP with native cURL, BCMath for exact math, retry-on-429, and a 60-second cache, no Composer.26 Jun 2026
How to get live gold prices in Node.jsCall the goldprice.dev API from Node.js with native fetch, decimal.js, retry-on-429, and a 60-second TTL cache.5 Jul 2026
How to get live gold prices in .NETCall the goldprice.dev API from C#/.NET with HttpClient, System.Text.Json, retry-on-429, and a 60-second IMemoryCache.6 Jul 2026
How to get live gold prices in Next.jsFetch live gold prices in a Next.js Server Component with server-only, cached fetch, and Decimal-safe price handling.16 Jul 2026
Silver price in PythonFetch XAG/USD spot and daily bars in Python with Decimal, auth, and freshness checks.29 Sep 2026
How to get live gold prices in Gold price in ReactShow the gold price in React with an Express route, a private API key, status messages and automatic refresh.23 Oct 2026
How to get live gold prices in Gold price in DjangoFetch a gold quote with requests, keep your API key on the server, and cache the result with Django.23 Oct 2026
How to get live gold prices in Gold price in RustFetch the gold price with reqwest, keep decimal precision, check freshness, and respect Retry-After.23 Oct 2026
How to get live gold prices in Gold price in RubyGet gold prices with Ruby’s standard library, decimal arithmetic, a cache and retries that respect rate limits.23 Oct 2026
How to get live gold prices in Copper price in PythonFetch the copper spot price per pound in Python, then calculate prices per gram and kilogram.23 Oct 2026
Silver price in Next.jsShow silver prices in a Next.js Server Component. Keep your key on the server, cache requests and preserve decimal price strings.23 Oct 2026
Silver price in .NETGet silver prices from goldprice.dev in C#/.NET with HttpClient, decimal parsing, a cache, and retries for rate limits.23 Oct 2026
Silver price in PHPGet silver prices from goldprice.dev with native cURL, decimal math with BCMath, retries on 429, and a cache per symbol. No Composer required.23 Oct 2026
Silver price in GoFetch silver prices from goldprice.dev in Go with net/http, decimal arithmetic, caching, and retries for rate limits.23 Oct 2026
Silver price in Node.jsGet silver prices in Node.js with native fetch, decimal.js, a short cache, and retries for rate limits.23 Oct 2026
Developer how-to guides
Build alerts, stream prices, run backtests and create gold tools with step-by-step guides.
- Gold Price Alert Script in Python with Retries and CachingRun a Python gold price alert script that polls live XAU-USD spot, checks a threshold and sends a notification, with a local TTL cache and retries on errors.Developer · 20 Oct 2026
- Fetch live gold prices in JavaScriptWorking code for pulling the gold spot price from the API in Node.js and the browser, with proper error handling.Developer · 16 Jul 2026
- Convert XAU to Local Currency with the Gold Price APIConvert XAU to local currency with one API request and no key, including gold per gram in rupiah, or fetch gold and FX separately to audit each source.Developer · 20 Oct 2026
- Stream live gold prices with Server-Sent EventsConnect to the goldprice.dev SSE stream to receive real-time gold price updates in the browser and Node.js, with automatic reconnect handling.Developer · 19 Jun 2026
- Compute the gold-to-silver ratio with the APIPull gold and silver spot prices in a single async call, divide them, and display the ratio with a working JavaScript example.Developer · 19 Jun 2026
- Detect cross-source price divergence in codeRead per-source prices from the API response, compute the spread in basis points, and flag when sources disagree beyond your tolerance threshold.Developer · 19 Jun 2026
- Backtest a gold strategy with historical OHLCPull daily OHLC history from the goldprice.dev API and run a simple moving-average crossover backtest in Python to evaluate a gold trading strategy.Developer · 19 Jun 2026
- Backtest local-currency gold without FX look-ahead biasBuild a reproducible local-currency gold backtest from settled XAU/USD bars and dated FX observations, without inserting future rates into historical rows.Developer · 13 Jul 2026
- Get the Gold Price per Gram in Python (24K, 22K, 18K)Fetch gold prices per gram in Python without an API key, then calculate 24K, 22K, and 18K values safely with Decimal across 31 currencies.Developer · 22 Sep 2026
- Build a Gold Portfolio Tracker in Google SheetsImport a ready-to-use gold portfolio tracker into Google Sheets, update one live price cell, and calculate indicative value, cost, and change by holding.Developer · 8 Sep 2026
- Build a Gold Jewelry Price Calculator with JavaScriptBuild a gold jewelry price calculator from live per-gram karat prices, with exact decimal math, caching, margins, and clear valuation limits.Developer · 16 Jul 2026
- Build an India Gold Price App with JavaScriptBuild a live India gold-rate app from INR per-gram 24K and 22K prices, with server-side caching, Indian number formatting, GST estimates, and clear limits.Developer · 19 Jul 2026