{
    "openapi": "3.0.0",
    "info": {
        "title": "车牌归属地 - API文档",
        "version": "1.0.0",
        "description": "查询全国各地车牌号码归属地，返回所属城市、省份和行政区ID信息。"
    },
    "servers": [
        {
            "url": "https:\/\/apis.tianapi.com"
        }
    ],
    "paths": {
        "\/chepai\/index": {
            "get": {
                "summary": "车牌归属地",
                "tags": [
                    "车牌归属地"
                ],
                "description": "根据车牌代码查询对应归属地",
                "parameters": [
                    {
                        "name": "key",
                        "in": "query",
                        "description": "API密钥",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "description": "API密钥"
                        }
                    },
                    {
                        "name": "word",
                        "in": "query",
                        "description": "车牌代码、城市、省份",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "example": "鄂A",
                            "description": "车牌代码、城市、省份"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "city": {
                                            "type": "string",
                                            "example": "武汉",
                                            "description": "所属城市"
                                        },
                                        "code": {
                                            "type": "string",
                                            "example": "鄂A",
                                            "description": "车牌代码"
                                        },
                                        "citycode": {
                                            "type": "string",
                                            "example": "420100",
                                            "description": "城市行政代码"
                                        },
                                        "province": {
                                            "type": "string",
                                            "example": "湖北",
                                            "description": "所属省份"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "city": "武汉",
                                        "code": "鄂A",
                                        "citycode": "420100",
                                        "province": "湖北"
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "车牌归属地",
                "tags": [
                    "车牌归属地"
                ],
                "description": "根据车牌代码查询对应归属地",
                "requestBody": {
                    "content": {
                        "application\/x-www-form-urlencoded": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "key": {
                                        "type": "string",
                                        "description": "API密钥"
                                    },
                                    "word": {
                                        "type": "string",
                                        "example": "鄂A",
                                        "description": "车牌代码、城市、省份"
                                    }
                                },
                                "required": [
                                    "key",
                                    "word"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "city": {
                                            "type": "string",
                                            "example": "武汉",
                                            "description": "所属城市"
                                        },
                                        "code": {
                                            "type": "string",
                                            "example": "鄂A",
                                            "description": "车牌代码"
                                        },
                                        "citycode": {
                                            "type": "string",
                                            "example": "420100",
                                            "description": "城市行政代码"
                                        },
                                        "province": {
                                            "type": "string",
                                            "example": "湖北",
                                            "description": "所属省份"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "city": "武汉",
                                        "code": "鄂A",
                                        "citycode": "420100",
                                        "province": "湖北"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}