Fast, stateless Network Diagnostics

Network & DNS

GET/api/v1/asn-lookup

ASN Lookup

The network operator announcing a domain or IP's address block.

ParameterTypeRequiredDescription
targetstringYesIP address or domain.

Example request

curl "https://netsh.io/api/v1/asn-lookup?target=1.1.1.1&api_key=YOUR_API_KEY"

Example response

{
  "ok": true,
  "data": {
    "ip": "1.1.1.1",
    "source": "live",
    "asn": "AS13335",
    "asName": "Cloudflare, Inc.",
    "asDomain": "cloudflare.com",
    "countryCode": "AU",
    "country": "Australia",
    "continentCode": "OC",
    "continent": "Oceania",
    "resolvedFrom": null
  },
  "meta": { "tool": "asn-lookup", "version": "v1" }
}