JSON IP Response

Get your IP address and connection information in JSON format. This page demonstrates the JSON response format from our API.

Example Response

Loading...

Why use JSON output?

JSON is easy for scripts and tools to parse, so you can fetch your IP without scraping HTML.

The response format stays consistent over time, which helps integrations, monitoring, and logging.

Typical use cases

  • Health checks in CI/CD or uptime monitoring
  • Validating VPN or proxy routing in scripts
  • Capturing IP context in server logs or diagnostics
  • Quick testing during API development

Response Fields

  • ip: Your public IP address
  • ipVersion: Either 4 or 6, indicating IPv4 or IPv6
  • userAgent: Your browser's user agent string
  • acceptLanguage: Your preferred languages
  • cf.country: Country code from Cloudflare (if available)
  • cf.colo: Cloudflare data center code
  • cf.asn: Autonomous System Number
  • cf.asOrganization: Organization name for the ASN