Fetch /v1/spot/HG-USD-SPOT from goldprice.dev with WEBSERVICE in Excel for Windows, then extract the price as a number. Copper is quoted in US dollars per pound. Keyless prices are fifteen minutes late. Divide by 453.59237 for dollars per gram, or multiply by 2.20462262 for dollars per kilogram. The formula requires LET support.
Paste the copper price formula
Use Excel for Windows with LET and WEBSERVICE support. Paste this formula into A2. It requests HG-USD-SPOT without a key and converts the price string into a number. The value is US dollars per pound, fifteen minutes late. WEBSERVICE is unavailable in Excel for Mac and Excel for the web.
=LET(j,WEBSERVICE("https://api.goldprice.dev/v1/spot/HG-USD-SPOT"),s,SEARCH("""price"":""",j)+9,NUMBERVALUE(MID(j,s,SEARCH("""",j,s)-s),".",","))Calculate prices per gram and kilogram
With the price per pound in A2, paste the formula below into B2 for US dollars per gram. In C2, enter =A2*2.20462262 for US dollars per kilogram. Both cells calculate from the price already in A2.
=A2/453.59237Calculate a price in another currency
Copper spot is available in US dollars only. For euros per pound, put your own euros per US dollar exchange rate in D2 and paste the formula below into E2. For euros per gram, use =B2*D2. For euros per kilogram, use =C2*D2.
=A2*D2Recalculate and check request limits
Press Ctrl+Alt+F9 to send a new request, because F9 recalculates only cells Excel treats as changed. Check computed_at and is_stale in the response when checking freshness. Keyless access allows ten requests a minute and one hundred an hour per IP. Keep other price cells linked to A2 so unit calculations do not make extra requests.
Expected output
{"symbol":"HG","quote_currency":"USD","unit":"pound","contract_type":"spot","price":"6.4410","is_stale":false,"computed_at":"2026-10-23T16:18:02.599973+00:00"}A2 contains the copper spot price in US dollars per pound. B2 contains dollars per gram. C2 contains dollars per kilogram. With a euros per US dollar exchange rate in D2, E2 contains euros per pound. Keyless prices are fifteen minutes late.
Common errors
| Code | What you see | Fix |
|---|---|---|
| 429 | Requests exceed the keyless limit or the allowance for your key. | Reduce refresh frequency and check usage. Keyless access allows ten requests a minute and one hundred an hour per IP. A Free key allows 5,000 calls a month and ten requests a minute. |
| #NAME? | WEBSERVICE is unavailable in Excel for Mac or Excel for the web. | Use the formula in Excel for Windows with LET and WEBSERVICE support. |
| #VALUE! | The formula returns #VALUE!, or the retrieved response needs a freshness check. | Inspect the response for an error and confirm that it contains the expected price field before recalculating. Check is_stale and computed_at separately. The formula extracts only price, so a numeric cell does not confirm that the response is fresh. |
Going further
- Get an API key at onboarding, then follow the quickstart for authenticated requests.
- Compare request allowances at pricing.