Skip to main content

IPOK CLI

IP risk

Terminal IP purity / risk / AI-availability check — powered by ipok.io

Check any IP's quality from your VPS or terminal in one line: risk score, residential vs datacenter, native IP, whether it can use ChatGPT / Claude / Gemini, use-case fit for TikTok / e-commerce / social / AI, and more.

一行命令测 IP 纯净度 / 风险值 / 能不能用 AI —— 由 ipok.io 提供数据。

🧩 Prefer a browser? Get the IPOK Chrome extension — one click to check your current IP's purity. · 想用浏览器?装 IPOK Chrome 插件,一键查当前 IP 纯净度。

  IPOK  ip check  ipok.io
  ----------------------------------------------
  IP             1.1.1.1  IPv4
  Location       Australia / South Brisbane
  ASN            AS13335  CLOUDFLARENET
  Type           business   native: broadcast
  Risk           11/100  Pristine
  Signals        hosting
  AI             ChatGPT:OK  Claude:OK  Gemini:OK
  Use-case       tiktok **     ecommerce **     social **     ai *****
  Sources        ip-api=55, Scamalytics=0, proxycheck=0, AbuseIPDB=0, ipapi.is=30, StopForumSpam=0
  ----------------------------------------------
  full report:  https://ipok.io/?ip=1.1.1.1

Install

Pick whichever fits your stack — all give you the same ipok command:

# Node (no install, run once)
npx ipok-cli                 # check this machine's egress IP
npx ipok-cli 1.1.1.1         # check a specific IP

# Python
pip install ipok             # then:  ipok  /  ipok 1.1.1.1
pipx run ipok 1.1.1.1        # zero-install one-off

# Homebrew (macOS / Linux)
brew install szp2005/ipok/ipok

Usage

ipok                 # check this machine's egress IP
ipok 1.1.1.1         # check a specific IP
ipok --json 1.1.1.1  # raw JSON
ipok --help

Set IPOK_API to point at a self-hosted endpoint; set NO_COLOR=1 to disable colors.

No-install one-liner (servers / CI)

Just curl + python3, nothing to install — ideal on a bare VPS:

bash <(curl -sL https://raw.githubusercontent.com/szp2005/ipok-cli/main/ipok.sh)          # this server's IP
bash <(curl -sL https://raw.githubusercontent.com/szp2005/ipok-cli/main/ipok.sh) 1.1.1.1   # a specific IP

Streaming / AI unlock (run on the server)

Test what this server's exit IP can unlock — Netflix (full / originals-only / blocked + region), ChatGPT region support, YouTube Premium, TikTok:

bash <(curl -sL https://raw.githubusercontent.com/szp2005/ipok-cli/main/media.sh)

Results reflect the server's outbound IP (the proxy/VPS use-case). Streaming providers change endpoints often, so treat results as best-effort.

Why

Most IP-purity tools give a single black-box score. IPOK aggregates multiple risk sources and shows why an IP is flagged, plus AI-service availability and use-case fit — the stuff that actually matters for proxies, cross-border, and AI accounts.

Free API (no auth, CORS-enabled)

The CLI just calls IPOK's public API. You can too:

curl "https://ipok.io/api/ip?ip=1.1.1.1"            # full IP report (JSON)
curl "https://ipok.io/api/bgp?asn=AS13335&ip=1.1.1.1"  # BGP upstreams/downstreams (RIPEstat)
curl "https://ipok.io/api/reverse-ip?ip=1.1.1.1"    # domains hosted on the IP

Docs: https://ipok.io/developers

Response shape (/api/ip, excerpt)

{
  "geo":   { "ip", "version", "country", "city", "asn", "asName", "isp", "lat", "lon" },
  "ipType": "residential | hosting | mobile",
  "risk": 0,
  "nativeType": "native | broadcast | unknown",
  "scenarios": [{ "key": "tiktok", "stars": 3, "verdict": "try" }],
  "services":  [{ "key": "chatgpt", "status": "available" }],
  "sources":   [{ "source": "ip-api", "risk": 10, "flags": {} }],
  "rdap":      { "registry", "country", "registered", "org" }
}

License

MIT — see LICENSE. Not affiliated with any provider; data is best-effort and for diagnostics only.

Metadata

Release files for ipok 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ipok 0.1.0
File Size Uploaded
ipok-0.1.0.tar.gz 5.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ipok 0.1.0
File Interpreter ABI Platform
ipok-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 12.6 kB

Release files / ipok-0.1.0.tar.gz

Download URL ipok-0.1.0.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
3a46eac46359c05f3491f4bfdb789fe9e72930e30b38d2cfa4f3c37f2b1e965d
BLAKE2b-256 checksum
How to use checksums
ec7ac72c0b2433fc210426532bbf0c7c66f0d14af649f928d1749131a0c70bd9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / ipok-0.1.0-py3-none-any.whl

Download URL ipok-0.1.0-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a2b7735878127dec6222a50125dfefe0c81e70e96ef8b19c41e66b08264c4102
BLAKE2b-256 checksum
How to use checksums
d510da8456f2cd4e55460676423f0ad9e0ab2d4965d075440e39ff46ef73c9d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page