https://api.66laji.cn/api/qqyoujia/index.php
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
apikey
必填
|
string | 是 | 你开通的apikey | - |
此接口无额外返回参数。
curl -X GET "https://api.66laji.cn/api/qqyoujia/index.php"
-d "apikey=value"
{
"code": 0,
"msg": "获取成功",
"data": {
"batch_no": "2026032307",
"window_start": "2026-03-23 07:00:00",
"from_cache": 1,
"count": 11,
"list": [
{
"name": "布伦特原油",
"latest_price": "107.61美元/桶",
"change": "+3.20",
"change_percent": "+3.06%",
"yesterday_close": "104.41",
"high": "108.75",
"low": "105.27",
"update_time": "2026-03-23 10:51:12",
"captured_at": "2026-03-23 10:52:23"
},
{
"name": "WTI纽约原油",
"latest_price": "98.85美元/桶",
"change": "+0.76",
"change_percent": "+0.77%",
"yesterday_close": "98.09",
"high": "101.50",
"low": "96.75",
"update_time": "2026-03-23 10:51:12",
"captured_at": "2026-03-23 10:52:23"
},
{
"name": "布伦特柴油",
"latest_price": "1214美元/桶",
"change": "+29.75",
"change_percent": "+2.51%",
"yesterday_close": "1,184.25",
"high": "1,238.25",
"low": "1,198.25",
"update_time": "2026-03-23 10:51:11",
"captured_at": "2026-03-23 10:52:23"
},
{
"name": "美燃料油",
"latest_price": "4.2738美元/加仑",
"change": "-0.02",
"change_percent": "-0.53%",
"yesterday_close": "4.30",
"high": "4.39",
"low": "4.22",
"update_time": "2026-03-23 10:51:09",
"captured_at": "2026-03-23 10:52:23"
},
{
"name": "美天然气",
"latest_price": "3.052美元/mmbtu",
"change": "-0.04",
"change_percent": "-1.42%",
"yesterday_close": "3.10",
"high": "3.11",
"low": "3.01",
"update_time": "2026-03-23 10:50:46",
"captured_at": "2026-03-23 10:52:23"
},
{
"name": "美轻质原油",
"latest_price": "98.85美元/桶",
"change": "+0.63",
"change_percent": "+0.64%",
"yesterday_close": "98.23",
"high": "101.48",
"low": "96.80",
"update_time": "2026-03-23 10:51:12",
"captured_at": "2026-03-23 10:52:23"
},
{
"name": "美无铅汽油",
"latest_price": "3.2728美元/加仑",
"change": "+0.01",
"change_percent": "+0.41%",
"yesterday_close": "3.26",
"high": "3.35",
"low": "3.24",
"update_time": "2026-03-23 10:51:10",
"captured_at": "2026-03-23 10:52:23"
},
{
"name": "低硫燃油",
"latest_price": "5883元(人民币)/吨",
"change": "+106.00",
"change_percent": "+1.83%",
"yesterday_close": "5,592.00",
"high": "5,980.00",
"low": "5,620.00",
"update_time": "2026-03-23 10:51:13",
"captured_at": "2026-03-23 10:52:23"
},
{
"name": "上海原油",
"latest_price": "816.3元(人民币)/桶",
"change": "+39.90",
"change_percent": "+5.14%",
"yesterday_close": "773.60",
"high": "822.30",
"low": "776.60",
"update_time": "2026-03-23 10:51:13",
"captured_at": "2026-03-23 10:52:23"
},
{
"name": "上海燃料油",
"latest_price": "5015元/吨",
"change": "+241.00",
"change_percent": "+5.05%",
"yesterday_close": "4,756.00",
"high": "5,055.00",
"low": "4,766.00",
"update_time": "2026-03-23 10:51:13",
"captured_at": "2026-03-23 10:52:23"
},
{
"name": "液化石油气",
"latest_price": "7281元(人民币)/吨",
"change": "+721.00",
"change_percent": "+10.99%",
"yesterday_close": "6,735.00",
"high": "7,281.00",
"low": "6,650.00",
"update_time": "2026-03-23 10:51:00",
"captured_at": "2026-03-23 10:52:23"
}
]
}
}
以下是通用错误代码说明:
| 状态码 | 状态 | 说明 | 解决方案 |
|---|---|---|---|
| 0 | 成功 | 请求成功,返回所需数据 | 正常处理返回数据 |
| -1 | 缺少API秘钥 | API密钥不能为空! | 检查请求参数是否符合要求 |
| -1 | 秘钥无效 | API密钥不存在或无效! | 检查API密钥是否正确 |
| -1 | 账号已被封禁 | 账号已被禁止使用 | 检查账户权限 |
| -1 | 接口不存在/接口已下架 | 请求的接口地址不存在 | 检查接口地址是否正确 |
| -1 | 当前接口需要实名认证才可以使用 | 登录网站进行实名认证 | 有些接口需要实名 |
| -1 | 余额不足 | 账户余额不足无法调用按此计费接口 | 请及时充值余额 |
| -1 | 请先开通包月服务 | 按月付费接口 | 请开通包月使用 |
| -1 | 会员已到期 | 按月接口到期 | 请续费包月使用 |
| -1 | 当前用户无权限调用 | VIP会员专用接口 | 请开通对应的会员进行使用 |