MetalAPI blog
Building with precious metals data
Tutorials, explainers and deep dives for developers working with gold, silver, commodity, currency and crypto prices.
RSS feedConnect Claude and ChatGPT to Live Gold Prices with MCP
Connect Claude, ChatGPT, Cursor and VS Code to live gold and metal prices with the MetalAPI MCP server: OAuth or API key setup, tools, safety and quotas.
Read moreAll articles
Gold Price API: The Complete Developer Guide
How to use a gold price API: get a key, call it from curl, JavaScript and Python, read the rates correctly, and handle history, errors, quotas and caching.
How to Add a Live Gold Price Widget to Your Website
Add a live gold price widget to WordPress, Shopify or plain HTML: build it in the MetalAPI dashboard, choose symbols, layout and theme, then paste two lines.
Gold Karat Prices Explained: 24K, 22K, 18K and How to Calculate Them
What 24K, 22K and 18K mean, how fineness marks like 916 and 750 relate, how to calculate karat gold prices per gram and how to get them from a gold price API.
Build a Jewelry Price Calculator with Live Gold Prices
Build a server-side jewelry price calculator in TypeScript and Python with live gold prices per gram, karat purity, making charges, VAT and quota-safe caching.
Historical Gold and Silver Prices via API: 25 Years of Daily Data
Get daily historical gold and silver prices back to 2000 with /historical, /timeframe, /change and /ohlc, page long ranges by year, store the data and chart it.
Automate Gold and Silver Price Alerts with Webhooks
Automate gold and silver price alerts with signed webhooks: alert conditions, cooldowns, the payload, HMAC-SHA256 verification in Node and Python, and retries.
Troy Ounces, Grams and Kilograms: Converting Precious Metal Prices Correctly
Troy vs avoirdupois ounces, exact gram and kilogram factors, the API's unit parameter, rounding rules and the bugs that put metal prices off by almost 10%.
Spot, Bid, Ask and Spread: How Precious Metal Prices Are Quoted
What spot, bid, ask, mid and spread mean for gold, silver, platinum and palladium, how dealers build quotes, and how to request and display bid/ask via API.
Streaming Real-time Metal Prices with Server-Sent Events
Stream real-time gold and silver prices with Server-Sent Events: the /stream endpoint, its events, EventSource vs Node.js, reconnects, quotas and a live ticker.
Copper, Aluminium, Zinc and Oil Prices via API: A Developer's Guide
Get copper, aluminium, zinc, steel, crude oil and natural gas prices via API: natural units, normalisation, front-month futures, conversions and code samples.
How to Choose a Precious Metals Price API: 12 Questions to Ask
A vendor-neutral checklist for choosing a precious metals price API: sources, freshness, history, units, bid/ask, limits, pricing, security, terms and MCP.