全国省份油价
全国省份油价获取

接口地址 https://apis.kit9.cn/api/province_oil_price/api.php

请求方式 GET/POST

返回格式 JSON

HTTP/HTTPS 支持

请求示例 https://apis.kit9.cn/api/province_oil_price/api.php?province=陕西

参数说明

参数 必填 类型 说明
provinceString省份

返回参数

名称 类型 说明
code number 状态码,200为正常,其它为异常
msg string 状态说明
data array 数组
oil89 string 当天89气油价
oil92 string 当天92气油价
oil95 string 当天95气油价
oil0 string 当天0号柴油价
update_time string 数据更新时间
oil_price_history array 数组
oil89 string 历史89气油价
oil92 string 历史92气油价
oil95 string 历史95气油价
oil0 string 历史0号柴油价
update_time string 数据更新时间

返回示例

{
    "code": 200,
    "msg": "success",
    "data": {
        "oil89": 6.99,
        "oil92": 7.41,
        "oil95": 7.83,
        "oil0": 7.08,
        "update_time": "2023-06-06",
        "oil_price_history": [
            {
                "oil89": 6.99,
                "oil92": 7.41,
                "oil95": 7.83,
                "oil0": 7.08,
                "update_time": "2023-05-31 00:00:00"
            },
            {
                "oil89": 6.92,
                "oil92": 7.33,
                "oil95": 7.75,
                "oil0": 7,
                "update_time": "2023-05-17 00:00:00"
            },
            {
                "oil89": 7.2,
                "oil92": 7.64,
                "oil95": 8.07,
                "oil0": 7.31,
                "update_time": "2023-04-29 00:00:00"
            },
            {
                "oil89": 7.32,
                "oil92": 7.76,
                "oil95": 8.2,
                "oil0": 7.44,
                "update_time": "2023-04-18 00:00:00"
            },
            {
                "oil89": 6.91,
                "oil92": 7.33,
                "oil95": 7.74,
                "oil0": 6.99,
                "update_time": "2023-04-01 00:00:00"
            },
            {
                "oil89": 7.16,
                "oil92": 7.59,
                "oil95": 8.02,
                "oil0": 7.26,
                "update_time": "2023-03-18 00:00:00"
            },
            {
                "oil89": 7.24,
                "oil92": 7.67,
                "oil95": 8.11,
                "oil0": 7.34,
                "update_time": "2023-02-04 00:00:00"
            },
            {
                "oil89": 7.08,
                "oil92": 7.5,
                "oil95": 7.93,
                "oil0": 7.17,
                "update_time": "2023-01-18 00:00:00"
            },
            {
                "oil89": 7.23,
                "oil92": 7.67,
                "oil95": 8.1,
                "oil0": 7.34,
                "update_time": "2023-01-04 00:00:00"
            },
            {
                "oil89": 7.05,
                "oil92": 7.47,
                "oil95": 7.89,
                "oil0": 7.14,
                "update_time": "2022-12-20 00:00:00"
            },
            {
                "oil89": 7.41,
                "oil92": 7.85,
                "oil95": 8.3,
                "oil0": 7.53,
                "update_time": "2022-12-06 00:00:00"
            },
            {
                "oil89": 7.74,
                "oil92": 8.2,
                "oil95": 8.66,
                "oil0": 7.89,
                "update_time": "2022-11-22 00:00:00"
            },
            {
                "oil89": 7.87,
                "oil92": 8.34,
                "oil95": 8.81,
                "oil0": 8.03,
                "update_time": "2022-11-08 00:00:00"
            },
            {
                "oil89": 7.75,
                "oil92": 8.22,
                "oil95": 8.68,
                "oil0": 7.9,
                "update_time": "2022-10-25 00:00:00"
            },
            {
                "oil89": 7.61,
                "oil92": 8.07,
                "oil95": 8.53,
                "oil0": 7.75,
                "update_time": "2022-09-22 00:00:00"
            },
            {
                "oil89": 7.83,
                "oil92": 8.3,
                "oil95": 8.77,
                "oil0": 7.99,
                "update_time": "2022-09-07 00:00:00"
            },
            {
                "oil89": 7.69,
                "oil92": 8.15,
                "oil95": 8.61,
                "oil0": 7.83,
                "update_time": "2022-08-24 00:00:00"
            },
            {
                "oil89": 7.84,
                "oil92": 8.31,
                "oil95": 8.78,
                "oil0": 8,
                "update_time": "2022-08-10 00:00:00"
            },
            {
                "oil89": 7.94,
                "oil92": 8.42,
                "oil95": 8.89,
                "oil0": 8.11,
                "update_time": "2022-07-27 00:00:00"
            },
            {
                "oil89": 8.16,
                "oil92": 8.65,
                "oil95": 9.14,
                "oil0": 8.36,
                "update_time": "2022-07-13 00:00:00"
            },
            {
                "oil89": 8.43,
                "oil92": 8.94,
                "oil95": 9.45,
                "oil0": 8.65,
                "update_time": "2022-06-29 00:00:00"
            },
            {
                "oil89": 8.67,
                "oil92": 9.19,
                "oil95": 9.71,
                "oil0": 8.91,
                "update_time": "2022-06-15 00:00:00"
            },
            {
                "oil89": 8.38,
                "oil92": 8.88,
                "oil95": 9.39,
                "oil0": 8.59,
                "update_time": "2022-05-31 00:00:00"
            },
            {
                "oil89": 8.08,
                "oil92": 8.57,
                "oil95": 9.05,
                "oil0": 8.26,
                "update_time": "2022-05-17 00:00:00"
            },
            {
                "oil89": 7.87,
                "oil92": 8.34,
                "oil95": 8.81,
                "oil0": 8.03,
                "update_time": "2022-04-29 00:00:00"
            },
            {
                "oil89": 7.71,
                "oil92": 8.18,
                "oil95": 8.64,
                "oil0": 7.86,
                "update_time": "2022-04-16 00:00:00"
            },
            {
                "oil89": 8.12,
                "oil92": 8.61,
                "oil95": 9.1,
                "oil0": 8.31,
                "update_time": "2022-04-01 00:00:00"
            },
            {
                "oil89": 8.04,
                "oil92": 8.52,
                "oil95": 9,
                "oil0": 8.22,
                "update_time": "2022-03-18 00:00:00"
            },
            {
                "oil89": 7.48,
                "oil92": 7.93,
                "oil95": 8.37,
                "oil0": 7.61,
                "update_time": "2022-03-04 00:00:00"
            },
            {
                "oil89": 7.28,
                "oil92": 7.72,
                "oil95": 8.16,
                "oil0": 7.39,
                "update_time": "2022-02-18 00:00:00"
            },
            {
                "oil89": 7.13,
                "oil92": 7.55,
                "oil95": 7.98,
                "oil0": 7.22,
                "update_time": "2022-01-30 00:00:00"
            },
            {
                "oil89": 6.89,
                "oil92": 7.31,
                "oil95": 7.72,
                "oil0": 6.97,
                "update_time": "2022-01-18 00:00:00"
            },
            {
                "oil89": 6.63,
                "oil92": 7.03,
                "oil95": 7.43,
                "oil0": 6.69,
                "update_time": "2022-01-01 00:00:00"
            },
            {
                "oil89": 6.53,
                "oil92": 6.92,
                "oil95": 7.31,
                "oil0": 6.57,
                "update_time": "2021-12-18 00:00:00"
            },
            {
                "oil89": 6.63,
                "oil92": 7.02,
                "oil95": 7.42,
                "oil0": 6.68,
                "update_time": "2021-12-04 00:00:00"
            },
            {
                "oil89": 6.95,
                "oil92": 7.37,
                "oil95": 7.78,
                "oil0": 7.03,
                "update_time": "2021-11-20 00:00:00"
            },
            {
                "oil89": 7.02,
                "oil92": 7.44,
                "oil95": 7.86,
                "oil0": 7.11,
                "update_time": "2021-10-23 00:00:00"
            },
            {
                "oil89": 6.8,
                "oil92": 7.2,
                "oil95": 7.61,
                "oil0": 6.86,
                "update_time": "2021-10-10 00:00:00"
            },
            {
                "oil89": 6.54,
                "oil92": 6.93,
                "oil95": 7.32,
                "oil0": 6.58,
                "update_time": "2021-09-19 00:00:00"
            },
            {
                "oil89": 6.47,
                "oil92": 6.86,
                "oil95": 7.25,
                "oil0": 6.51,
                "update_time": "2021-09-07 00:00:00"
            },
            {
                "oil89": 6.36,
                "oil92": 6.75,
                "oil95": 7.13,
                "oil0": 6.39,
                "update_time": "2021-08-24 00:00:00"
            },
            {
                "oil89": 6.55,
                "oil92": 6.94,
                "oil95": 7.34,
                "oil0": 6.6,
                "update_time": "2021-07-27 00:00:00"
            },
            {
                "oil89": 6.63,
                "oil92": 7.02,
                "oil95": 7.42,
                "oil0": 6.68,
                "update_time": "2021-07-13 00:00:00"
            },
            {
                "oil89": 6.57,
                "oil92": 6.97,
                "oil95": 7.36,
                "oil0": 6.62,
                "update_time": "2021-06-29 00:00:00"
            },
            {
                "oil89": 6.41,
                "oil92": 6.79,
                "oil95": 7.17,
                "oil0": 6.44,
                "update_time": "2021-06-12 00:00:00"
            },
            {
                "oil89": 6.27,
                "oil92": 6.65,
                "oil95": 7.03,
                "oil0": 6.29,
                "update_time": "2021-05-15 00:00:00"
            },
            {
                "oil89": 6.2,
                "oil92": 6.57,
                "oil95": 6.94,
                "oil0": 6.21,
                "update_time": "2021-04-29 00:00:00"
            },
            {
                "oil89": 6.12,
                "oil92": 6.49,
                "oil95": 6.86,
                "oil0": 6.13,
                "update_time": "2021-04-01 00:00:00"
            },
            {
                "oil89": 6.29,
                "oil92": 6.67,
                "oil95": 7.05,
                "oil0": 6.32,
                "update_time": "2021-03-18 00:00:00"
            },
            {
                "oil89": 6.12,
                "oil92": 6.48,
                "oil95": 6.85,
                "oil0": 6.12,
                "update_time": "2021-03-04 00:00:00"
            }
        ]
    }
}