IPinfoBox

APIドキュメント

Look up IPs with the API key of an account that has an active plan. Put the key in the X-API-Key header or add ?key= to the address. Plans have no daily lookup limit. Every plan allows up to 20 lookups a second.

ベースURLhttps://ipinfobox.com/api/v1

1つのIPを検索

curl -H "X-API-Key: YOUR_KEY" https://ipinfobox.com/api/v1/8.8.8.8

{
  "ip": "8.8.8.8", "version": 4, "type": "public",
  "country": { "code": "US", "name": "United States", "name_en": "United States" },
  "region": "California", "city": "Mountain View", "continent": "NA",
  "location": { "lat": 37.422, "lon": -122.085 },
  "asn": { "number": 15169, "org": "Google LLC" },
  "privacy": { "vpn": false, "vpn_provider": null, "tor": false,
               "hosting": true, "hosting_provider": "Google", "cloud_region": null }
}

IPv6も同じように使えます。プライベートIPと特殊用途IPでは、typeがprivateまたはreservedになり、位置の値はnullになります。

訪問者チェック(privacy)

vpn, vpn_provider

アドレスが公開VPNサーバーリストに載っているかどうかと、事業者名(不明な場合はnull)

tor

Tor Projectの出口ノードリストに載っているかどうか

hosting, hosting_provider

公式のクラウドIP範囲またはホスティング事業者のネットワークに含まれるかどうかと、その企業名

cloud_region

クラウドの範囲に含まれる場合のリージョン(例: us-east-1)

リストは毎日更新されます。リストにないVPNやレジデンシャルプロキシはfalseとして返ります。プライベートIPと特殊用途IPでは、privacyはnullです。 チェックのしくみ

訪問者IPでの使い方

// Node.js (Express): ask for extra verification when a sign-up comes from a VPN, Tor or a data center
app.post("/signup", async (req, res) => {
  const ip = req.headers["cf-connecting-ip"] ?? req.ip; // behind Cloudflare: CF-Connecting-IP
  const r = await fetch(`https://ipinfobox.com/api/v1/${ip}`, { headers: { "X-API-Key": process.env.IPINFOBOX_KEY } });
  const info = await r.json();
  if (info.privacy && (info.privacy.vpn || info.privacy.tor || info.privacy.hosting)) {
    return res.status(403).json({ error: "extra verification required" });
  }
  // continue sign-up
});
# Python
import requests
info = requests.get(f"https://ipinfobox.com/api/v1/{ip}", headers={"X-API-Key": KEY}, timeout=3).json()
risky = bool(info.get("privacy")) and (info["privacy"]["vpn"] or info["privacy"]["tor"] or info["privacy"]["hosting"])

自分のIPを検索

GET /api/v1/me        リクエストを送信したアドレスのIPと詳細

残りの利用量

GET /api/v1/usage     {"plan_ends_at":"2026-11-11T...","used_today":12,"daily_limit":5000}  (1日の上限がないプランではnull)

エラー

400 invalid_ip

有効なIPアドレスではありません。

401 invalid_api_key

キーがないか、誤っています。

402 no_subscription

プランが終了しています。再度お支払いいただくとすぐに利用できます。

429 rate_limited / daily_limit

リクエストが多すぎるか、本日の利用量を使い切りました。