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
Complete prefix enumeration for any ASN — IPv4, IPv6, RPKI status, and announcement history.
Retrieve every IP prefix announced by any Autonomous System Number — both currently active and historically announced routes.
Full dual-stack coverage. Get both IPv4 CIDR blocks and IPv6 prefixes for any organisation in a single API call.
Verify that route announcements match registered ROAs (Route Origin Authorizations) to detect BGP hijacks and route leaks.
Check Resource Public Key Infrastructure status for each prefix. Identify VALID, INVALID, and NOT FOUND route states instantly.
Track when prefixes were first announced, withdrawn, and re-announced over time. Essential for BGP stability analysis.
Export complete prefix lists in CIDR, JSON, or plain text format for use in firewall rules, ACLs, and routing policies.
Response Schema
All fields returned by the /v2/asn/{asn}/ranges endpoint.
| Field | Type | Description |
|---|---|---|
asn | string | Autonomous System Number in ASxxxx format |
org | string | Organisation name registered for this ASN |
prefixes_v4 | array | List of IPv4 CIDR prefixes announced by this ASN |
prefixes_v6 | array | List of IPv6 CIDR prefixes announced by this ASN |
total_ips | integer | Total count of IPv4 addresses across all announced prefixes |
countries | array | ISO country codes where this ASN announces prefixes |
Live Demo
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
Generate accurate allowlists or blocklists for specific cloud providers, CDNs, or ISPs by pulling their complete IP range data directly into your firewall rules.
Monitor RPKI validation status of all prefixes for an ASN. Detect invalid route origins that may indicate BGP hijacking or misconfiguration.
Map out the full IP footprint of partner networks, cloud providers, or your own infrastructure for network planning, documentation, and change management.
Integration
# Get all IP ranges for an ASN
curl -X GET "https://api.hostinfo.com/v2/asn/AS15169/ranges" \
-H "Authorization: Bearer YOUR_API_TOKEN"
Free plan includes 50K API calls/month. No credit card required.