PUBLIC API · NO KEY · SAME DATA AS THE WEB PAGE

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

Look up a specific IP, full JSON
curl -s "https://ipguide.cn/api/ip-info?ip=8.8.8.8"
Extract only the purity score block
curl -s "https://ipguide.cn/api/ip-info?ip=8.8.8.8" | jq '.assessment'
Look up your own public IP (no ip parameter)
curl -s "https://ipguide.cn/api/ip-info"
Save to a JSON file
curl -s "https://ipguide.cn/api/ip-info?ip=1.1.1.1" -o report.json

Response fields

okWhether the request succeeded
clientIpThe IP address queried
baseCountry, region, city, ISP and country code
assessment.scoreOur purity score (0-100, higher is cleaner)
assessment.levelGrade: excellent / good / poor / bad
assessment.reasonsItemized deductions and bonuses
scenariosSuitability notes for common scenarios
sourcesStatus of each data source (no vendor domains)
checkedAtTime of this lookup (UTC)

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.

IP Lookup API & CLI | IP Guide