Network & DNS

GET/api/v1/asn-lookup

ASN Lookup

The network operator announcing a domain or IP's address block. asn is the bare AS number as a string (for example "13335"), and source is "live" or "fallback" (an offline dataset used when the live lookup is unavailable).

Cost: 1 credit per request, out of 300 per day.

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": "13335",
    "asName": "Cloudflare, Inc.",
    "asDomain": "cloudflare.com",
    "countryCode": "AU",
    "country": "Australia",
    "continentCode": "OC",
    "continent": "Oceania",
    "resolvedFrom": null
  },
  "meta": { "tool": "asn-lookup", "version": "v1" }
}
What Is My IP Address