← 返回 Skills 市场
tiagom101

IPinfo

作者 Tiago Martins · GitHub ↗ · v1.0.0
cross-platform ✓ 安全检测通过
2190
总下载
2
收藏
9
当前安装
1
版本数
在 OpenClaw 中安装
/install ipinfo
功能描述
Perform IP geolocation lookups using ipinfo.io API. Convert IP addresses to geographic data including city, region, country, postal code, timezone, and coordinates. Use when geolocating IPs, enriching IP data, or analyzing geographic distribution.
使用说明 (SKILL.md)

IPinfo Geolocation

Free IP geolocation API. No API key required for basic usage (50k requests/month), optional token for higher limits.

Configuration

The IPINFO_TOKEN environment variable is optional - the skill works without it using the free tier. Configure it via the OpenClaw dashboard UI for higher rate limits, or set it manually:

  • Dashboard UI: Configure IPINFO_TOKEN in the OpenClaw dashboard (optional)
  • Environment variable: export IPINFO_TOKEN="your-token"
  • Query parameter: ?token=YOUR_TOKEN (for one-off requests)

Quick Lookup

Single IP:

curl -s "https://ipinfo.io/8.8.8.8"

Current IP:

curl -s "https://ipinfo.io/json"

With token (optional, from environment):

curl -s "https://ipinfo.io/8.8.8.8?token=${IPINFO_TOKEN}"

Or pass token directly:

curl -s "https://ipinfo.io/8.8.8.8?token=YOUR_TOKEN"

Response Format

JSON response includes:

  • ip: IP address
  • hostname: Reverse DNS hostname
  • city: City name
  • region: State/region
  • country: Two-letter country code (ISO 3166-1 alpha-2)
  • postal: Postal/ZIP code
  • timezone: IANA timezone
  • loc: Coordinates as "latitude,longitude"
  • org: Organization/ASN information

Extract Specific Fields

Using jq:

curl -s "https://ipinfo.io/8.8.8.8" | jq -r '.city, .country, .loc'

Country only:

curl -s "https://ipinfo.io/8.8.8.8" | jq -r '.country'

Parse coordinates:

curl -s "https://ipinfo.io/8.8.8.8" | jq -r '.loc' | tr ',' '\
'

Batch Processing

Process multiple IPs:

for ip in 8.8.8.8 1.1.1.1 208.67.222.222; do
  if [ -n "$IPINFO_TOKEN" ]; then
    echo "$ip: $(curl -s "https://ipinfo.io/$ip?token=$IPINFO_TOKEN" | jq -r '.city, .country' | tr '\
' ', ')"
  else
    echo "$ip: $(curl -s "https://ipinfo.io/$ip" | jq -r '.city, .country' | tr '\
' ', ')"
  fi
done

Python Usage

import os
import requests

# Without token (free tier)
response = requests.get("https://ipinfo.io/8.8.8.8")
data = response.json()
print(f"{data['city']}, {data['country']}")
print(f"Coordinates: {data['loc']}")

With token from environment:

import os
import requests

token = os.getenv("IPINFO_TOKEN")
if token:
    response = requests.get("https://ipinfo.io/8.8.8.8", params={"token": token})
else:
    response = requests.get("https://ipinfo.io/8.8.8.8")
data = response.json()

Or pass token directly:

response = requests.get("https://ipinfo.io/8.8.8.8", params={"token": "YOUR_TOKEN"})

Rate Limits

  • Free tier: 50,000 requests/month, ~1 req/sec
  • With token: Higher limits based on plan
  • Configure IPINFO_TOKEN via OpenClaw dashboard UI or environment variable

Common Use Cases

  • Geolocate IP addresses
  • Enrich IP lists with location data
  • Filter IPs by country
  • Calculate distances between IPs using coordinates
  • Timezone detection for IPs
安全使用建议
This skill is coherent for IP geolocation using ipinfo.io. Before installing: (1) understand that queries send IP addresses to a third‑party service (ipinfo.io) — avoid sending any IPs you consider sensitive or private; (2) if you plan to use the example pipelines, ensure jq is available on the agent host (examples assume jq and tr); (3) storing an IPINFO_TOKEN grants higher rate limits — keep that token secret and only set it if you trust ipinfo.io and want more throughput; (4) note the SKILL.md treats the token as optional but metadata lists it as the primary credential — this is likely harmless but verify whether your platform will require the token to be set. Overall the skill appears to do what it says.
功能分析
Type: OpenClaw Skill Name: ipinfo Version: 1.0.0 The skill is classified as benign. Its functionality is clearly aligned with its stated purpose of performing IP geolocation lookups using the ipinfo.io API. All network requests are directed to `https://ipinfo.io`, and the handling of the `IPINFO_TOKEN` environment variable in `SKILL.md` is for authentication with the intended service, not for exfiltration. There is no evidence of malicious execution, data exfiltration to unauthorized endpoints, persistence mechanisms, or prompt injection attempts against the agent to perform actions outside its stated scope.
能力评估
Purpose & Capability
Name/description, required binary (curl), and the optional IPINFO_TOKEN credential align with performing IP geolocation via ipinfo.io. The skill does not request unrelated services or credentials.
Instruction Scope
SKILL.md stays within scope (curl/requests against api.ipinfo.io and use of IPINFO_TOKEN). Minor inconsistencies: examples use jq (and Python's requests) but jq is not listed as a required binary and Python/requests are not advertised; otherwise instructions do not read local files or other environment variables.
Install Mechanism
No install spec (instruction-only). Nothing is written to disk or downloaded by the skill itself.
Credentials
The single credential IPINFO_TOKEN is appropriate for the API. SKILL.md describes the token as optional, while metadata declares it as the primary credential — this is a minor mismatch but not a security concern. No other secrets or unrelated env vars are requested.
Persistence & Privilege
always:false and normal model invocation are set (default). The skill does not request persistent/privileged platform presence.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install ipinfo
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /ipinfo 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the ipinfo skill for IP geolocation lookups using the ipinfo.io API. - Supports converting IP addresses to geographic data: city, region, country, postal code, timezone, coordinates, and more. - No API key required for up to 50,000 requests/month; optional IPINFO_TOKEN for higher rate limits. - Includes instructions for single and batch IP lookups, extracting fields with jq, and Python usage examples. - Outlines free and token-authenticated usage, configuration methods, and common use cases.
元数据
Slug ipinfo
版本 1.0.0
许可证
累计安装 9
当前安装数 9
历史版本数 1
常见问题

IPinfo 是什么?

Perform IP geolocation lookups using ipinfo.io API. Convert IP addresses to geographic data including city, region, country, postal code, timezone, and coordinates. Use when geolocating IPs, enriching IP data, or analyzing geographic distribution. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 2190 次。

如何安装 IPinfo?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install ipinfo」即可一键安装,无需额外配置。

IPinfo 是免费的吗?

是的,IPinfo 完全免费(开源免费),可自由下载、安装和使用。

IPinfo 支持哪些平台?

IPinfo 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 IPinfo?

由 Tiago Martins(@tiagom101)开发并维护,当前版本 v1.0.0。

💬 留言讨论