{
    "openapi": "3.0.0",
    "info": {
        "title": "手机在网状态 - API文档",
        "version": "1.0.0",
        "description": "输入检测手机号在中国移动、联通、电信运营商的在网状态，返回正常、停机、在网但不可用、不在网（销号\/未启用\/异常）、预销户等多种状态信息。"
    },
    "servers": [
        {
            "url": "https:\/\/apis.tianapi.com"
        }
    ],
    "paths": {
        "\/mobilestatus\/index": {
            "get": {
                "summary": "检测在网状态",
                "tags": [
                    "手机在网状态"
                ],
                "description": "查询手机号码三大运营商在网状态",
                "parameters": [
                    {
                        "name": "key",
                        "in": "query",
                        "description": "API密钥",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "description": "API密钥"
                        }
                    },
                    {
                        "name": "mobile",
                        "in": "query",
                        "description": "境内手机号码",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "example": "17811883333",
                            "description": "境内手机号码"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "isp": {
                                            "type": "string",
                                            "example": "中国移动",
                                            "description": "号码运营商"
                                        },
                                        "desc": {
                                            "type": "string",
                                            "example": "在网",
                                            "description": "状态描述"
                                        },
                                        "status": {
                                            "type": "int",
                                            "example": 1,
                                            "description": "号码状态：0正常在网、1不在网\/转网\/销户"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "isp": "中国移动",
                                        "desc": "在网",
                                        "status": 0
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "检测在网状态",
                "tags": [
                    "手机在网状态"
                ],
                "description": "查询手机号码三大运营商在网状态",
                "requestBody": {
                    "content": {
                        "application\/x-www-form-urlencoded": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "key": {
                                        "type": "string",
                                        "description": "API密钥"
                                    },
                                    "mobile": {
                                        "type": "string",
                                        "example": "17811883333",
                                        "description": "境内手机号码"
                                    }
                                },
                                "required": [
                                    "key",
                                    "mobile"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "isp": {
                                            "type": "string",
                                            "example": "中国移动",
                                            "description": "号码运营商"
                                        },
                                        "desc": {
                                            "type": "string",
                                            "example": "在网",
                                            "description": "状态描述"
                                        },
                                        "status": {
                                            "type": "int",
                                            "example": 1,
                                            "description": "号码状态：0正常在网、1不在网\/转网\/销户"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "isp": "中国移动",
                                        "desc": "在网",
                                        "status": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}