IP Lookup API & CLI
All lookup work happens on the server; curl simply fetches the result. The endpoint returns standard JSON that works with jq or any script, making it suitable for automation, cron jobs and log pipelines. Web page fields map one-to-one to API fields.
Quick start
curl -s "https://ipguide.cn/api/ip-info?ip=8.8.8.8"curl -s "https://ipguide.cn/api/ip-info?ip=8.8.8.8" | jq '.assessment'curl -s "https://ipguide.cn/api/ip-info"curl -s "https://ipguide.cn/api/ip-info?ip=1.1.1.1" -o report.jsonResponse fields
Notes & FAQ
- Does the API need a key?
No. The examples use the public endpoint directly. For high-frequency batch jobs, please throttle your own requests.
- Are results cached?
Results for the same IP are cached briefly (about 30 minutes) to avoid repeated upstream calls. The cached field in the response indicates a cache hit.
- Will the fields change?
Fields may be added as capabilities grow. Read only the fields you need and do not assume the set is fixed.
- CLI and web results differ?
They can differ when fetched at different times, because reputation and ownership change. Trust the specific result you received and re-run to verify.