跳到正文
TakoAPI
返回技能列表

ipinfo

由 tiagom101 提供

Data & Analytics
1.8k下载量由 clawskills.sh 提供
2星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Perform IP geolocation lookups using ipinfo.io API.

描述

该技能的功能

Looks up geographic data for any IP address using the ipinfo.io API. Returns city, region, country, postal code, timezone, coordinates, and ASN/org info. Works without an API key for up to 50,000 requests per month.

Requires no signup or API key for basic use, unlike most geolocation APIs that gate access behind registration.

何时使用

  • Geolocating IPs from web server access logs
  • Enriching a CSV of IP addresses with country and city fields
  • Detecting a visitor's timezone from their IP address
  • Filtering log entries to requests from a specific country
  • Calculating geographic distance between two IPs using coordinates

示例工作流

输入

User asks: What city, country, and timezone is 8.8.8.8 located in?

智能体
  1. 1

    Call https://ipinfo.io/8.8.8.8 via curl

  2. 2

    Parse the JSON response

  3. 3

    Extract city, country, and timezone fields

  4. 4

    Return the formatted result

输出

8.8.8.8 is in Mountain View, US (timezone: America/Los_Angeles)

前置要求

  • IPINFO_TOKEN environment variable (optional, required only for rate limits beyond the 50k/month free tier — obtain from ipinfo.io)

安装

clawhub install tiagom101/ipinfo

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接