IP归属查询
v1.0.1聚合数据IP归属地查询V3.0,支持IPv4查询国家/省份/城市/运营商
Security Scan
OpenClaw
Benign
high confidencePurpose & Capability
Name/description (IP归属查询) align with required items: python3 runtime and a Juhe API key. The single code file implements exactly an HTTP call to the Juhe IP lookup endpoint and returns the result.
Instruction Scope
SKILL.md instructs installing requests, setting JUHE_API_KEY, and running the script — which matches the code. The script makes an outbound request only to apis.juhe.cn. One security note: the code uses an http:// URL (not HTTPS) and sends the API key as a query parameter, which can expose the key in transit or in server logs; consider switching to HTTPS or using a POST with the key in the body if supported.
Install Mechanism
No install spec (instruction-only) and only an external Python dependency (requests) is suggested in SKILL.md. There are no downloaded/executed archives or third-party installers.
Credentials
The only required environment variable is JUHE_API_KEY (declared as primary), which the skill needs to call the Juhe API. No unrelated credentials, config paths, or secrets are requested.
Persistence & Privilege
always is false and the skill does not request persistent system-wide changes or modify other skills' configs. It only performs normal outbound API calls when invoked.
Assessment
This skill appears coherent and limited to Juhe IP lookups. Before installing: (1) only provide a Juhe API key with appropriate scope — do not reuse high-privilege keys; (2) be aware the current code calls the API over HTTP and passes the key in the URL (risk of interception and logging); prefer switching the API_URL to https://apis.juhe.cn/ip/ipNewV3 if supported; (3) ensure the requests library is installed in a controlled environment; (4) if you allow autonomous agent invocation, know the agent can make outbound calls to the Juhe API using your key — restrict that capability if you want tighter control.Like a lobster shell, security has layers — review code before you run it.
Runtime requirements
🌍 Clawdis
Binspython3
EnvJUHE_API_KEY
Primary envJUHE_API_KEY
latest
IP 归属地查询(OpenClaw 技能)
基于聚合数据官方 IP 查询 V3.0 接口,支持 IPv4 地址快速查询归属地信息。
功能说明
- 查询 IPv4 地址的国家、省份、城市、运营商信息
- 数据格式标准化,可直接被 OpenClaw 解析使用
环境变量配置
在运行前必须配置 API 密钥:
Windows(PowerShell)
$env:JUHE_API_KEY="你的聚合数据API Key"
Linux / macOS
export JUHE_API_KEY="你的聚合数据API Key"
使用说明
- 确保已安装依赖:pip install requests
- 配置好环境变量 JUHE_API_KEY
- 在终端中直接运行查询命令
调用命令
python3 skills/ip/ip.py 114.114.114.114
返回示例
{ "error_code": 0, "reason": "success", "result": { "ip": "114.114.114.114", "country": "中国", "province": "北京", "city": "北京", "sp": "联通" } }
错误说明
- JUHE_API_KEY not set:未配置环境变量
- invalid json:参数格式错误
- request failed:网络请求异常
Comments
Loading comments...
