← 返回
开发者工具 Key 中文

Get IP Geo Location

Look up geographic location and network information for any IPv4 or IPv6 address using the apipick IP Geolocation API. Returns country, continent, city, lati...
使用 apipick IP Geolocation API 查询任意 IPv4 或 IPv6 地址的地理位置和网络信息,返回国家、大陆、城市、经纬度等。
javainthinking javainthinking 来源
开发者工具 clawhub v1.0.0 1 版本 99892.2 Key: 需要
★ 0
Stars
📥 927
下载
💾 16
安装
1
版本
#latest

概述

apipick IP Geolocation

Look up location and network information for any public IPv4 or IPv6 address.

Endpoint

GET https://www.apipick.com/api/ip-geolocation

Authentication: x-api-key: YOUR_API_KEY header required.

Get a free API key at https://www.apipick.com/dashboard/api-keys

Request

# Look up a specific IP
GET /api/ip-geolocation?ip=8.8.8.8

# Look up caller's own IP (omit parameter)
GET /api/ip-geolocation

Response

{
  "success": true,
  "code": 200,
  "message": "ok",
  "data": {
    "ip": "8.8.8.8",
    "country_code": "US",
    "country_name": "United States",
    "continent": "North America",
    "continent_code": "NA",
    "city": "Mountain View",
    "latitude": 37.4056,
    "longitude": -122.0775,
    "timezone": "America/Los_Angeles",
    "currency": "USD",
    "isp": "Google LLC",
    "asn": 15169
  },
  "credits_used": 1,
  "remaining_credits": 99
}

city, latitude, longitude may be empty or null for some IPs.

Error Codes

CodeMeaning
---------------
400Invalid or private/reserved IP address
401Missing or invalid API key
402Insufficient credits
404No geolocation data available for this IP
503Geolocation database temporarily unavailable

Cost: 1 credit per request

Usage Pattern

  1. Use $APIPICK_API_KEY env var as the x-api-key header value; if not set, ask the user for their apipick API key
  2. Make the GET request (with or without ip query parameter)
  3. Present location data in a readable format

See references/api_reference.md for full response field descriptions.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 12:26 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

it-ops-security

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 90 📥 30,718
it-ops-security

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,809
it-ops-security

1password

steipete
设置和使用 1Password CLI (op)。适用于:安装 CLI、启用桌面应用集成、登录(单/多账户)、通过 op 读取/注入/运行密钥。
★ 53 📥 31,388