๐ŸŽ‰ Limited time โ€” 20% off all plans. View pricing โ†’
Docs ยท Intelligence

ASN lookup

Operator name and every routed CIDR prefix for an Autonomous System Number.

POST /v1/intel/asn

Resolves an ASN to its operator name and the full list of IPv4 and IPv6 prefixes routed under that ASN. Backed by the same iptoasn.com dataset that powers the IP geolocation endpoint โ€” local database read, no network call, sub-100 ms response. Useful for building per-network allow/deny lists, mapping a customer or vendor's infrastructure, and auditing ownership claims.

Parameters

Name Type Required Default Description
asn integer yes โ€” ASN number without the 'AS' prefix. E.g. 15169 for Google.

Request

curl -X POST https://api.qcrawl.com/v1/intel/asn \
  -H "Authorization: Bearer osk_..." \
  -d '{"asn": 15169}'

Response

{
  "status": "success",
  "asn": 15169,
  "name": "GOOGLE",
  "prefixes_v4": ["8.8.4.0/24", "8.8.8.0/24", "..."],
  "prefixes_v6": ["2001:4860::/32", "..."],
  "prefix_count": 1042,
  "data_source": "iptoasn.com"
}

Errors

Code Meaning
400 Missing or non-positive asn.
404 ASN is valid but not present in the routing dataset (unrouted or just-allocated).
503 ASN dataset temporarily unavailable. Credit refunded.

Related