Auto-detect Client IP:
The API now supports requests without the ip query parameter.
When this parameter is missing, the backend automatically detects and uses the requesting client’s IP address.
This enables quick ASN lookups for the caller’s own address without any client-side logic.
Updated Documentation:
The API documentation explains this behavior, showing example requests and the resulting JSON.
The Mermaid flowchart clearly visualizes the updated logic:
If ip is provided, use it.
Otherwise, seamlessly fall back to the real client IP.
User-Friendly Experience:
This change improves ease-of-use for web tools, scripts, and interactive diagnostics, allowing users to retrieve ASN info for their public IP in one step, with no parameters needed.
Backward Compatibility:
All existing query and locale options work as before, ensuring compatibility for integrators.
Consistency & Reliability:
The automatic fallback only picks up the genuine client address, maintaining high reliability and transparency in ASN and provider results.