Skip to main content

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

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ipok-0.1.0.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ipok-0.1.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file ipok-0.1.0.tar.gz.

File metadata

  • Download URL: ipok-0.1.0.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ipok-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3a46eac46359c05f3491f4bfdb789fe9e72930e30b38d2cfa4f3c37f2b1e965d
MD5 fc1cb7e1ea86553b44ebce2f6748009e
BLAKE2b-256 ec7ac72c0b2433fc210426532bbf0c7c66f0d14af649f928d1749131a0c70bd9

See more details on using hashes here.

File details

Details for the file ipok-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ipok-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ipok-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a2b7735878127dec6222a50125dfefe0c81e70e96ef8b19c41e66b08264c4102
MD5 7d800f72536ab396974e24e3dfe45ab4
BLAKE2b-256 d510da8456f2cd4e55460676423f0ad9e0ab2d4965d075440e39ff46ef73c9d4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page