{
    "openapi": "3.0.0",
    "info": {
        "title": "车架号VIN查询 - API文档",
        "version": "1.0.0",
        "description": "根据车辆识别码（车架号）VIN查询车辆的品牌、型号、出厂日期、发动机类型、排量等车辆参数信息。"
    },
    "servers": [
        {
            "url": "https:\/\/apis.tianapi.com"
        }
    ],
    "paths": {
        "\/chavin\/index": {
            "get": {
                "summary": "查询车架号VIN",
                "tags": [
                    "车架号VIN查询"
                ],
                "description": "根据17位车辆识别代码查询机动车信息",
                "parameters": [
                    {
                        "name": "key",
                        "in": "query",
                        "description": "API密钥",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "description": "API密钥"
                        }
                    },
                    {
                        "name": "vincode",
                        "in": "query",
                        "description": "VIN车架号",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "example": "lfv2b21k2d3534955",
                            "description": "VIN车架号"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "year": {
                                            "type": "string",
                                            "example": "2013",
                                            "description": "年款"
                                        },
                                        "power": {
                                            "type": "string",
                                            "example": "77",
                                            "description": "功率"
                                        },
                                        "airbag": {
                                            "type": "string",
                                            "description": "安全气囊"
                                        },
                                        "engine": {
                                            "type": "string",
                                            "example": "CLR",
                                            "description": "发动机型号"
                                        },
                                        "carbody": {
                                            "type": "string",
                                            "example": "两厢",
                                            "description": "车体结构"
                                        },
                                        "carline": {
                                            "type": "string",
                                            "example": "高尔夫",
                                            "description": "车系"
                                        },
                                        "cartype": {
                                            "type": "string",
                                            "example": "轿车",
                                            "description": "车辆类型"
                                        },
                                        "doornum": {
                                            "type": "string",
                                            "example": "五门",
                                            "description": "车门数"
                                        },
                                        "fuelnum": {
                                            "type": "string",
                                            "example": "93#",
                                            "description": "燃油标号"
                                        },
                                        "seatnum": {
                                            "type": "string",
                                            "example": "5",
                                            "description": "座位数"
                                        },
                                        "vincode": {
                                            "type": "string",
                                            "example": "lfv2b21k2d3534955",
                                            "description": "车架号"
                                        },
                                        "fueltype": {
                                            "type": "string",
                                            "example": "汽油",
                                            "description": "燃油类型"
                                        },
                                        "gearsnum": {
                                            "type": "string",
                                            "example": "6",
                                            "description": "挡位数"
                                        },
                                        "geartype": {
                                            "type": "string",
                                            "example": "手自一体变速器(AMT)",
                                            "description": "变速箱类型"
                                        },
                                        "madeyear": {
                                            "type": "string",
                                            "example": "2013",
                                            "description": "生产年份"
                                        },
                                        "salename": {
                                            "type": "string",
                                            "example": "1.6 手自一体 时尚版",
                                            "description": "车款名称"
                                        },
                                        "stopyear": {
                                            "type": "string",
                                            "example": "2014",
                                            "description": "停产年份"
                                        },
                                        "brandname": {
                                            "type": "string",
                                            "example": "大众",
                                            "description": "品牌"
                                        },
                                        "carweight": {
                                            "type": "string",
                                            "description": "整备质量KG"
                                        },
                                        "drivemode": {
                                            "type": "string",
                                            "example": "前轮驱动",
                                            "description": "驱动类型"
                                        },
                                        "mademonth": {
                                            "type": "string",
                                            "example": "2",
                                            "description": "生产月份"
                                        },
                                        "modelname": {
                                            "type": "string",
                                            "example": "高尔夫6",
                                            "description": "车型"
                                        },
                                        "cylindernum": {
                                            "type": "string",
                                            "example": "4",
                                            "description": "气缸数(个)"
                                        },
                                        "displacement": {
                                            "type": "string",
                                            "example": "1.6",
                                            "description": "排量L"
                                        },
                                        "guidingprice": {
                                            "type": "string",
                                            "example": "13.09",
                                            "description": "厂商指导价"
                                        },
                                        "manufacturer": {
                                            "type": "string",
                                            "example": "一汽大众",
                                            "description": "制造商"
                                        },
                                        "vehiclelevel": {
                                            "type": "string",
                                            "example": "紧凑型车",
                                            "description": "车辆级别"
                                        },
                                        "assemblyfactory": {
                                            "type": "string",
                                            "description": "制造厂"
                                        },
                                        "effluentstandard": {
                                            "type": "string",
                                            "example": "国4",
                                            "description": "排放标准"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "year": "2013",
                                        "power": "77",
                                        "airbag": "",
                                        "engine": "CLR",
                                        "carbody": "两厢",
                                        "carline": "高尔夫",
                                        "cartype": "轿车",
                                        "doornum": "五门",
                                        "fuelnum": "93#",
                                        "seatnum": "5",
                                        "vincode": "lfv2b21k2d3534955",
                                        "fueltype": "汽油",
                                        "gearsnum": "6",
                                        "geartype": "手自一体变速器(AMT)",
                                        "madeyear": "2013",
                                        "salename": "1.6 手自一体 时尚版",
                                        "stopyear": "2014",
                                        "brandname": "大众",
                                        "carweight": "",
                                        "drivemode": "前轮驱动",
                                        "mademonth": "2",
                                        "modelname": "高尔夫6",
                                        "cylindernum": "4",
                                        "displacement": "1.6",
                                        "guidingprice": "13.09",
                                        "manufacturer": "一汽大众",
                                        "vehiclelevel": "紧凑型车",
                                        "assemblyfactory": "",
                                        "effluentstandard": "国4"
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "查询车架号VIN",
                "tags": [
                    "车架号VIN查询"
                ],
                "description": "根据17位车辆识别代码查询机动车信息",
                "requestBody": {
                    "content": {
                        "application\/x-www-form-urlencoded": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "key": {
                                        "type": "string",
                                        "description": "API密钥"
                                    },
                                    "vincode": {
                                        "type": "string",
                                        "example": "lfv2b21k2d3534955",
                                        "description": "VIN车架号"
                                    }
                                },
                                "required": [
                                    "key",
                                    "vincode"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "year": {
                                            "type": "string",
                                            "example": "2013",
                                            "description": "年款"
                                        },
                                        "power": {
                                            "type": "string",
                                            "example": "77",
                                            "description": "功率"
                                        },
                                        "airbag": {
                                            "type": "string",
                                            "description": "安全气囊"
                                        },
                                        "engine": {
                                            "type": "string",
                                            "example": "CLR",
                                            "description": "发动机型号"
                                        },
                                        "carbody": {
                                            "type": "string",
                                            "example": "两厢",
                                            "description": "车体结构"
                                        },
                                        "carline": {
                                            "type": "string",
                                            "example": "高尔夫",
                                            "description": "车系"
                                        },
                                        "cartype": {
                                            "type": "string",
                                            "example": "轿车",
                                            "description": "车辆类型"
                                        },
                                        "doornum": {
                                            "type": "string",
                                            "example": "五门",
                                            "description": "车门数"
                                        },
                                        "fuelnum": {
                                            "type": "string",
                                            "example": "93#",
                                            "description": "燃油标号"
                                        },
                                        "seatnum": {
                                            "type": "string",
                                            "example": "5",
                                            "description": "座位数"
                                        },
                                        "vincode": {
                                            "type": "string",
                                            "example": "lfv2b21k2d3534955",
                                            "description": "车架号"
                                        },
                                        "fueltype": {
                                            "type": "string",
                                            "example": "汽油",
                                            "description": "燃油类型"
                                        },
                                        "gearsnum": {
                                            "type": "string",
                                            "example": "6",
                                            "description": "挡位数"
                                        },
                                        "geartype": {
                                            "type": "string",
                                            "example": "手自一体变速器(AMT)",
                                            "description": "变速箱类型"
                                        },
                                        "madeyear": {
                                            "type": "string",
                                            "example": "2013",
                                            "description": "生产年份"
                                        },
                                        "salename": {
                                            "type": "string",
                                            "example": "1.6 手自一体 时尚版",
                                            "description": "车款名称"
                                        },
                                        "stopyear": {
                                            "type": "string",
                                            "example": "2014",
                                            "description": "停产年份"
                                        },
                                        "brandname": {
                                            "type": "string",
                                            "example": "大众",
                                            "description": "品牌"
                                        },
                                        "carweight": {
                                            "type": "string",
                                            "description": "整备质量KG"
                                        },
                                        "drivemode": {
                                            "type": "string",
                                            "example": "前轮驱动",
                                            "description": "驱动类型"
                                        },
                                        "mademonth": {
                                            "type": "string",
                                            "example": "2",
                                            "description": "生产月份"
                                        },
                                        "modelname": {
                                            "type": "string",
                                            "example": "高尔夫6",
                                            "description": "车型"
                                        },
                                        "cylindernum": {
                                            "type": "string",
                                            "example": "4",
                                            "description": "气缸数(个)"
                                        },
                                        "displacement": {
                                            "type": "string",
                                            "example": "1.6",
                                            "description": "排量L"
                                        },
                                        "guidingprice": {
                                            "type": "string",
                                            "example": "13.09",
                                            "description": "厂商指导价"
                                        },
                                        "manufacturer": {
                                            "type": "string",
                                            "example": "一汽大众",
                                            "description": "制造商"
                                        },
                                        "vehiclelevel": {
                                            "type": "string",
                                            "example": "紧凑型车",
                                            "description": "车辆级别"
                                        },
                                        "assemblyfactory": {
                                            "type": "string",
                                            "description": "制造厂"
                                        },
                                        "effluentstandard": {
                                            "type": "string",
                                            "example": "国4",
                                            "description": "排放标准"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "year": "2013",
                                        "power": "77",
                                        "airbag": "",
                                        "engine": "CLR",
                                        "carbody": "两厢",
                                        "carline": "高尔夫",
                                        "cartype": "轿车",
                                        "doornum": "五门",
                                        "fuelnum": "93#",
                                        "seatnum": "5",
                                        "vincode": "lfv2b21k2d3534955",
                                        "fueltype": "汽油",
                                        "gearsnum": "6",
                                        "geartype": "手自一体变速器(AMT)",
                                        "madeyear": "2013",
                                        "salename": "1.6 手自一体 时尚版",
                                        "stopyear": "2014",
                                        "brandname": "大众",
                                        "carweight": "",
                                        "drivemode": "前轮驱动",
                                        "mademonth": "2",
                                        "modelname": "高尔夫6",
                                        "cylindernum": "4",
                                        "displacement": "1.6",
                                        "guidingprice": "13.09",
                                        "manufacturer": "一汽大众",
                                        "vehiclelevel": "紧凑型车",
                                        "assemblyfactory": "",
                                        "effluentstandard": "国4"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}