Updates to the ASN API

We’ve updated the ASN API.

A few additions that have been on the request list for a while:

Prefix objects now include:

  • size — number of IPs in the prefix
  • status — RIR allocation status (e.g. ALLOCATED PA, ALLOCATED-BY-RIR etc.)
  • domain — domain associated with the prefix
  • rpki_status — RPKI validation state ( valid , invalid:origin , invalid:origin or not_found .)

New top-level fields:

  • peers — ASNs peering with this network
  • upstreams — upstream transit providers
  • downstreams — downstream customers

One thing worth noting: size on IPv6 prefixes is returned as a string. IPv6 address counts exceed the JavaScript safe integer range, so we made that call to avoid silent precision loss.

Full updated schema is in the docs: ASN API | IPinfo.io