黄金价格
查询国内黄金价格,含品牌金价、银行投资金条、贵金属回收价格
GET
https://api.tinyaii.cn/v1/gold
请求参数
该接口无需请求参数,直接调用即可返回数据。
返回字段
| 字段 | 类型 | 说明 |
|---|---|---|
| brands | array | 品牌金价(11个品牌) |
| brands[].name | string | 品牌名(周大福/老凤祥等) |
| brands[].gold_price | string | 黄金价格(元/克) |
| brands[].platinum_price | string | 铂金价格(元/克) |
| brands[].bar_price | string | 金条价格(元/克) |
| bank_bars | array | 银行投资金条(6家银行) |
| bank_bars[].name | string | 品种名 |
| bank_bars[].price | string | 价格(元/克) |
| recycle | array | 贵金属回收价格(10种) |
| recycle[].name | string | 品种(24K金/18K金/足银等) |
| recycle[].price | string | 回收价(元/克) |
| update_time | string | 更新日期 |
返回示例
{
"code": 200,
"message": "success",
"data": {
"update_time": "2026-05-15",
"brands": [
{
"name": "周大福",
"gold_price": "1408",
"platinum_price": "-",
"bar_price": "1235",
"unit": "元/克",
"update_time": "2026-05-15"
},
{
"name": "老凤祥",
"gold_price": "1412",
"platinum_price": "800",
"bar_price": "1252",
"unit": "元/克",
"update_time": "2026-05-15"
}
],
"bank_bars": [
{
"name": "工商银行如意金条",
"price": "1030.21"
},
{
"name": "建设银行龙鼎金条",
"price": "1026.5"
}
],
"recycle": [
{
"name": "24K金回收",
"price": "996.0",
"unit": "元/克",
"update_time": "2026-05-15"
},
{
"name": "足银回收",
"price": "17.23",
"unit": "元/克",
"update_time": "2026-05-15"
}
]
}
}
调用示例
curl "https://api.tinyaii.cn/v1/gold" \
-H "Authorization: Bearer YOUR_API_KEY"const res = await fetch("https://api.tinyaii.cn/v1/gold", {
headers: { "Authorization": "Bearer YOUR_API_KEY" },
});
console.log(await res.json());import requests
resp = requests.get(
"https://api.tinyaii.cn/v1/gold",
params=None,
headers={"Authorization": "Bearer YOUR_API_KEY"},
timeout=10,
)
print(resp.json())把 YOUR_API_KEY 换成你的密钥即可直接运行。密钥只保存在你自己的设备上。