Public API
Public, key-free JSON APIs: IP info (self or any IP), streaming unlock, port probe and an embeddable visitor badge.
Public API
Key-free JSON APIs for this site's checks: IP info (self or any IP), streaming unlock, port probe and an embeddable visitor badge.
1. IP info (any public IP)
GET https://netkit.tools/api/ip-info # your own IP GET https://netkit.tools/api/ip-info?ip=8.8.8.8 # any IP GET https://netkit.tools/api/ip-info?domain=example.com
Returns IP, country/city, ISP, ASN, datacenter/proxy/mobile flags, coordinates, risk and purity score (0-100). Data from ip-api.com.
2. Visitor badge (embeddable)
<img src="https://netkit.tools/api/badge.svg" alt="my ip">
An SVG card showing the visitor's IP, location and purity — handy in blog sidebars or project READMEs.
3. Streaming / AI unlock test
GET https://netkit.tools/api/unlock
Unlock status for ChatGPT, Netflix, YouTube Premium, Claude, Disney+ and TikTok, measured by this server's egress IP (cached 6 hours).
4. Port scanner
GET https://netkit.tools/api/ports?host=example.com&ports=80,443,22
Empty host defaults to the visitor's own egress IP; ports are comma separated, max 12. Public targets only — internal addresses are rejected.
5. Visit counter
POST https://netkit.tools/api/visit
Records one anonymous visit (salted-hash IP dedup) and returns today's PV/UV plus total UV. Pages call it automatically; you normally don't need it.
Fair use
Rate limits: IP lookups 20/min, port checks 6/min per IP (429 when exceeded). Don't bulk-scrape or mass-scan third parties. For commercial or high-volume use, contact us first.
How to use
Rate limits: IP lookups 20/min, port checks 6/min per IP. Data sources include ip-api.com — use responsibly.