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.

Base URLhttps://ipinfobox.com/api/v1

ค้นหา 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

อยู่ในรายชื่อ exit node ของ Tor Project หรือไม่

hosting, hosting_provider

อยู่ในช่วง IP คลาวด์อย่างเป็นทางการหรือเครือข่ายบริษัทโฮสติ้งหรือไม่ และชื่อบริษัท

cloud_region

รีเจียน เมื่ออยู่ในช่วง IP คลาวด์ (เช่น us-east-1)

รายชื่ออัปเดตทุกวัน VPN ที่ไม่อยู่ในรายชื่อและ residential proxy จะได้ค่า 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}  (null สำหรับแพ็กเกจที่ไม่จำกัดรายวัน)

ข้อผิดพลาด

400 invalid_ip

ไม่ใช่ที่อยู่ IP ที่ถูกต้อง

401 invalid_api_key

ไม่มีคีย์หรือคีย์ไม่ถูกต้อง

402 no_subscription

แพ็กเกจของคุณสิ้นสุดแล้ว ชำระเงินอีกครั้งแล้วใช้งานต่อได้ทันที

429 rate_limited / daily_limit

คำขอมากเกินไป หรือใช้โควตาของวันนี้หมดแล้ว