V2.0开放接口
  1. 号卡/宽带业务
V2.0开放接口
  • 对接前必看
  • 号卡/宽带业务
    • 号卡订单状态码说明
    • 关于下单省市区编码
    • 获取店铺基础配置
      GET
    • 获取在售商品列表
      POST
    • 发送短信验证码
      POST
    • 预选下单号码
      POST
    • 提交申请订单
      POST
    • 订单查询
      POST
    • 获取指定商品详细信息
      POST
    • 上传证件照
      POST
    • 订单回调
      POST
    • IP定位
      GET
  • 靓号业务
    • 获取靓号列表
      POST
  • 物联卡业务
    • 物联卡相关状态码说明
    • 批量查询卡板信息(100张)
      POST
    • 批量订阅卡板信息(100张)
      POST
    • 批量查询卡板最新状态(10张)
      POST
    • 批量查询卡板实时流量(10张)
      POST
    • 批量查询卡板指定月流量(10张)
      POST
    • 批量停机(100张)
      POST
    • 批量复机(100张)
      POST
    • 单卡机卡绑定
      POST
    • 单卡限速
      POST
    • 单卡解除限速
      POST
    • 单卡/设备订购套餐包
      POST
    • 获取官方实名链接
      POST
    • 查询卡板操作记录
      POST
    • 查询账户资产
      POST
    • 获取移动流量池Token
      POST
    • 查询设备信息
      POST
    • 查询设备流量
      POST
    • 设备切换网络
      POST
  1. 号卡/宽带业务

IP定位

GET
/openapi/base/ipLocation
可用于用户选号是智能号码归属地推荐,或收货地区编码默认选择,仅支持国内IP

请求参数

Header 参数
appID
string 
必需
默认值:
1
apiVersion
string 
必需
默认值:
2.0.0
traceID
string 
必需
默认值:
5831f960804c9217ec01e425b8cc76f5
timestamp
string 
必需
默认值:
1703592981
sign
string 
必需
默认值:
65987d12ae39b2c449b495c77c83c8ef
Body 参数application/x-www-form-urlencoded
ip
string 
必需
用户IP,如果不传默认使用访问IP
示例值:
119.91.150.156

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://127.0.0.1:2000/openapi/base/ipLocation' \
--header 'appID;' \
--header 'apiVersion;' \
--header 'traceID;' \
--header 'timestamp;' \
--header 'sign;' \
--data-urlencode 'ip=119.91.150.156'

返回响应

🟢200成功
application/json
Body
code
integer 
必需
message
string 
必需
data
object 
必需
ip
string 
IP地址
必需
country
string 
国家
必需
region
string 
地理位置
必需
province
string 
省份名称
必需
province_code
integer 
省编码(通用编码)
必需
city
string 
城市名称
必需
city_code
integer 
必需
城市编码(通用编码)
area
string 
区县名称
必需
area_code
integer 
区编码(通用编码)
必需
timestamp
integer 
必需
traceID
string 
必需
示例
{
  "code": 0,
  "message": "string",
  "data": {
    "ip": "string",
    "country": "string",
    "region": "string",
    "province": "string",
    "province_code": 0,
    "city": "string",
    "city_code": 0,
    "area": "string",
    "area_code": 0
  },
  "timestamp": 0,
  "traceID": "string"
}
修改于 2024-11-14 15:31:00
上一页
订单回调
下一页
获取靓号列表
Built with