POSTip-query-v3
IP歸屬地查詢(精準版)
提供全球IP地址的精準歸屬地查詢服務,包含國家、省份、城市、電信業者等詳細資訊,協助資料分析與業務決策。
接入文件
功能介紹
本API提供全球IP地址的精準歸屬地查詢服務。透過輸入任意IP地址,您可以快速取得其詳細的地理位置資訊,包括國家、省份、城市、區縣、ISP電信業者、經緯度等。資料來源權威,即時更新,確保查詢結果的高準確性與時效性。此「精準版」特別優化了資料匹配演算法與多維資料源融合,旨在提供業界領先的歸屬地識別能力,尤其適用於對地理位置精度要求極高的業務場景。
應用場景
- 用戶畫像分析: 識別用戶地域分佈,優化產品營運策略。
- 風控反欺詐: 透過IP歸屬地判斷交易或登入請求的異常性,防範欺詐行為。
- 內容分發與推薦: 根據用戶IP所在地區推薦在地化內容或服務。
- 日誌分析與安全審計: 追蹤攻擊源IP,進行安全防護與威脅情報分析。
- 廣告精準投放: 針對特定地域的用戶進行廣告投放,提高轉換率。
接入示例程式碼
提供 Shell、Python、Go、Java、PHP 等常見接入示例,便於直接接到現有專案裡。
請求示例
{}響應示例
{
"code": 200,
"data": {
"isp": {
"type": "string",
"example": "中国移动",
"description": "运营商"
},
"city": {
"type": "string",
"example": "杭州市",
"description": "市"
},
"code": {
"type": "string",
"example": "330110",
"description": "行政区划代码"
},
"owner": {
"type": "string",
"example": "中国移动",
"description": "所属机构"
},
"nation": {
"type": "string",
"example": "中国",
"description": "国家"
},
"radius": {
"type": "string",
"example": "",
"description": "定位半径"
},
"zipcode": {
"type": "string",
"example": "462000",
"description": "邮编"
},
"areaCode": {
"type": "string",
"example": "CN",
"description": "国家编码"
},
"province": {
"type": "string",
"example": "浙江省",
"description": "省份"
},
"timezone": {
"type": "string",
"example": "UTC+8",
"description": "时区"
},
"continent": {
"type": "string",
"example": "亚洲",
"description": "大洲"
}
},
"message": "success"
}響應欄位
以下欄位根據示例 JSON 自動提取,僅作接入參考。
| 欄位路徑 | 型別 | 示例值 |
|---|---|---|
| code | number | 200 |
| data | object | {...} |
| data.isp | object | {...} |
| data.isp.type | string | string |
| data.isp.example | string | 中国移动 |
| data.isp.description | string | 运营商 |
| data.city | object | {...} |
| data.city.type |