本地IP查询

GET
https://api.mymzf.com/api/bdip

接口描述

获取访问者本地网络IP地址

请求参数

请求示例

var axios = require('axios')

var config = {
  method: 'get',
  url: 'https://api.mymzf.com/api/bdip?code=js'
}

axios(config)
  .then(function (response) {
    console.log(JSON.stringify(response.data))
  })
  .catch(function (error) {
    console.log(error)
  })

返回示例

{
  "code": 200,
  "msg": "获取成功",
  "data": {
    "ip": "2408:823c:c611:8824:d432:c3e5:eb36:fd57",
    "timestamp": 1760779178,
    "datetime": "2025-10-18 17:19:38"
  }
}