油價查詢

油價查詢 · GPT Actions

中油近期油價

取得短期間內中油油價

  • GET /manager/feature/proxy/13fc0d255c09e81d486d1658250bd75774/pub_43e93b928b85ce04a658250bfd01f4cpc_oil_price

    取得中油近期油價。

Original API schema
{
  "openapi": "3.1.0",
  "info": {
    "title": "中油近期油價",
    "description": "取得短期間內中油油價",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://superiorapis-creator.cteam.com.tw"
    }
  ],
  "paths": {
    "/manager/feature/proxy/13fc0d255c09e81d486d1658250bd75774/pub_43e93b928b85ce04a658250bfd01f4": {
      "get": {
        "responses": {
          "200": {
            "description": "呼叫成功回傳",
            "content": {
              "application/json": {
                "schema": {
                  "description": "",
                  "type": "object",
                  "additionalProperties": {
                    "description": "各日期油價資訊",
                    "type": "array",
                    "items": {
                      "description": "各日期油價資訊",
                      "type": "object",
                      "properties": {
                        "title": {
                          "alias": "油品名稱",
                          "description": "油品名稱",
                          "type": "string"
                        },
                        "price": {
                          "alias": "價格",
                          "description": "價格",
                          "type": "number"
                        }
                      },
                      "required": [
                        "title",
                        "price"
                      ]
                    }
                  },
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "呼叫失敗",
            "content": {
              "application/json": {
                "schema": {
                  "description": "",
                  "type": "object",
                  "properties": {
                    "status": {
                      "alias": "狀態",
                      "description": "呼叫失敗狀態",
                      "type": "integer"
                    },
                    "error_msg": {
                      "alias": "錯誤訊息",
                      "description": "錯誤訊息",
                      "type": "string"
                    }
                  },
                  "required": [
                    "status",
                    "error_msg"
                  ]
                }
              }
            }
          }
        },
        "description": "取得中油近期油價。",
        "operationId": "cpc_oil_price",
        "deprecated": false
      }
    }
  }
}