返回首页 贰月红API管理系统
登录

今日金价

正常

查询当天的金价信息 type参数为金价类型 brand 仅获取品牌金价 intl 仅获取国际金价 domestic 仅获取国内金价 format为输出格式 format=text 获取文本格式输出 format=txt 获取文本格式输出(简写)

GET
调用 524 次
JSON
更新于 2026-02-03
请求地址
https://api.iosxx.cn/API/jrjj.php
示例地址
https://api.iosxx.cn/API/jrjj.php?format=text
请求参数
参数名 类型 必填 说明
type string brand或intl或domestic
format string text为详细介绍~txt为简单介绍
状态码说明
状态码 说明
200请求成功
403权限不足或API密钥无效
404请求的资源不存在
429请求过于频繁,已被限流
500服务器内部错误
在线测试
响应结果
点击"发送请求"查看响应结果...
代码示例
<?php
$url = 'https://api.iosxx.cn/API/jrjj.php';
$params = [
    'type' => 'YOUR_VALUE',
    'format' => 'YOUR_VALUE',
];

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url . '?' . http_build_query($params));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);

echo $response;
?>
import requests

url = "https://api.iosxx.cn/API/jrjj.php"
params = {
    "type": "YOUR_VALUE",
    "format": "YOUR_VALUE",
}

response = requests.get(url, params=params)
print(response.text)
const url = new URL('https://api.iosxx.cn/API/jrjj.php');
const params = {
    'type': 'YOUR_VALUE',
    'format': 'YOUR_VALUE',
};

Object.keys(params).forEach(key => 
    url.searchParams.append(key, params[key]));

fetch(url)
    .then(res => res.text())
    .then(data => console.log(data))
    .catch(err => console.error(err));
curl -X GET "https://api.iosxx.cn/API/jrjj.php?type=YOUR_VALUE&format=YOUR_VALUE"