今日油价接口 全国省市今日油价数据实现

今日油价接口实现全国省市今日汽油价格查询最新柴油油价实时行情

接口名称:今日油价接口

接口平台:免费接口

接口地址:http://apis.juhe.cn/cnoil/oil_city

支持格式:json/xml

请求方式:GET/POST

请求示例:http://apis.juhe.cn/cnoil/oil_city?key=你申请的key

今日油价接口调用代码JSON返回示例:

{
"resultcode":200,
"reason":"success",
"time":"2013-8-26 7:20:42",
"result":[
{
   "city":"北京",
   "b90":"-",
   "b93":"92号:7.55",
   "b97":"95号:8.05",
   "b0":"7.51"
  },
{
   "city":"上海(国IV)",
   "b90":"-",
   "b93":"7.50",
   "b97":"7.98",
   "b0":"7.39"
  },
{
   "city":"天津",
   "b90":"6.70",
   "b93":"7.22",
   "b97":"7.63",
   "b0":"7.05"
},
  {
   "city":"重庆",
   "b90":"6.91",
   "b93":"7.30",
   "b97":"7.72",
   "b0":"7.11"
},
  {
   "city":"福建",
   "b90":"6.70",
   "b93":"7.20",
   "b97":"7.69",
   "b0":"7.04"
},
  {
   "city":"甘肃",
   "b90":"6.64",
   "b93":"7.05",
   "b97":"7.52",
   "b0":"6.93"
},
  {
   "city":"广东",
   "b90":"6.90",
   "b93":"7.44",
   "b97":"8.07",
   "b0":"7.21"
},
  {
   "city":"广西",
   "b90":"6.68",
   "b93":"6.99",
   "b97":"7.36",
   "b0":"6.98"
},
  {
   "city":"贵州",
   "b90":"6.66",
   "b93":"7.14",
   "b97":"7.36",
   "b0":"7.07"
},
  {
   "city":"海南",
   "b90":"7.73",
   "b93":"8.36",
   "b97":"8.88",
   "b0":"7.15"
},
  {
   "city":"河北",
   "b90":"6.69",
   "b93":"7.20",
   "b97":"7.51",
   "b0":"7.05"
},
  {
   "city":"河南",
   "b90":"6.84",
   "b93":"7.13",
   "b97":"7.43",
   "b0":"7.06"
},
  {
   "city":"湖北",
   "b90":"6.76",
   "b93":"7.16",
   "b97":"7.48",
   "b0":"7.07"
},
  {
   "city":"湖南",
   "b90":"6.75",
   "b93":"7.17",
   "b97":"7.53",
   "b0":"7.08"
},
  {
   "city":"吉林",
   "b90":"6.87",
   "b93":"7.05",
   "b97":"7.74",
   "b0":"7.09"
},
  {
   "city":"江苏",
   "b90":"6.75",
   "b93":"7.15",
   "b97":"7.57",
   "b0":"7.01"
},
  {
   "city":"江西",
   "b90":"6.66",
   "b93":"7.12",
   "b97":"7.63",
   "b0":"7.00"
},
  {
   "city":"辽宁",
   "b90":"6.71",
   "b93":"7.11",
   "b97":"7.55",
   "b0":"7.08"
},
  {
   "city":"内蒙古",
   "b90":"6.67",
   "b93":"6.98",
   "b97":"7.48",
   "b0":"7.03"
},
  {
   "city":"安徽",
   "b90":"6.74",
   "b93":"7.08",
   "b97":"7.50",
   "b0":"7.07"
},
  {
   "city":"宁夏",
   "b90":"6.72",
   "b93":"7.09",
   "b97":"7.42",
   "b0":"6.98"
},
  {
   "city":"青海",
   "b90":"6.69",
   "b93":"7.11",
   "b97":"7.37",
   "b0":"7.05"
},
  {
   "city":"山东",
   "b90":"6.70",
   "b93":"7.12",
   "b97":"7.58",
   "b0":"7.05"
},
  {
   "city":"陕西",
   "b90":"6.71",
   "b93":"7.09",
   "b97":"7.54",
   "b0":"6.95"
},
  {
   "city":"山西",
   "b90":"6.72",
   "b93":"7.06",
   "b97":"7.47",
   "b0":"7.12"
},
  {
   "city":"四川",
   "b90":"6.81",
   "b93":"7.16",
   "b97":"7.71",
   "b0":"7.12"
},
  {
   "city":"西藏",
   "b90":"7.69",
   "b93":"8.15",
   "b97":"8.71",
   "b0":"7.50"
},
  {
   "city":"黑龙江",
   "b90":"6.90",
   "b93":"7.25",
   "b97":"7.48",
   "b0":"6.84"
},
  {
   "city":"新疆",
   "b90":"6.61",
   "b93":"7.08",
   "b97":"7.44",
   "b0":"6.99"
},
  {
   "city":"云南",
   "b90":"6.80",
   "b93":"7.10",
   "b97":"7.79",
   "b0":"7.09"
},
  {
   "city":"浙江",
   "b90":"6.68",
   "b93":"7.19",
   "b97":"7.64",
   "b0":"7.03"
},
  {
   "city":"深圳",
   "b90":"-",
   "b93":"7.28",
   "b97":"7.70",
   "b0":"7.24"
   }
 ] 
}

今日油价接口调用代码XML返回示例:

