Get Autonomous System

GEThttps://api-ip-intelligence.dataandapis.com/v1/asns/{asn}

Get Autonomous System is an endpoint of the IP Intelligence API. Country, ASN, datacenter, cloud and Tor detection with an explainable risk score for any IP.

Send your key in the X-Api-Key header. Each call costs 1 token; a free key includes 500 tokens a month.

Request

Path parameters

ParameterExample
asn15169Required

Query parameters

ParameterExample
limit50Optional

Example request

curl
curl "https://api-ip-intelligence.dataandapis.com/v1/asns/15169?limit=50" \
  -H "X-Api-Key: YOUR_API_KEY"
Node.js
const res = await fetch("https://api-ip-intelligence.dataandapis.com/v1/asns/15169?limit=50", {
  headers: { "X-Api-Key": process.env.DATAANDAPIS_KEY },
});
const data = await res.json();
Python
import os, requests

r = requests.get(
    "https://api-ip-intelligence.dataandapis.com/v1/asns/15169?limit=50",
    headers={"X-Api-Key": os.environ["DATAANDAPIS_KEY"]},
)
data = r.json()

Example response

Example response
{
  "ok": true,
  "asn": 13335,
  "organization": "CLOUDFLARENET",
  "registry_country": "US",
  "range_count": 1530,
  "ranges": [
    {
      "family": "ipv4",
      "start": "1.0.0.0",
      "end": "1.0.0.255"
    },
    {
      "family": "ipv4",
      "start": "1.1.1.0",
      "end": "1.1.1.255"
    },
    {
      "family": "ipv4",
      "start": "5.10.214.0",
      "end": "5.10.215.255"
    }
  ]
}