Network & DNS

GET/api/v1/ip-info

IP Info

Network owner, ISP, and country for any IP address. 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). To find your own public IP, use My IP.

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

ParameterTypeRequiredDescription
targetstringYesIP address or domain (resolved to its first A record).

Example request

curl "https://netsh.io/api/v1/ip-info?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": "ip-info", "version": "v1" }
}
ASN Lookup