← Back to Skills Marketplace
tiagom101

IPinfo

by Tiago Martins · GitHub ↗ · v1.0.0
cross-platform ✓ Security Clean
2190
Downloads
2
Stars
9
Active Installs
1
Versions
Install in OpenClaw
/install ipinfo
Description
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.
README (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
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install ipinfo
  3. After installation, invoke the skill by name or use /ipinfo
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug ipinfo
Version 1.0.0
License
All-time Installs 9
Active Installs 9
Total Versions 1
Frequently Asked Questions

What is 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. It is an AI Agent Skill for Claude Code / OpenClaw, with 2190 downloads so far.

How do I install IPinfo?

Run "/install ipinfo" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is IPinfo free?

Yes, IPinfo is completely free (open-source). You can download, install and use it at no cost.

Which platforms does IPinfo support?

IPinfo is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created IPinfo?

It is built and maintained by Tiago Martins (@tiagom101); the current version is v1.0.0.

💬 Comments