金
GoldPrice API
1 endpointFinance & CryptoGlobalsocial:read
Returns live spot prices of gold and silver per troy ounce in one currency, with the change since the previous close.
View as Markdown| GET | /goldprice/spot | Live spot prices of gold and silver per troy ounce in one currency, with the change since the previous close. |
spot
GET
/v1/goldprice/spotLive spot prices of gold and silver per troy ounce in one currency, with the change since the previous close.
scope social:read1 unitcached 1 min
Parameters
currencystring | ISO currency code, such as USD, IDR or EUR. Default USD. default USDe.g. USD |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
21 fields
currency | string |
gold | Ticker |
change | string |
changePercent | string |
high | string |
low | string |
open | string |
price | string |
symbol | string |
updatedAt | string |
volume | string |
silver | Ticker |
change | string |
changePercent | string |
high | string |
low | string |
open | string |
price | string |
symbol | string |
updatedAt | string |
volume | string |
curl "https://api.hoshime.com/v1/goldprice/spot?currency=USD" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/goldprice/spot?currency=USD", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/goldprice/spot?currency=USD", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "currency": "USD", "gold": { "change": "…", "changePercent": "…", "high": "…", "low": "…", "open": "…", "price": "…", "symbol": "…", "updatedAt": "2026-11-06T09:41:00Z", "volume": "…" }, "silver": { "change": "…", "changePercent": "…", "high": "…", "low": "…", "open": "…", "price": "…", "symbol": "…", "updatedAt": "2026-11-06T09:41:00Z", "volume": "…" } }, "meta": { "cached": false, "endpoint": "spot", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "goldprice", "requestId": "req_2Xb9kQ…", "units": 1 } }