Fast, stateless Network Diagnostics

Network & DNS

GET/api/v1/ip-info

IP Info

Network owner, ISP, and country for any IP address.

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": "AS13335",
    "asName": "Cloudflare, Inc.",
    "asDomain": "cloudflare.com",
    "countryCode": "AU",
    "country": "Australia",
    "continentCode": "OC",
    "continent": "Oceania",
    "resolvedFrom": null
  },
  "meta": { "tool": "ip-info", "version": "v1" }
}