{"openapi":"3.0.0","info":{"title":"ALAPI接口平台","description":"ALAPI接口平台，官方地址：www.alapi.cn,免费提供数百款接口供开发者使用","version":"3.0.0","contact":{"name":"ALAPI","url":"https:\/\/www.alapi.cn"}},"servers":[{"url":"https:\/\/v3.alapi.cn","description":"ALAPI 接口域名地址"}],"paths":{"\/api\/ip":{"post":{"summary":"IP地址查询","description":"高精度IP归属地查询，支持IPV4和IPV6,数据每月更新","parameters":[],"responses":{"200":{"description":"成功响应","content":{"application\/json":{"schema":{"allOf":[{"$ref":"#\/components\/schemas\/BaseResponse"},{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/Response_48"}}}]},"example":{"request_id":"722950494561095681","success":true,"message":"success","code":200,"data":{"ip":"114.114.114.114","beginip":"114.114.114.114","endip":"114.114.114.114","continent":"亚洲","country":"中国","province":"江苏","city":"南京","district":"","isp":"114DNS","adcode":"320100","country_en":"China","country_cc":"CN","lng":"118.7674","lat":"32.0415","pos":"中国江苏南京"},"time":1733324829,"usage":0}}}},"400":{"description":"请求失败","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponse"}}}}},"security":[{"apiKey":[]}],"externalDocs":{"url":"https:\/\/www.alapi.cn\/api\/23\/api_document","description":"IP地址查询官方接口文档"},"requestBody":{"description":"JSON 格式的请求参数","required":false,"content":{"application\/json":{"schema":{"type":"object","properties":{"ip":{"type":"string","description":"要查询的IP，默认获取请求客户端的IP"}}}}}}}}},"components":{"schemas":{"BaseResponse":{"type":"object","properties":{"code":{"type":"integer","default":200},"request_id":{"type":"string"},"message":{"type":"string","default":"success"},"time":{"type":"integer"},"usage":{"type":"integer"}}},"ErrorResponse":{"type":"object","properties":{"code":{"type":"integer","default":400},"request_id":{"type":"string"},"message":{"type":"string","default":"error"},"data":{"type":"string","default":""},"time":{"type":"integer"},"usage":{"type":"integer"}}},"Response_48":{"type":"object","properties":{"ip":{"type":"string","description":""},"beginip":{"type":"string","description":"开始IP"},"continent":{"type":"string","description":"州"},"country":{"type":"string","description":"国家"},"province":{"type":"string","description":"省份"},"city":{"type":"string","description":"城市"},"district":{"type":"string","description":"区"},"isp":{"type":"string","description":"IP运营商"},"adcode":{"type":"string","description":"城市编码"},"lng":{"type":"string","description":"经度"},"lat":{"type":"string","description":"纬度"},"pos":{"type":"string","description":"详细地址"}}}},"securitySchemes":{"apiKey":{"type":"apiKey","name":"token","in":"header","description":"API 认证令牌"}}},"security":[{"apiKey":[]}]}