rir_get_announced_prefixes
Retrieve all IP prefixes an ASN announces in BGP to analyze routing footprint, detect potential hijacks, or conduct network due diligence.
Instructions
Retrieve all IP prefixes currently being announced by an ASN in BGP.
This shows the ASN's complete routing footprint — every IP range it is actively advertising to the global internet via BGP. Uses RIPE Stat's announced-prefixes endpoint.
Useful for:
Understanding an organization's complete IP footprint
Detecting unexpected prefix announcements (possible hijacks)
M&A due diligence on network assets
Security research and threat intelligence
min_peers_seeing filters out unstable/flapping routes that only a small number of BGP peers can see. Higher = more stable routes only.
Results are cached for 5 minutes.
Args: params (AnnouncedPrefixesInput): - asn (str): ASN to query (e.g. 'AS13335' or '15169') - min_peers_seeing (int): Minimum peer count filter (default: 5)
Returns: str: Complete list of announced prefixes with peer visibility and first/last seen timestamps. JSON schema: { "resource": str, "is_announced": bool, "announced_prefixes": [ {"prefix": str, "peers_seeing": int, "first_seen": str, "last_seen": str} ] }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |