Copper Price API live and historical, as JSON
Live and historical copper prices quoted in US dollars per pound on COMEX. The history endpoint returns 9,776 daily bars back to July 1988. Plain HTTPS with a bearer token, no SDK required.
- Live copper spot with bid, ask and 24-hour change on every plan, Free included
- History from Starter ($9 a month), daily and intraday
- Request it as HG on /v1/prices and /v1/history/HG
{
"success": true,
"data": {
"HG": {
"symbol": "HG",
"price": 6.69766,
"bid": 6.694311170000001,
"ask": 6.701008829999999,
"change24h": -0.007461,
"changePercent24h": -0.1113,
"high24h": 6.70965,
"low24h": 6.69216,
"timestamp": "2026-09-26T18:12:50.484Z",
"exchange": "COMEX",
"marketType": "futures",
"stale": false
}
}
}9,776
Daily copper bars
1988
First daily bar
HG
Symbol to request
200
Free requests a month, no card
Live price
Get the live copper price
Copper price API in cURL
curl -H "Authorization: Bearer mc_live_YOUR_KEY" \
"https://api.metalcharts.org/v1/prices"Every tracked metal comes back in one response; copper is under data.HG.
Copper price API in Python
import requests
res = requests.get(
"https://api.metalcharts.org/v1/prices",
headers={"Authorization": "Bearer mc_live_YOUR_KEY"},
timeout=10,
)
res.raise_for_status()
price = res.json()["data"]["HG"]["price"]
print(f"Copper: ${price}")Uses requests. raise_for_status turns a 401 or 429 into an exception rather than letting a bad payload through.
Copper price API in JavaScript
const res = await fetch(
"https://api.metalcharts.org/v1/prices",
{ headers: { Authorization: "Bearer mc_live_YOUR_KEY" } },
);
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const { data } = await res.json();
console.log(`Copper: ${data.HG.price}`);Native fetch, so it runs in Node 18 and above. Keep the key on your server; proxy browser requests through it.
Copper price API in PHP
<?php
$ch = curl_init("https://api.metalcharts.org/v1/prices");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["Authorization: Bearer mc_live_YOUR_KEY"],
CURLOPT_TIMEOUT => 10,
]);
$body = curl_exec($ch);
$code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if ($code !== 200) {
throw new RuntimeException("MetalCharts API returned $code");
}
$data = json_decode($body, true);
echo "Copper: " . $data["data"]["HG"]["price"];Plain cURL with no dependencies. Check the status code, because a failed call still returns a parseable body.
Copper price API in Go
req, _ := http.NewRequest(
http.MethodGet, "https://api.metalcharts.org/v1/prices", nil,
)
req.Header.Set("Authorization", "Bearer mc_live_YOUR_KEY")
resp, err := http.DefaultClient.Do(req)
if err != nil {
return err
}
defer resp.Body.Close()
var out struct {
Data map[string]struct {
Price float64 `json:"price"`
} `json:"data"`
}
if err := json.NewDecoder(resp.Body).Decode(&out); err != nil {
return err
}
fmt.Println("Copper:", out.Data["HG"].Price)Decoding into a narrow struct keeps the compiler honest about the field you actually use.
History
Historical copper price API
curl -H "Authorization: Bearer mc_live_YOUR_KEY" \
"https://api.metalcharts.org/v1/history/HG?range=1Y&interval=1d"Set the window with range or explicit start and end dates, and the candle size with interval: 15m, 30m, 45m, 1h, 2h, 4h, 8h, 1d, 1w or 1M. Each point carries open, high, low, close and volume, so it drives a candlestick chart directly. A history call costs 2 weight.
History depth is what separates the plans. Starter ($9 a month) reaches back 1 year, Basic ($29) reaches back 1 year, Pro ($99) reaches back 5 years, and Ultimate ($249) returns the full series.
The symbol is HG. Passing the metal's name instead returns a 400, the most common mistake on first use.
Endpoints
Endpoints carrying copper
| Endpoint | Returns | From |
|---|---|---|
| GET/v1/prices | Live spot price, 24h change, high and low, plus an indicative bid and ask | Free |
| GET/v1/history/{symbol} | Daily, weekly and monthly candles, plus 15m to 8h intraday | Starter |
| GET/v1/ath/{symbol} | All-time high and the date it was set | Starter |
| GET/v1/instruments | Which symbol each endpoint expects | Free |
Beyond price, copper also appears in
| Endpoint | Returns | From |
|---|---|---|
| GET/v1/comex/inventory?symbol=HG | COMEX copper warehouse stocks | Pro |
| GET/v1/shfe/inventory?symbol=cu | Shanghai Futures Exchange copper stocks | Pro |
| GET/v1/shfe/settlement?symbol=cu | SHFE copper settlement prices | Pro |
Plans and limits
What each plan allows
| Plan | Per minuteweight, per API key | Per monthweight, all keys combined | API keys | History |
|---|---|---|---|---|
| Free$0 | 10 | 200200 spot calls | 1 | Live spot only |
| Starter$9/mo | 20 | 10,00010,000 spot calls or 5,000 history calls | 2 | 1 year |
| Basic$29/mo | 30 | 250,000250,000 spot calls or 125,000 history calls | 3 | 1 year |
| Pro$99/mo | 200 | No monthly cap | 10 | 5 years |
| Ultimate$249/mo | 1,000 | No monthly cap | 25 | Full, back to 1966 |
FAQ
Copper API questions
How far back does copper history go?
What unit is the copper price in?
What symbol do I use for copper?
More metals
Other metals, same API
- Gold Price API (14,425 daily bars)
- Silver Price API (14,488 daily bars)
- Platinum Price API (5,798 daily bars)
- Palladium Price API (5,799 daily bars)
- All metals, one API