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

接口地址 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

  1. {
  2. "code": 200,
  3. "msg": "success",
  4. "data": {
  5. "oil89": 6.99,
  6. "oil92": 7.41,
  7. "oil95": 7.83,
  8. "oil0": 7.08,
  9. "update_time": "2023-06-06",
  10. "oil_price_history": [
  11. {
  12. "oil89": 6.99,
  13. "oil92": 7.41,
  14. "oil95": 7.83,
  15. "oil0": 7.08,
  16. "update_time": "2023-05-31 00:00:00"
  17. },
  18. {
  19. "oil89": 6.92,
  20. "oil92": 7.33,
  21. "oil95": 7.75,
  22. "oil0": 7,
  23. "update_time": "2023-05-17 00:00:00"
  24. },
  25. {
  26. "oil89": 7.2,
  27. "oil92": 7.64,
  28. "oil95": 8.07,
  29. "oil0": 7.31,
  30. "update_time": "2023-04-29 00:00:00"
  31. },
  32. {
  33. "oil89": 7.32,
  34. "oil92": 7.76,
  35. "oil95": 8.2,
  36. "oil0": 7.44,
  37. "update_time": "2023-04-18 00:00:00"
  38. },
  39. {
  40. "oil89": 6.91,
  41. "oil92": 7.33,
  42. "oil95": 7.74,
  43. "oil0": 6.99,
  44. "update_time": "2023-04-01 00:00:00"
  45. },
  46. {
  47. "oil89": 7.16,
  48. "oil92": 7.59,
  49. "oil95": 8.02,
  50. "oil0": 7.26,
  51. "update_time": "2023-03-18 00:00:00"
  52. },
  53. {
  54. "oil89": 7.24,
  55. "oil92": 7.67,
  56. "oil95": 8.11,
  57. "oil0": 7.34,
  58. "update_time": "2023-02-04 00:00:00"
  59. },
  60. {
  61. "oil89": 7.08,
  62. "oil92": 7.5,
  63. "oil95": 7.93,
  64. "oil0": 7.17,
  65. "update_time": "2023-01-18 00:00:00"
  66. },
  67. {
  68. "oil89": 7.23,
  69. "oil92": 7.67,
  70. "oil95": 8.1,
  71. "oil0": 7.34,
  72. "update_time": "2023-01-04 00:00:00"
  73. },
  74. {
  75. "oil89": 7.05,
  76. "oil92": 7.47,
  77. "oil95": 7.89,
  78. "oil0": 7.14,
  79. "update_time": "2022-12-20 00:00:00"
  80. },
  81. {
  82. "oil89": 7.41,
  83. "oil92": 7.85,
  84. "oil95": 8.3,
  85. "oil0": 7.53,
  86. "update_time": "2022-12-06 00:00:00"
  87. },
  88. {
  89. "oil89": 7.74,
  90. "oil92": 8.2,
  91. "oil95": 8.66,
  92. "oil0": 7.89,
  93. "update_time": "2022-11-22 00:00:00"
  94. },
  95. {
  96. "oil89": 7.87,
  97. "oil92": 8.34,
  98. "oil95": 8.81,
  99. "oil0": 8.03,
  100. "update_time": "2022-11-08 00:00:00"
  101. },
  102. {
  103. "oil89": 7.75,
  104. "oil92": 8.22,
  105. "oil95": 8.68,
  106. "oil0": 7.9,
  107. "update_time": "2022-10-25 00:00:00"
  108. },
  109. {
  110. "oil89": 7.61,
  111. "oil92": 8.07,
  112. "oil95": 8.53,
  113. "oil0": 7.75,
  114. "update_time": "2022-09-22 00:00:00"
  115. },
  116. {
  117. "oil89": 7.83,
  118. "oil92": 8.3,
  119. "oil95": 8.77,
  120. "oil0": 7.99,
  121. "update_time": "2022-09-07 00:00:00"
  122. },
  123. {
  124. "oil89": 7.69,
  125. "oil92": 8.15,
  126. "oil95": 8.61,
  127. "oil0": 7.83,
  128. "update_time": "2022-08-24 00:00:00"
  129. },
  130. {
  131. "oil89": 7.84,
  132. "oil92": 8.31,
  133. "oil95": 8.78,
  134. "oil0": 8,
  135. "update_time": "2022-08-10 00:00:00"
  136. },
  137. {
  138. "oil89": 7.94,
  139. "oil92": 8.42,
  140. "oil95": 8.89,
  141. "oil0": 8.11,
  142. "update_time": "2022-07-27 00:00:00"
  143. },
  144. {
  145. "oil89": 8.16,
  146. "oil92": 8.65,
  147. "oil95": 9.14,
  148. "oil0": 8.36,
  149. "update_time": "2022-07-13 00:00:00"
  150. },
  151. {
  152. "oil89": 8.43,
  153. "oil92": 8.94,
  154. "oil95": 9.45,
  155. "oil0": 8.65,
  156. "update_time": "2022-06-29 00:00:00"
  157. },
  158. {
  159. "oil89": 8.67,
  160. "oil92": 9.19,
  161. "oil95": 9.71,
  162. "oil0": 8.91,
  163. "update_time": "2022-06-15 00:00:00"
  164. },
  165. {
  166. "oil89": 8.38,
  167. "oil92": 8.88,
  168. "oil95": 9.39,
  169. "oil0": 8.59,
  170. "update_time": "2022-05-31 00:00:00"
  171. },
  172. {
  173. "oil89": 8.08,
  174. "oil92": 8.57,
  175. "oil95": 9.05,
  176. "oil0": 8.26,
  177. "update_time": "2022-05-17 00:00:00"
  178. },
  179. {
  180. "oil89": 7.87,
  181. "oil92": 8.34,
  182. "oil95": 8.81,
  183. "oil0": 8.03,
  184. "update_time": "2022-04-29 00:00:00"
  185. },
  186. {
  187. "oil89": 7.71,
  188. "oil92": 8.18,
  189. "oil95": 8.64,
  190. "oil0": 7.86,
  191. "update_time": "2022-04-16 00:00:00"
  192. },
  193. {
  194. "oil89": 8.12,
  195. "oil92": 8.61,
  196. "oil95": 9.1,
  197. "oil0": 8.31,
  198. "update_time": "2022-04-01 00:00:00"
  199. },
  200. {
  201. "oil89": 8.04,
  202. "oil92": 8.52,
  203. "oil95": 9,
  204. "oil0": 8.22,
  205. "update_time": "2022-03-18 00:00:00"
  206. },
  207. {
  208. "oil89": 7.48,
  209. "oil92": 7.93,
  210. "oil95": 8.37,
  211. "oil0": 7.61,
  212. "update_time": "2022-03-04 00:00:00"
  213. },
  214. {
  215. "oil89": 7.28,
  216. "oil92": 7.72,
  217. "oil95": 8.16,
  218. "oil0": 7.39,
  219. "update_time": "2022-02-18 00:00:00"
  220. },
  221. {
  222. "oil89": 7.13,
  223. "oil92": 7.55,
  224. "oil95": 7.98,
  225. "oil0": 7.22,
  226. "update_time": "2022-01-30 00:00:00"
  227. },
  228. {
  229. "oil89": 6.89,
  230. "oil92": 7.31,
  231. "oil95": 7.72,
  232. "oil0": 6.97,
  233. "update_time": "2022-01-18 00:00:00"
  234. },
  235. {
  236. "oil89": 6.63,
  237. "oil92": 7.03,
  238. "oil95": 7.43,
  239. "oil0": 6.69,
  240. "update_time": "2022-01-01 00:00:00"
  241. },
  242. {
  243. "oil89": 6.53,
  244. "oil92": 6.92,
  245. "oil95": 7.31,
  246. "oil0": 6.57,
  247. "update_time": "2021-12-18 00:00:00"
  248. },
  249. {
  250. "oil89": 6.63,
  251. "oil92": 7.02,
  252. "oil95": 7.42,
  253. "oil0": 6.68,
  254. "update_time": "2021-12-04 00:00:00"
  255. },
  256. {
  257. "oil89": 6.95,
  258. "oil92": 7.37,
  259. "oil95": 7.78,
  260. "oil0": 7.03,
  261. "update_time": "2021-11-20 00:00:00"
  262. },
  263. {
  264. "oil89": 7.02,
  265. "oil92": 7.44,
  266. "oil95": 7.86,
  267. "oil0": 7.11,
  268. "update_time": "2021-10-23 00:00:00"
  269. },
  270. {
  271. "oil89": 6.8,
  272. "oil92": 7.2,
  273. "oil95": 7.61,
  274. "oil0": 6.86,
  275. "update_time": "2021-10-10 00:00:00"
  276. },
  277. {
  278. "oil89": 6.54,
  279. "oil92": 6.93,
  280. "oil95": 7.32,
  281. "oil0": 6.58,
  282. "update_time": "2021-09-19 00:00:00"
  283. },
  284. {
  285. "oil89": 6.47,
  286. "oil92": 6.86,
  287. "oil95": 7.25,
  288. "oil0": 6.51,
  289. "update_time": "2021-09-07 00:00:00"
  290. },
  291. {
  292. "oil89": 6.36,
  293. "oil92": 6.75,
  294. "oil95": 7.13,
  295. "oil0": 6.39,
  296. "update_time": "2021-08-24 00:00:00"
  297. },
  298. {
  299. "oil89": 6.55,
  300. "oil92": 6.94,
  301. "oil95": 7.34,
  302. "oil0": 6.6,
  303. "update_time": "2021-07-27 00:00:00"
  304. },
  305. {
  306. "oil89": 6.63,
  307. "oil92": 7.02,
  308. "oil95": 7.42,
  309. "oil0": 6.68,
  310. "update_time": "2021-07-13 00:00:00"
  311. },
  312. {
  313. "oil89": 6.57,
  314. "oil92": 6.97,
  315. "oil95": 7.36,
  316. "oil0": 6.62,
  317. "update_time": "2021-06-29 00:00:00"
  318. },
  319. {
  320. "oil89": 6.41,
  321. "oil92": 6.79,
  322. "oil95": 7.17,
  323. "oil0": 6.44,
  324. "update_time": "2021-06-12 00:00:00"
  325. },
  326. {
  327. "oil89": 6.27,
  328. "oil92": 6.65,
  329. "oil95": 7.03,
  330. "oil0": 6.29,
  331. "update_time": "2021-05-15 00:00:00"
  332. },
  333. {
  334. "oil89": 6.2,
  335. "oil92": 6.57,
  336. "oil95": 6.94,
  337. "oil0": 6.21,
  338. "update_time": "2021-04-29 00:00:00"
  339. },
  340. {
  341. "oil89": 6.12,
  342. "oil92": 6.49,
  343. "oil95": 6.86,
  344. "oil0": 6.13,
  345. "update_time": "2021-04-01 00:00:00"
  346. },
  347. {
  348. "oil89": 6.29,
  349. "oil92": 6.67,
  350. "oil95": 7.05,
  351. "oil0": 6.32,
  352. "update_time": "2021-03-18 00:00:00"
  353. },
  354. {
  355. "oil89": 6.12,
  356. "oil92": 6.48,
  357. "oil95": 6.85,
  358. "oil0": 6.12,
  359. "update_time": "2021-03-04 00:00:00"
  360. }
  361. ]
  362. }
  363. }