IPv4 & IPv6 · RPKI validated

IP Ranges

Get all IP ranges and CIDR blocks for any organization or ASN. Enumerate every IPv4 and IPv6 prefix announced by a network, with RPKI validation status.

Capabilities

Key Features

Complete prefix enumeration for any ASN — IPv4, IPv6, RPKI status, and announcement history.

All Prefixes for an ASN

Retrieve every IP prefix announced by any Autonomous System Number — both currently active and historically announced routes.

IPv4 and IPv6 Ranges

Full dual-stack coverage. Get both IPv4 CIDR blocks and IPv6 prefixes for any organisation in a single API call.

Route Origin Validation

Verify that route announcements match registered ROAs (Route Origin Authorizations) to detect BGP hijacks and route leaks.

RPKI Status

Check Resource Public Key Infrastructure status for each prefix. Identify VALID, INVALID, and NOT FOUND route states instantly.

Announcement History

Track when prefixes were first announced, withdrawn, and re-announced over time. Essential for BGP stability analysis.

Bulk ASN Export

Export complete prefix lists in CIDR, JSON, or plain text format for use in firewall rules, ACLs, and routing policies.

Response Schema

Data Fields

All fields returned by the /v2/asn/{asn}/ranges endpoint.

Field Type Description
asnstringAutonomous System Number in ASxxxx format
orgstringOrganisation name registered for this ASN
prefixes_v4arrayList of IPv4 CIDR prefixes announced by this ASN
prefixes_v6arrayList of IPv6 CIDR prefixes announced by this ASN
total_ipsintegerTotal count of IPv4 addresses across all announced prefixes
countriesarrayISO country codes where this ASN announces prefixes

Live Demo

See It In Action

Enter an ASN to retrieve all its IP prefixes and ranges.

{
  "asn": "AS15169",
  "org": "Google LLC",
  "total_ips": 4718592,
  "prefixes_v4": [
    "8.8.8.0/24",
    "8.8.4.0/24",
    "34.0.0.0/9",
    "35.184.0.0/13",
    "..."
  ],
  "prefixes_v6": [
    "2001:4860::/32",
    "2607:f8b0::/32",
    "..."
  ],
  "countries": ["US", "EU", "SG", "AU"]
}

Applications

Use Cases

Firewall & ACL Management

Generate accurate allowlists or blocklists for specific cloud providers, CDNs, or ISPs by pulling their complete IP range data directly into your firewall rules.

  • Cloud provider allowlisting
  • CDN IP blocklist generation
  • Geo-blocking by ASN

BGP Route Security

Monitor RPKI validation status of all prefixes for an ASN. Detect invalid route origins that may indicate BGP hijacking or misconfiguration.

  • BGP hijack detection
  • Route leak identification
  • RPKI compliance auditing

Network Planning & Auditing

Map out the full IP footprint of partner networks, cloud providers, or your own infrastructure for network planning, documentation, and change management.

  • IP footprint documentation
  • Infrastructure inventory
  • Change management tracking

Integration

API Reference

# Get all IP ranges for an ASN
curl -X GET "https://api.hostinfo.com/v2/asn/AS15169/ranges" \
  -H "Authorization: Bearer YOUR_API_TOKEN"

Start Enumerating IP Ranges

Free plan includes 50K API calls/month. No credit card required.