{
    "openapi": "3.0.0",
    "info": {
        "title": "手机归属地 - API文档",
        "version": "1.0.0",
        "description": "根据手机号码前七位，查询手机号码所属地区、运营商（含虚拟）、邮政编码等。"
    },
    "servers": [
        {
            "url": "https:\/\/apis.tianapi.com"
        }
    ],
    "paths": {
        "\/mobilelocal\/index": {
            "get": {
                "summary": "手机归属地查询",
                "tags": [
                    "手机归属地"
                ],
                "description": "指定号码查询详细归属地信息",
                "parameters": [
                    {
                        "name": "key",
                        "in": "query",
                        "description": "API密钥",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "description": "API密钥"
                        }
                    },
                    {
                        "name": "phone",
                        "in": "query",
                        "description": "手机号码",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "example": "1522150",
                            "description": "手机号码"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "areaid": {
                                            "type": "string",
                                            "example": "310000",
                                            "description": "归属地地区ID"
                                        },
                                        "areacode": {
                                            "type": "string",
                                            "example": "021",
                                            "description": "城市区号"
                                        },
                                        "postcode": {
                                            "type": "string",
                                            "example": "200000",
                                            "description": "邮政编码"
                                        },
                                        "proviceid": {
                                            "type": "string",
                                            "example": "310000",
                                            "description": "归属地省份ID"
                                        },
                                        "mobilearea": {
                                            "type": "string",
                                            "example": "上海",
                                            "description": "归属地地区"
                                        },
                                        "mobiletype": {
                                            "type": "string",
                                            "example": "中国移动",
                                            "description": "运营商类别"
                                        },
                                        "mobileprovice": {
                                            "type": "string",
                                            "example": "上海",
                                            "description": "归属地省份"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "areaid": "310000",
                                        "areacode": "021",
                                        "postcode": "200000",
                                        "proviceid": "310000",
                                        "mobilearea": "上海",
                                        "mobiletype": "中国移动",
                                        "mobileprovice": "上海"
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "手机归属地查询",
                "tags": [
                    "手机归属地"
                ],
                "description": "指定号码查询详细归属地信息",
                "requestBody": {
                    "content": {
                        "application\/x-www-form-urlencoded": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "key": {
                                        "type": "string",
                                        "description": "API密钥"
                                    },
                                    "phone": {
                                        "type": "string",
                                        "example": "1522150",
                                        "description": "手机号码"
                                    }
                                },
                                "required": [
                                    "key",
                                    "phone"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "areaid": {
                                            "type": "string",
                                            "example": "310000",
                                            "description": "归属地地区ID"
                                        },
                                        "areacode": {
                                            "type": "string",
                                            "example": "021",
                                            "description": "城市区号"
                                        },
                                        "postcode": {
                                            "type": "string",
                                            "example": "200000",
                                            "description": "邮政编码"
                                        },
                                        "proviceid": {
                                            "type": "string",
                                            "example": "310000",
                                            "description": "归属地省份ID"
                                        },
                                        "mobilearea": {
                                            "type": "string",
                                            "example": "上海",
                                            "description": "归属地地区"
                                        },
                                        "mobiletype": {
                                            "type": "string",
                                            "example": "中国移动",
                                            "description": "运营商类别"
                                        },
                                        "mobileprovice": {
                                            "type": "string",
                                            "example": "上海",
                                            "description": "归属地省份"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "areaid": "310000",
                                        "areacode": "021",
                                        "postcode": "200000",
                                        "proviceid": "310000",
                                        "mobilearea": "上海",
                                        "mobiletype": "中国移动",
                                        "mobileprovice": "上海"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}