黄金价格查询

支持国内十大黄金店、国际金价的价格查询

免费正常

#接口说明
#业务参数

业务参数为请求参数的一部分。

名称类型必填说明
#响应参数

响应参数为data字段中的变量。

名称说明
domestic 
- name名称
- rise涨跌
- time时间
- range幅度
- new_price最新价
- high_price最高价
- lower_price最低价
domesticTop 
- Au黄金价格
- Pt铂金价格
- time时间
- unit单位
- brand品牌
- bullion金条价格
international 
- name名称
- rise涨跌
- time时间
- range幅度
- new_price最新价
- high_price最高价
- lower_price最低价
#响应示例

此示例为业务响应参数data的示例。

{"domestic": [{"name": "国内金价", "rise": "2.08", "time": "2024-12-2", "range": "0.56%", "new_price": "610.5", "high_price": "375", "lower_price": "372.76"}, {"name": "国内银价", "rise": "0.05", "time": "2024-12-2", "range": "1.04%", "new_price": "4.829", "high_price": "4.834", "lower_price": "4.753"}, {"name": "投资金条", "rise": "2.08", "time": "2024-12-2", "range": "0.56%", "new_price": "610.5", "high_price": "387", "lower_price": "384"}, {"name": "黄金回收价格", "rise": "2.08", "time": "2024-12-2", "range": "0.56%", "new_price": "598", "high_price": "370", "lower_price": "368"}, {"name": "铂金回收价格", "rise": "-", "time": "2024-12-2", "range": "-", "new_price": "196", "high_price": "-", "lower_price": "-"}, {"name": "18K金回收价格", "rise": "-", "time": "2024-12-2", "range": "-", "new_price": "426", "high_price": "-", "lower_price": "-"}, {"name": "钯金回收价格", "rise": "-", "time": "2024-12-2", "range": "-", "new_price": "195", "high_price": "-", "lower_price": "-"}], "domesticTop": [{"Au": "793", "Pt": "-", "time": "2024-12-2", "unit": "元/克", "brand": "内地周大福", "bullion": "793"}, {"Au": "791", "Pt": "385", "time": "2024-12-2", "unit": "元/克", "brand": "内地周生生", "bullion": "783"}, {"Au": "793", "Pt": "385", "time": "2024-12-2", "unit": "元/克", "brand": "内地六福珠宝", "bullion": "793"}, {"Au": "793", "Pt": "-", "time": "2024-12-2", "unit": "元/克", "brand": "内地谢瑞麟", "bullion": "783"}, {"Au": "793", "Pt": "385", "time": "2024-12-2", "unit": "元/克", "brand": "内地金至尊", "bullion": "793"}, {"Au": "793", "Pt": "385", "time": "2024-12-2", "unit": "元/克", "brand": "潮宏基", "bullion": "793"}, {"Au": "777", "Pt": "358", "time": "2024-12-2", "unit": "元/克", "brand": "菜百首饰", "bullion": "712"}, {"Au": "794", "Pt": "360", "time": "2024-12-2", "unit": "元/克", "brand": "老庙黄金", "bullion": "749"}, {"Au": "792", "Pt": "365", "time": "2024-12-2", "unit": "元/克", "brand": "老凤祥", "bullion": "742"}, {"Au": "769", "Pt": "358", "time": "2024-12-2", "unit": "元/克", "brand": "中国黄金", "bullion": "-"}, {"Au": "793", "Pt": "401", "time": "2024-12-2", "unit": "元/克", "brand": "周六福", "bullion": "696"}, {"Au": "29120", "Pt": "-", "time": "2024-12-2", "unit": "港币/两", "brand": "香港周大福", "bullion": "-"}, {"Au": "29020", "Pt": "10890", "time": "2024-12-2", "unit": "港币/两", "brand": "香港周生生", "bullion": "26330"}, {"Au": "29010", "Pt": "10880", "time": "2024-12-2", "unit": "港币/两", "brand": "香港谢瑞麟", "bullion": "26330"}, {"Au": "29010", "Pt": "10880", "time": "2024-12-2", "unit": "港币/两", "brand": "香港金至尊", "bullion": "26330"}, {"Au": "29010", "Pt": "10880", "time": "2024-12-2", "unit": "港币/两", "brand": "香港六福珠宝", "bullion": "26330"}, {"Au": "29010", "Pt": "10880", "time": "2024-12-2", "unit": "港币/两", "brand": "香港老凤祥", "bullion": "26330"}], "international": [{"name": "国际金价", "rise": "7.19", "time": "2024-12-2", "range": "0.39%", "new_price": "2636", "high_price": "1828.34", "lower_price": "1815.50"}, {"name": "国际铂金", "rise": "16.77", "time": "2024-12-2", "range": "1.64%", "new_price": "945", "high_price": "1037.4", "lower_price": "1004"}, {"name": "国际银价", "rise": "0.21", "time": "2024-12-2", "range": "0.91%", "new_price": "30.3", "high_price": "23.24", "lower_price": "22.78"}, {"name": "国际钯金", "rise": "0.21", "time": "2024-12-2", "range": "0.91%", "new_price": "974", "high_price": "23.24", "lower_price": "22.78"}]}
#公共响应

仅响应格式为json时参考。

名称说明
code业务响应状态码
200:成功
其他:失败
message业务响应说明
data业务响应参数,只有code=200时才有此参数。
具体参数请看对应API的“响应参数”
#公共请求
名称类型必填说明
timestampstring请求时间戳
appkeystring开放平台分配的appkey
signstring签名,具体签名方法请下方查看
#请求说明
appkey
为确保API不被滥用,保证使用用户的友好体验和权益,API采用`appKey + appSecret`的方式鉴权。
请求地址
完整的请求地址为:接口网关+接口地址
签名
如已申请appKey,例如分配的appKey为123,appSecret为456。
1、按照API文档,组装完整的请求参数(公共请求 + 业务参数)。
2、剔除sign参数,并剔除参数中非字符串(如:数组、对象、文件),以及value为空的参数,并按照ASCII递增排序。
3、将参数以“keyValue”的形式拼接字符串,如参数是:appkey=123&qq=123456& timestamp=1733811622,则生成的字符串应为:appkey123qq123456timestamp1733811622。4、在字符串最后拼接上appSecret,进行MD5加密,并转成大写
以上述为例,最后签名的字符串应为:appkey123qq123456timestamp1733811622456
将此字符串进行MD5加密,并转换成大写。