Skip to content

Instantly share code, notes, and snippets.

@aershov24
Last active May 12, 2026 00:05
Show Gist options
  • Select an option

  • Save aershov24/abf5df1c068f741ea55d7d643ee058fb to your computer and use it in GitHub Desktop.

Select an option

Save aershov24/abf5df1c068f741ea55d7d643ee058fb to your computer and use it in GitHub Desktop.
Gold Price Calculator Widget (XAU/USD) | GoldAPI.io
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Gold Price Calculator Widget (XAU/USD) | GoldAPI.io</title>
<meta name="description" content="Embed a live gold price calculator widget using GoldAPI.io. Supports gold, silver, platinum, and palladium prices with real-time and historical API data." />
<meta name="keywords" content="gold price api, gold calculator, xauusd, live gold price, gold api, silver price api, precious metals api, gold widget" />
<!-- Open Graph -->
<meta property="og:title" content="Gold Price Calculator Widget | GoldAPI.io" />
<meta property="og:description" content="Simple embeddable gold price calculator powered by GoldAPI.io live metal prices API." />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://www.goldapi.io/" />
<style>
body {
font-family: Arial, sans-serif;
background: #f8fafc;
padding: 20px;
text-align: center;
}
h1 {
font-size: 24px;
margin-bottom: 10px;
}
p {
color: #555;
max-width: 600px;
margin: 0 auto 20px;
}
</style>
</head>
<body>
<h1>Gold Price Calculator Widget (XAU/USD)</h1>
<p>
This is a simple embeddable gold price calculator powered by
<strong>GoldAPI.io</strong>.
</p>
<!--
HOW TO USE GOLDAPI.io:
GoldAPI.io provides real-time and historical precious metals prices via JSON API.
Supported metals:
- Gold (XAU)
- Silver (XAG)
- Platinum (XPT)
- Palladium (XPD)
Supported features:
- Live spot prices
- Historical price data
- Multiple currencies (USD, AUD, EUR, AED, etc.)
- JSON API for developers
Example API endpoint:
https://www.goldapi.io/api/XAU/USD
You can use GoldAPI.io to build:
- Trading platforms
- Price widgets
- Financial dashboards
- Scrap calculators
- Jewellery pricing tools
Get your API key:
https://www.goldapi.io
-->
<!-- GOLDAPI CALCULATOR WIDGET -->
<div
class="goldapi-calculator-widget"
data-metal="XAU"
data-currency="USD"
data-modifier="base"
></div>
<!-- WIDGET SCRIPT -->
<script async src="https://www.goldapi.io/widgets/calculator-widget.js?v=23zo7ht4"></script>
<p style="margin-top: 30px; font-size: 12px;">
Powered by <a href="https://www.goldapi.io" target="_blank">GoldAPI.io</a> — real-time gold, silver, platinum, and palladium price API.
</p>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment