随机图片v1
图床v1(推荐用V2)
生成二维码
二维码解析
某易云歌词
随机图片v2-302跳转
某易云点歌
获取天气
宝贝回家
随机一言·网络
必应每日一图(横屏-不跳转)
必应每日一图(横屏-302跳转)
必应每日一图(竖屏-不跳转)
必应每日一图(竖屏-302跳转)
随机快手美女视频V1
获取天气v2
城市天气ID查询
IPv6地址获取
程序员历史上的今天
微博热榜
抖音热榜
知乎热榜
百度热搜
二要素核验
网站信息TDK获取
SSl证书检测
域名dns解析查询
查询域名Whois
QQ域名拦截查询
ICP备案查询
天气查询v4
QQ昵称获取
快递查询V1
中国天气
快手解析
抖音视频解析
官方影视/动漫海报获取接口
HunyuanOCR
酷小我音乐YT
IP签名档YT
阿里oss图床TM
ocr图片文字识别YT
手机号归属地查询
随机一言v1
实时金价v1
知乎热搜
随机快手美女视频v2
三角洲每日密码TM
ICP备案查询V2
IP地址详情V1·本地
图床V2
某易云点歌V2
某易云点歌V3
实时金价v1
https://apis.whrx.chat/api/jinjia/v1.php
实时金价v1 API接口文档
接口简介
实时金价v1 API是一个用于查询国内各大金店黄金价格和国际黄金白银期货价格的接口。通过调用该接口,用户可以实时获取最新的金价信息。请求说明
- 请求地址:https://api.xunjinlu.fun/api/jinjia/v1.php
- 请求方法:GET
- 请求头:无特殊要求
请求参数
| 参数名 | 类型 | 是否必填 | 说明 |
|---|---|---|---|
| key | string | 是 | 接口访问密钥 |
返回参数
| 参数名 | 类型 | 说明 |
|---|---|---|
| code | integer | 状态码,200表示成功 |
| msg | string | 状态信息 |
| data | object | 返回的数据对象 |
| update_time | string | 数据更新时间 |
| shops | array | 国内各大金店金价信息 |
| futures | array | 国际黄金白银期货价格信息 |
| charts | object | 金价走势图链接 |
返回示例
成功示例
{
"code": 200,
"msg": "success",
"data": {
"update_time": "2026-05-02 18:58:02",
"shops": [
{
"name": "周大福",
"retail_price": "1419",
"exchange_price": "978",
"update_time": "2026-05-02 18:58:02"
},
{
"name": "六福珠宝",
"retail_price": "1417",
"exchange_price": "1205",
"update_time": "2026-05-02 18:58:03"
},
{
"name": "菜百首饰",
"retail_price": "1388",
"exchange_price": null,
"update_time": "2026-05-02 18:58:03"
}
],
"futures": [
{
"name": "国际黄金现货",
"trade_price": "4614.95",
"trade_unit": "美元/盎司",
"convert_price": "1012.9647",
"convert_unit": "元/克",
"update_time": "2026-05-02 04:59:58"
},
{
"name": "上海黄金现货",
"trade_price": "1013.36",
"trade_unit": "人民币/克",
"convert_price": "1013.36",
"convert_unit": "元/克",
"update_time": "2026-04-30 15:02:10"
},
{
"name": "国际白银现货",
"trade_price": "75.36",
"trade_unit": "美元/盎司",
"convert_price": "16.5412",
"convert_unit": "元/克",
"update_time": "2026-05-02 04:59:58"
},
{
"name": "上海白银现货",
"trade_price": "17954",
"trade_unit": "人民币/千克",
"convert_price": "17.954",
"convert_unit": "元/克",
"update_time": "2026-04-30 14:43:50"
}
],
"charts": {
"intl_gold_realtime": "https://webquotepic.eastmoney.com/GetPic.aspx?token=44c9d251add88e27b65ed86506f6e5da&nid=122.XAU&type=r&imageType=rf",
"intl_gold_trend": "https://webquoteklinepic.eastmoney.com/GetPic.aspx?nid=122.XAU&type=&unitWidth=-6&ef=&formula=RSI&AT=1&imageType=KXL",
"intl_silver_realtime": "https://webquotepic.eastmoney.com/GetPic.aspx?token=44c9d251add88e27b65ed86506f6e5da&nid=122.XAG&type=r&imageType=rf",
"intl_silver_trend": "https://webquoteklinepic.eastmoney.com/GetPic.aspx?nid=122.XAG&type=&unitWidth=-6&ef=&formula=RSI&AT=1&imageType=KXL",
"shanghai_gold_realtime": "https://webquotepic.eastmoney.com/GetPic.aspx?token=44c9d251add88e27b65ed86506f6e5da&nid=118.SHAU&type=r&imageType=rf",
"shanghai_gold_trend": "https://webquoteklinepic.eastmoney.com/GetPic.aspx?nid=118.SHAU&type=&unitWidth=-6&ef=&formula=RSI&AT=1&imageType=KXL",
"shanghai_silver_realtime": "https://webquotepic.eastmoney.com/GetPic.aspx?token=44c9d251add88e27b65ed86506f6e5da&nid=118.SHAG&type=r&imageType=r",
"comex_gold_realtime": "https://webquotepic.eastmoney.com/GetPic.aspx?imageType=r&type=&token=44c9d251add88e27b65ed86506f6e5da&nid=101.GC00Y",
"comex_gold_trend": "https://webquoteklinepic.eastmoney.com/GetPic.aspx?nid=101.GC00Y&type=&unitWidth=-6&ef=&formula=RSI&AT=1&imageType=KXL",
"comex_silver_realtime": "https://webquotepic.eastmoney.com/GetPic.aspx?imageType=r&type=&token=44c9d251add88e27b65ed86506f6e5da&nid=101.SI00Y",
"comex_silver_trend": "https://webquoteklinepic.eastmoney.com/GetPic.aspx?nid=101.SI00Y&type=&unitWidth=-6&ef=&formula=RSI&AT=1&imageType=KXL"
}
},
"api_info": {
"developer": "尋鯨錄",
"blog": "https://www.xunjinlu.fun",
"api_platform": "https://api.xunjinlu.fun"
}
}
失败示例
{
"code": 401,
"msg": "Unauthorized access"
}
错误码说明
- 401:未授权访问
调用示例
直接访问链接
实时金价v1 APIcURL命令示例
curl -X GET "https://api.xunjinlu.fun/api/jinjia/v1.php?key=your_key"
JavaScript (fetch) 示例
fetch('https://api.xunjinlu.fun/api/jinjia/v1.php?key=your_key')
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error(error));
jQuery AJAX 示例
$.ajax({
url: 'https://api.xunjinlu.fun/api/jinjia/v1.php?key=your_key',
type: 'GET',
dataType: 'json',
success: function(data) {
console.log(data);
},
error: function(error) {
console.error(error);
}
});
Python (requests) 示例
import requests
url = 'https://api.xunjinlu.fun/api/jinjia/v1.php'
key = 'your_key'
response = requests.get(url, params={'key': key})
data = response.json()
print(data)
PHP (curl) 示例
$url = 'https://api.xunjinlu.fun/api/jinjia/v1.php';
$key = 'your_key';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, ['key' => $key]);
$response = curl_exec($ch);
curl_close($ch);
$data = json_decode($response, true);
print_r($data);