聚合数据

全国加油站

  • 数据类型: 交通地理
  • 接口状态: 正常
  • 已连接App的数量: 13157
  • 描述: 全国加油站、周边加油站,以及参考油价查询

接口地址: http://apis.juhe.cn/oil/region

支持格式: JSON

请求方式: POST/GET

请求示例: http://apis.juhe.cn/oil/region?key=您申请的APPKEY&format=2&city=%E5%8C%97%E4%BA%AC%E5%B8%82

请求参数:

名称 类型 必填 说明
city string 城市名urlencode utf8;
keywords string 关键字urlencode utf8;
page int 页数,默认1
format int 格式选择1或2,默认1
key string 在个人中心->我的数据,接口名称上方查看

返回字段:

名称 类型 说明
error_code int 返回码
reason string 返回说明
data - 返回结果集
  name string 加油站名称
  area string 城市邮编
  areaname string 城市区域
  address string 加油站地址
  brandname string 运营商类型
  type string 加油站类型
  discount string 是否打折加油站
  exhaust string 尾气排放标准
  position string 谷歌地图坐标
  lat double 百度地图纬度
  lon double 百度地图经度
  price string 省控基准油价,E90对应89(90)号汽油,E93对应92(93)号汽油,E97对应95(97)号汽油,E0对应0号
  gastprice string 字段不再更新,移除,请忽略
  fwlsmc string 加油卡信息

JSON返回示例:

