
一、探数API
■ 接口地址[GET]
https://api.tanshuapi.com/api/gold/v1/shgold2
✅ 请求参数:key=
■ 响应示例
{
"code": 1,
"msg": "操作成功",
"data": {
"list": {
"AuT+D": {
"type": "AuT+D",
"typename": "黄金延期",
"price": "784.00",
"buyprice": "783.80",
"sellprice": "784.20",
"changequantity": "8.41",
"changepercent": "1.08%",
"openingprice": "784.50",
"maxprice": "784.52",
"minprice": "783.50",
"lastclosingprice": "779.16",
"tradeamount": "326.00",
"unit": "元/克",
"updatetime": "2026-12-01 20:03:01"
},
"mAuT+D": {
"type": "mAuT+D",
"typename": "M黄金延期",
"price": "784.30",
"buyprice": "784.00",
"sellprice": "784.46",
"changequantity": "8.05",
"changepercent": "1.04%",
"openingprice": "784.99",
"maxprice": "784.99",
"minprice": "784.00",
"lastclosingprice": "780.12",
"tradeamount": "780.00",
"unit": "元/克",
"updatetime": "2026-12-01 20:03:01"
},
"Au9999": {
"type": "Au9999",
"typename": "黄金9999",
"price": "783.00",
"buyprice": "783.50",
"sellprice": "786.00",
"changequantity": "3.01",
"changepercent": "0.39%",
"openingprice": "784.00",
"maxprice": "784.00",
"minprice": "783.00",
"lastclosingprice": "779.99",
"tradeamount": "32.00",
"unit": "元/克",
"updatetime": "2026-12-01 20:03:01"
}
}
}
}

二、GoldAPI
■ 接口地址[GET]
https://www.gold-api.cn/api/v1/gold/realtime
✅ 请求参数:goldid=&appkey=
■ 响应示例
{
"success": "1",
"result": {
"dtQuery": "1053",
"dtCount": "1",
"dtList": {
"1053": {
"goldId": "1053",
"variety": "Au9999",
"varietyName": "黄金9999",
"lastPrice": 785,
"buyPrice": 784,
"sellPrice": 785,
"highPrice": 785,
"lowPrice": 783,
"openPrice": 784,
"yesyPrice": 779.99,
"changePrice": 5.01,
"changeMargin": "0.64%",
"updateTime": "2026-12-01 20:03:53"
}
}
},
"requestId": "20261201120357-b7f616a3"
}
失败响应:
{
"success": "0",
"msgId": "DAILY_LIMIT_EXCEEDED",
"msg": "今日调用次数已达上限,请明日再试或提升配额",
"requestId": "20260928173620-a1b2c3d4"
}
评论(0)
暂无评论。