加载中...
API 封面图片

实时金价v1

QPS:无限制 免KEY免费正常GET

今日金价查询API是一个实时获取国内各大金店黄金价格和国际黄金白银期货价格的接口。

更新时间:2026-05-02 23:31:50

今日金价查询 API 接口文档 (V1)

接口概述

今日金价查询API是一个实时获取国内各大金店黄金价格和国际黄金白银期货价格的接口。

请求参数

本接口无需传入任何参数,直接请求即可获取最新金价数据。

JSON 请求参数示例

[]

响应参数

成功响应

{
    "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": 502,
    "msg": "请求目标页面失败,请稍后重试",
    "data": null,
    "api_info": {
        "developer": "尋鯨錄",
        "blog": "https://www.xunjinlu.fun",
        "api_platform": "https://api.xunjinlu.fun"
    }
}

响应字段说明

根字段

字段 类型 说明
code int 状态码,200为成功,502为请求失败
msg string 状态描述信息
data object/null 返回的金价数据
api_info object API开发者信息

data 字段

字段 类型 说明
update_time string 数据更新时间
shops array 金店金价列表
futures array 国际期货价格列表
charts array 金价走势图数据(近30天历史价格)

shops 字段(金店金价)

字段 类型 说明
name string 金店名称(如:周大福、六福珠宝等)
retail_price string 黄金零售价(元/克)
exchange_price string/null 黄金换购价(元/克),无数据时为null
update_time string 该金店数据更新时间

futures 字段(国际期货)

字段 类型 说明
name string 期货品种名称
trade_price string 交易价格
trade_unit string 交易单位
convert_price string 换算价格
convert_unit string 换算单位
update_time string 数据更新时间

charts 字段(金价走势图)

字段 类型 说明
intl_gold_realtime string 国际黄金现货 - 24小时实时走势图
intl_gold_trend string 国际黄金现货 - 价格趋势图(K线)
intl_silver_realtime string 国际白银现货 - 24小时实时走势图
intl_silver_trend string 国际白银现货 - 价格趋势图(K线)
shanghai_gold_realtime string 上海金现货 - 24小时实时走势图
shanghai_gold_trend string 上海金现货 - 价格趋势图(K线)
shanghai_silver_realtime string 上海银现货 - 24小时实时走势图
comex_gold_realtime string COMEX黄金 - 24小时实时走势图
comex_gold_trend string COMEX黄金 - 价格趋势图(K线)
comex_silver_realtime string COMEX白银 - 24小时实时走势图
comex_silver_trend string COMEX白银 - 价格趋势图(K线)

说明:所有走势图链接均为图片URL,可直接在 <img> 标签中使用或浏览器直接访问查看。

api_info 字段

字段 类型 说明
developer string 开发者名称
blog string 开发者博客地址
api_platform string API平台地址

注意事项

  1. 跨域支持:接口已配置CORS,支持跨域访问
  2. 数据实时性:数据来源于第三方网站,实时性取决于数据源更新频率
  3. 无需鉴权:本接口完全免费,无需API密钥
  4. 返回格式:接口返回UTF-8编码的JSON数据
  5. 价格说明:黄金价格仅供参考,具体以金店实际售价为准

更新日志

版本 日期 说明
v1.0.0 2026-05-02 初始版本,支持金店金价和国际期货价格查询

开发者信息

Body

Body 类型说明

none:不发送任何Body数据,适用于GET请求或不需要Body的API

from-data:使用multipart/form-data格式发送数据,适用于上传文件或包含多种数据类型的请求

x-www-form-urlencoded:使用application/x-www-form-urlencoded格式发送数据,适用于简单的键值对数据

json:使用application/json格式发送数据,适用于复杂数据结构

xml:使用application/xml格式发送数据,适用于XML格式的API

raw:发送原始文本数据,可自定义Content-Type

请根据API要求选择合适的Body类型,并在下方输入对应格式的数据

接口响应

等待发起...

Node.js

cURL

PHP

Java

Go

Python

Fetch

C#

商户头像

尋鯨錄

每次崩溃的理由,在别人看来可能是小题大做,只有自己心里清楚这根稻草,到底压垮了多少千斤重的难过···wyy《人质》
7接口数
1.8k+调用次数
查看作者主页
ACE Banner
接口不存在,说不定被小渡喂狗了