{
    "resultcode": "200",
    "reason": "Successed!",
    "result": {
        "data": [
            {
                "id": "34299",
                "name": "中油燕宾北邮加油站‎(办卡优惠)",
                "area": "chongwen",
                "areaname": "北京市 崇文区",
                "address": "北京市崇文区天坛路12号,与东市场东街路交叉西南角(天坛北门往西一公里路南)。",
                "brandname": "中石油",
                "type": "加盟店",
                "discount": "打折加油站",
                "exhaust": "京Ⅴ",
                "position": "116.401654,39.886973",
                "lon": "116.40804671453",
                "lat": "39.893324983272",
                "price": [
                    {
                        "type": "E90",
                        "price": "7.31"
                    },
                    {
                        "type": "E93",
                        "price": "6.92"
                    },
                    {
                        "type": "E97",
                        "price": "7.36"
                    },
                    {
                        "type": "E0",
                        "price": "6.84"
                    }
                ],
                "gastprice": [
                    {
                        "name": "92#",
                        "price": "6.77"
                    },
                    {
                        "name": "95#",
                        "price": "7.36"
                    }
                ],
                "fwlsmc": "银联卡,信用卡支付",
                "distance": 2564
            },
            {
                "id": "34316",
                "name": "中油北汽宣武门加油站(办卡优惠)",
                "area": "xuanwu",
                "areaname": "北京市 宣武区",
                "address": "北京市宣武区宣武门西大街28院宣武门地铁西南出口辅路。",
                "brandname": "中石油",
                "type": "加盟店",
                "discount": "打折加油站",
                "exhaust": "京Ⅴ",
                "position": "116.373169,39.899263",
                "lon": "116.37964995964",
                "lat": "39.905320913583",
                "price": [
                    {
                        "type": "E90",
                        "price": "7.31"
                    },
                    {
                        "type": "E93",
                        "price": "6.92"
                    },
                    {
                        "type": "E97",
                        "price": "7.36"
                    },
                    {
                        "type": "E0",
                        "price": "6.84"
                    }
                ],
                "gastprice": [
                    {
                        "name": "92#",
                        "price": "6.92"
                    },
                    {
                        "name": "95#",
                        "price": "7.36"
                    }
                ],
                "fwlsmc": "银联卡,信用卡支付,加油卡,便利店,洗车服务",
                "distance": 2332
            },
            {
                "id": "34374",
                "name": "中石化宣武门加油站",
                "area": "xuanwu",
                "areaname": "北京市 宣武区",
                "address": "北京市宣武区宣武门东大街,(北京市急救中心对面,北京市教委斜对面。崇光百货的北面)。",
                "brandname": "中石化",
                "type": "直营店",
                "discount": "打折加油站",
                "exhaust": "京Ⅴ",
                "position": "116.3724501688,39.8936984142",
                "lon": "116.38527024009",
                "lat": "39.905558817477",
                "price": [
                    {
                        "type": "E90",
                        "price": "7.31"
                    },
                    {
                        "type": "E93",
                        "price": "6.92"
                    },
                    {
                        "type": "E97",
                        "price": "7.36"
                    },
                    {
                        "type": "E0",
                        "price": "6.84"
                    }
                ],
                "gastprice": [
                    {
                        "name": "92#",
                        "price": "6.92"
                    },
                    {
                        "name": "95#",
                        "price": "7.36"
                    }
                ],
                "fwlsmc": "银联卡,信用卡支付,加油卡,便利店,发卡充值网点,卫生间,银联卡充值,移动二维码业务,加油卡充值业务,会员卡服务,公交卡充值,出租车数据采集",
                "distance": 1920
            },
            {
                "id": "46231",
                "name": "中石化崇文门加油站",
                "area": "chongwen",
                "areaname": "北京市 崇文区",
                "address": "北京市崇文区崇文门东大街甲22号崇文门地铁站以东400米处,崇文门饭店东面。",
                "brandname": "中石化",
                "type": "直营店",
                "discount": "打折加油站",
                "exhaust": "京Ⅴ",
                "position": "116.421336,39.900329",
                "lon": "116.42778321554",
                "lat": "39.906481951762",
                "price": [
                    {
                        "type": "E90",
                        "price": "7.31"
                    },
                    {
                        "type": "E93",
                        "price": "6.92"
                    },
                    {
                        "type": "E97",
                        "price": "7.36"
                    },
                    {
                        "type": "E0",
                        "price": "6.84"
                    }
                ],
                "gastprice": [
                    {
                        "name": "92#",
                        "price": "6.92"
                    },
                    {
                        "name": "95#",
                        "price": "7.36"
                    }
                ],
                "fwlsmc": "加油卡,便利店,92#自助加油,95#自助加油,发卡充值网点,银联卡充值,移动二维码业务,加油卡充值业务,出租车数据采集",
                "distance": 2360
            },
            {
                "id": "34280",
                "name": "中石化北京站加油站",
                "area": "dongcheng",
                "areaname": "北京市 东城区",
                "address": "北京市东城区西镇江胡同北京站西街路西北。",
                "brandname": "中石化",
                "type": "直营店",
                "discount": "打折加油站",
                "exhaust": "京Ⅴ",
                "position": "116.422892,39.904058",
                "lon": "116.42934447783",
                "lat": "39.910183641108",
                "price": [
                    {
                        "type": "E90",
                        "price": "7.31"
                    },
                    {
                        "type": "E93",
                        "price": "6.92"
                    },
                    {
                        "type": "E97",
                        "price": "7.36"
                    },
                    {
                        "type": "E0",
                        "price": "6.84"
                    }
                ],
                "gastprice": [
                    {
                        "name": "0#",
                        "price": "6.84"
                    },
                    {
                        "name": "92#",
                        "price": "6.92"
                    },
                    {
                        "name": "95#",
                        "price": "7.36"
                    }
                ],
                "fwlsmc": "加油卡,便利店,92#自助加油,95#自助加油,发卡充值网点,移动二维码业务,加油卡充值业务",
                "distance": 2332
            },
            {
                "id": "34359",
                "name": "加油站‎(东四南大街)",
                "area": "dongcheng",
                "areaname": "北京市 东城区",
                "address": "北京东城区东四南大街。",
                "brandname": "不详",
                "type": "其他",
                "discount": "非打折加油站",
                "exhaust": "京Ⅴ",
                "position": "116.415918,39.910041",
                "lon": "116.42232800867",
                "lat": "39.916272549494",
                "price": [
                    {
                        "type": "E90",
                        "price": "7.31"
                    },
                    {
                        "type": "E93",
                        "price": "6.92"
                    },
                    {
                        "type": "E97",
                        "price": "7.36"
                    },
                    {
                        "type": "E0",
                        "price": "6.84"
                    }
                ],
                "gastprice": [
                    {
                        "name": "0#",
                        "price": "6.84"
                    },
                    {
                        "name": "92#",
                        "price": "6.92"
                    },
                    {
                        "name": "95#",
                        "price": "7.36"
                    }
                ],
                "fwlsmc": "",
                "distance": 1640
            },
            {
                "id": "34297",
                "name": "中石化金融街加油站",
                "area": "xicheng",
                "areaname": "北京市 西城区",
                "address": "北京市西城区太平桥大街路西侧与二龙路西街交口处。",
                "brandname": "中石化",
                "type": "直营店",
                "discount": "打折加油站",
                "exhaust": "京Ⅴ",
                "position": "116.362794,39.912337",
                "lon": "116.36932672496",
                "lat": "39.918204483855",
                "price": [
                    {
                        "type": "E90",
                        "price": "7.31"
                    },
                    {
                        "type": "E93",
                        "price": "6.92"
                    },
                    {
                        "type": "E97",
                        "price": "7.36"
                    },
                    {
                        "type": "E0",
                        "price": "6.84"
                    }
                ],
                "gastprice": [
                    {
                        "name": "92#",
                        "price": "6.92"
                    },
                    {
                        "name": "95#",
                        "price": "7.36"
                    }
                ],
                "fwlsmc": "银联卡,信用卡支付,加油卡,便利店,发卡充值网点,卫生间,银联卡充值,移动二维码业务,加油卡充值业务,会员卡服务,公交卡充值,出租车数据采集",
                "distance": 2895
            },
            {
                "id": "75156",
                "name": "中石油朝阳加油站",
                "area": "",
                "areaname": "北京市 东城区",
                "address": "",
                "brandname": "中石油",
                "type": "其他",
                "discount": "打折加油站",
                "exhaust": "京Ⅴ",
                "position": "116.42194748,39.91724124",
                "lon": "116.4283836199",
                "lat": "39.923379083879",
                "price": [
                    {
                        "type": "E90",
                        "price": "7.31"
                    },
                    {
                        "type": "E93",
                        "price": "6.92"
                    },
                    {
                        "type": "E97",
                        "price": "7.36"
                    },
                    {
                        "type": "E0",
                        "price": "6.84"
                    }
                ],
                "gastprice": [
                    {
                        "name": "0#",
                        "price": "6.84"
                    },
                    {
                        "name": "92#",
                        "price": "6.58"
                    }
                ],
                "fwlsmc": "信用卡支付",
                "distance": 2306
            },
            {
                "id": "34360",
                "name": "中国石化 (中国新闻出版总署东南)...",
                "area": "dongcheng",
                "areaname": "北京市 东城区",
                "address": "北京市东四南大街106号中华人民共和国新闻出版总署东南。",
                "brandname": "中石化",
                "type": "直营店",
                "discount": "打折加油站",
                "exhaust": "京Ⅴ",
                "position": "116.417775,39.92043",
                "lon": "116.42418687653",
                "lat": "39.926632910538",
                "price": [
                    {
                        "type": "E90",
                        "price": "7.31"
                    },
                    {
                        "type": "E93",
                        "price": "6.92"
                    },
                    {
                        "type": "E97",
                        "price": "7.36"
                    },
                    {
                        "type": "E0",
                        "price": "6.84"
                    }
                ],
                "gastprice": [
                    {
                        "name": "0#",
                        "price": "6.84"
                    },
                    {
                        "name": "92#",
                        "price": "6.92"
                    }
                ],
                "fwlsmc": "加油卡",
                "distance": 2151
            },
            {
                "id": "34291",
                "name": "中石化景山加油站",
                "area": "dongcheng",
                "areaname": "北京市 东城区",
                "address": "北京市东城景山后街7号,区景山后街东段路北,与地安门内大街交叉口东。",
                "brandname": "中石化",
                "type": "直营店",
                "discount": "打折加油站",
                "exhaust": "京Ⅴ",
                "position": "116.397631,39.928785",
                "lon": "116.40399325389",
                "lat": "39.935125033327",
                "price": [
                    {
                        "type": "E90",
                        "price": "7.31"
                    },
                    {
                        "type": "E93",
                        "price": "6.92"
                    },
                    {
                        "type": "E97",
                        "price": "7.36"
                    },
                    {
                        "type": "E0",
                        "price": "6.84"
                    }
                ],
                "gastprice": [
                    {
                        "name": "92#",
                        "price": "6.92"
                    }
                ],
                "fwlsmc": "加油卡,便利店,发卡充值网点,移动二维码业务,加油卡充值业务,出租车数据采集",
                "distance": 2126
            },
            {
                "id": "15955",
                "name": "中石化平安大街加油站‎ ‎",
                "area": "xicheng",
                "areaname": "北京市 西城区",
                "address": "北京市西城区西城区地安门西大街,北海北门向西,教场胡同里。",
                "brandname": "中石化",
                "type": "直营店",
                "discount": "打折加油站",
                "exhaust": "京Ⅴ",
                "position": "116.386505,39.932882",
                "lon": "116.39289518126",
                "lat": "39.93914114521",
                "price": [
                    {
                        "type": "E90",
                        "price": "7.31"
                    },
                    {
                        "type": "E93",
                        "price": "6.92"
                    },
                    {
                        "type": "E97",
                        "price": "7.36"
                    },
                    {
                        "type": "E0",
                        "price": "6.84"
                    }
                ],
                "gastprice": [
                    {
                        "name": "0#",
                        "price": "6.84"
                    },
                    {
                        "name": "92#",
                        "price": "6.92"
                    },
                    {
                        "name": "95#",
                        "price": "7.36"
                    }
                ],
                "fwlsmc": "银联卡,加油卡,便利店,柴油自助加油,发卡充值网点,银联卡充值,移动二维码业务,加油卡充值业务,出租车数据采集",
                "distance": 2715
            }
        ],
        "pageinfo": {
            "pnums": 20,
            "current": "1",
            "allpage": 1
        }
    },
    "error_code": 0
}