<root>
 <resultcode>200</resultcode>
 <reason>successed</reason>
 <result>
  <data>
   <item>
    <city>北京</city>
    <b90>-</b90>
    <b93>92号:7.55</b93>
    <b97>95号:8.05</b97>
    <b0>7.51</b0>
   </item>
   <item>
    <city>上海(国IV)</city>
    <b90>-</b90>
    <b93>7.50</b93>
    <b97>7.98</b97>
    <b0>7.39</b0>
   </item>
   <item>
    <city>天津</city>
    <b90>6.70</b90>
    <b93>7.22</b93>
    <b97>7.63</b97>
    <b0>7.05</b0>
   </item>
   <item>
    <city>重庆</city>
    <b90>6.91</b90>
    <b93>7.30</b93>
    <b97>7.72</b97>
    <b0>7.11</b0>
   </item>
    <item>
    <city>福建</city>
    <b90>6.70</b90>
    <b93>7.20</b93>
    <b97>7.69</b97>
    <b0>7.04</b0>
   </item>
   <item>
    <city>甘肃</city>
    <b90>6.64</b90>
    <b93>7.05</b93>
    <b97>7.52</b97>
    <b0>6.93</b0>
   </item>
    <item>
    <city>广东</city>
    <b90>6.90</b90>
    <b93>7.44</b93>
    <b97>8.07</b97>
    <b0>7.21</b0>
   </item>
   <item>
    <city>广西</city>
    <b90>6.68</b90>
    <b93>6.99</b93>
    <b97>7.36</b97>
    <b0>6.98</b0>
   </item>
    <item>
    <city>贵州</city>
    <b90>6.66</b90>
    <b93>7.14</b93>
    <b97>7.36</b97>
    <b0>7.07</b0>
   </item>
   <item>
    <city>海南</city>
    <b90>7.73</b90>
    <b93>8.36</b93>
    <b97>8.88</b97>
    <b0>7.15</b0>
   </item>
   <item>
    <city>河北</city>
    <b90>6.69</b90>
    <b93>7.20</b93>
    <b97>7.51</b97>
    <b0>7.05</b0>
   </item>
   <item>
    <city>河南</city>
    <b90>6.84</b90>
    <b93>7.13</b93>
    <b97>7.43</b97>
    <b0>7.06</b0>
   </item>
   <item>
    <city>湖北</city>
    <b90>6.76</b90>
    <b93>7.16</b93>
    <b97>7.48</b97>
    <b0>7.07</b0>
   </item>
   <item>
    <city>湖南</city>
    <b90>6.75</b90>
    <b93>7.17</b93> 
    <b97>7.53</b97>
    <b0>7.08</b0>
   </item>
   <item>
    <city>吉林</city>
    <b90>6.87</b90>
    <b93>7.05</b93>
    <b97>7.74</b97>
    <b0>7.09</b0>
   </item>
   <item>
    <city>江苏</city>
    <b90>6.75</b90>
    <b93>7.15</b93>
    <b97>7.57</b97>
    <b0>7.01</b0>
   </item>
   <item>
    <city>江西</city>
    <b90>6.66</b90>
    <b93>7.12</b93>
    <b97>7.63</b97>
    <b0>7.00</b0>
   </item>
    <item>
    <city>辽宁</city>
    <b90>6.71</b90>
    <b93>7.11</b93>
    <b97>7.55</b97>
    <b0>7.08</b0>
   </item>
    <item>
    <city>内蒙古</city>
    <b90>6.67</b90>
    <b93>6.98</b93>
    <b97>7.48</b97>
    <b0>7.03</b0>
   </item>
   <item>
    <city>安徽</city>
    <b90>6.74</b90>
    <b93>7.08</b93>
    <b97>7.50</b97>
    <b0>7.07</b0>
   </item>
    <item>
    <city>宁夏</city>
    <b90>6.72</b90>
    <b93>7.09</b93>
    <b97>7.42</b97>
    <b0>6.98</b0>
   </item>
   <item>
    <city>青海</city>
    <b90>6.69</b90>
    <b93>7.11</b93>
    <b97>7.37</b97>
    <b0>7.05</b0>
   </item>
   <item>
    <city>山东</city>
    <b90>6.70</b90>
    <b93>7.12</b93>
    <b97>7.58</b97>
    <b0>7.05</b0>
   </item>
   <item>
    <city>陕西</city>
    <b90>6.71</b90>
    <b93>7.09</b93>
    <b97>7.54</b97>
    <b0>6.95</b0>
   </item>
   <item>
    <city>山西</city>
    <b90>6.72</b90>
    <b93>7.06</b93>
    <b97>7.47</b97>
    <b0>7.12</b0>
   </item>
   <item>
    <city>四川</city>
    <b90>6.81</b90>
    <b93>7.16</b93>
    <b97>7.71</b97>
    <b0>7.12</b0>
   </item>
   <item>
    <city>西藏</city>
    <b90>7.69</b90>
    <b93>8.15</b93>
    <b97>8.71</b97>
    <b0>7.50</b0>
   </item>
   <item>
    <city>黑龙江</city>
    <b90>6.90</b90>
    <b93>7.25</b93>
    <b97>7.48</b97>
    <b0>6.84</b0>
   </item>
   <item>
    <city>新疆</city>
    <b90>6.61</b90>
    <b93>7.08</b93>
    <b97>7.44</b97>
    <b0>6.99</b0>
   </item>
   <item>
    <city>云南</city>
    <b90>6.80</b90>
    <b93>7.10</b93>
    <b97>7.79</b97>
    <b0>7.09</b0>
   </item>
   <item>
    <city>浙江</city>
    <b90>6.68</b90>
    <b93>7.19</b93>
    <b97>7.64</b97>
    <b0>7.03</b0>
   </item>
   <item>
    <city>深圳</city>
    <b90>-</b90>
    <b93>7.28</b93>
    <b97>7.70</b97>
    <b0>7.24</b0>
   </item>
 </data>
  <time>2013-8-27 3:20:42</time>
 </result>
</root>


你可能感兴趣的:(油价API,今日油价,汽油价格查询)