network_my_ip
Detect your public IP address and enrich it with geolocation, proxy/VPN status, and ASN details via ip-api.com.
Instructions
My Public IP Address and Geolocation. Detect the caller public IP address and enrich it with geolocation, proxy/VPN, and ASN details via an outbound lookup to ip-api.com. The result is live and varies by who calls it, since the IP is read from the incoming request headers (X-Forwarded-For, X-Real-IP, CF-Connecting-IP and similar) rather than from a parameter. Use this when you want the requester own address; use network_ip_geolocation instead to look up an arbitrary IP you supply. Not read-only in the side-effect sense (it queries a third party) and rate-limited (30 requests/minute for anonymous callers). Takes no input (HTTP GET, no body or query parameters). Returns the detected IP, proxy analysis, header echo, and country/region/city/ISP/ASN when the geo lookup succeeds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | No | The public IP address detected for the caller, or unknown if it could not be determined. | |
| timestamp | No | ISO 8601 time the response was generated. | |
| source | No | How the IP was obtained; always server_detection. | |
| proxy_detection | No | Proxy/CDN analysis derived from forwarding headers. | |
| ip_analysis | No | Per-header breakdown keyed by server variable (HTTP_X_FORWARDED_FOR and similar); each entry reports its value, a human description, and a present flag. | |
| country | No | Country name from ip-api.com (present only when the geo lookup succeeds). | |
| countryCode | No | Two-letter ISO country code. | |
| region | No | Region or state name (ip-api regionName). | |
| city | No | City name. | |
| zip | No | Postal/ZIP code. | |
| lat | No | Latitude of the approximate location. | |
| lon | No | Longitude of the approximate location. | |
| timezone | No | IANA timezone name for the location. | |
| isp | No | Internet service provider name. | |
| org | No | Organization that owns the IP. | |
| as | No | Autonomous System number and name (such as AS15169 Google LLC). | |
| mobile | No | True if the IP is on a mobile carrier network. | |
| proxy | No | True if ip-api flags the IP as a proxy or VPN. | |
| hosting | No | True if the IP belongs to a hosting or data-center range. | |
| headers | No | Echo of selected request headers including proxy-detection headers; each value is the header string or null when absent. | |
| data_sources_info | No | Explanations of how each data point is derived and approximate accuracy. | |
| server_info | No | Details about the responding server and connection (server IP/port, HTTPS, protocol, method). | |
| warning | No | Present only when the ip-api.com lookup failed; the geo fields are then omitted. |