XML返回示例:


          

备注:经纬度支持基于BAIDU地图坐标查询

服务级错误码参照(error_code):

错误码 说明
200701 城市名不能为空
200702 错误的经纬度
200703 无结果了
200705 无结果了

系统级错误码参照:

错误码 说明
10001 错误的请求KEY
10002 该KEY无请求权限
10003 KEY过期
10004 错误的OPENID
10005 应用未审核超时,请提交认证
10007 未知的请求源
10008 被禁止的IP
10009 被禁止的KEY
10011 当前IP请求超过限制
10012 请求超过次数限制
10013 测试KEY超过请求限制
10014 系统内部异常(调用充值类业务时,请务必联系客服或通过订单查询接口检测订单,避免造成损失)
10020 接口维护
10021 接口停用

错误码格式说明(示例:200201):

2 002 01
服务级错误(1为系统级错误) 服务模块代码(即数据ID) 具体错误代码

《全国加油站》资费说明:

等级 价格(元) 请求次数
发展套餐 1000.00 50000
会员套餐 3000.00 200000
豪华套餐 5000.00 500000

其他相关内容:

内容 详细
接口测试 API测试工具
技术支持 info@juhe.cn
联系电话 0512-62391880
QQ交流群 264591694
在线客服QQ 1794844675
商务合作QQ 603866358