Resolves an IPv4 or IPv6 address to the ASN that announces it, returning the AS number and organisation name. Returns a 400 for invalid IPs and a 500 if the backend lookup fails.
| Field | Type | Description |
|---|---|---|
| ip | string | The queried IP address as provided. |
| announcedBy | object|false | Object with number (integer) and description (string), or false if no announcing ASN was found. |
| error | null|string | Null on success; error string on failure. |
Redirects (302) to /lookup/{client_ip} so the result is served
from Cloudflare's cache for that specific IP. A convenient shortcut —
you don't need to know your own IP before making the request.
The redirect response itself is never cached.
Alias for /api/v1/:ip. Identical response. Exists for backwards
compatibility and is the canonical cached URL used by the /@me redirect.
Alias for /api/v1/@me. Redirects (302) to /lookup/{client_ip}.