On this page

BGP IPv4 Active Prefixes API

Introduction

This API returns IPv4 address space routes/prefixes which are currently announced on Border Gateway Protocol (BGP).

Get started

This API is part of the Network Engineering package and is available in free and paid plans. Please visit the Network Engineering package page for limits and pricing information.

Endpoint

GET
https://api.bigdatacloud.net/data/prefixes-list

Request

Parameter
Type
Required
Description
Parameter
bogonsOnly
Type
boolean
Required
Optional, default value: False
Description
Limit to bogon routes only or not
Parameter
batchSize
Type
integer (int32)
Required
Optional, default value: 10
Description
Requested batch size. Maximum value = 1000
Parameter
offset
Type
integer (int32)
Required
Optional, default value: 0
Description
Offset. Number of entries to skip
Parameter
sort
Type
string, enum (bgpPrefix, bgpPrefixNetworkAddress, bgpPrefixLastAddress, registryStatus, isBogon, isAnnounced, carriers)
Required
Optional, default value: bgpPrefixNetworkAddress
Description
Sort response by a field value. Default value: bgpPrefixNetworkAddress
Parameter
order
Type
string, enum (asc, desc)
Required
Optional, default value: asc
Description
Sort order. Default value: asc
Parameter
asn
Type
string
Required
Yes
Description
Autonomous System Number as numeric or ASN format (e.g. 123 or AS123 or ASN123)
Parameter
localityLanguage
Type
string
Required
Optional, default value: en
Description
Preferred language for locality names in ISO 639-1 format, such as 'en' for English, 'es' for Spanish etc. If the requested language is not available for a requested location, it will default to English. If no English variant is known, will provide the native, local names
Parameter
key
Type
string
Required
Yes
Description
Your API key

Responses

Example query

https://api.bigdatacloud.net/data/prefixes-list?bogonsOnly=false&batchSize=10&offset=0&localityLanguage=en&key=[YOUR API KEY]
  

Example response

  • 1
    {
  • 2
    "total": 1360039,
  • 3
    "offset": 0,
  • 4
    "batch": 10,
  • 5
    "prefixes": [...]
    • 6
      {...}
      • 7
        "bgpPrefix": "1.0.0.0/24",
      • 8
        "bgpPrefixNetworkAddress": "1.0.0.0",
      • 9
        "bgpPrefixLastAddress": "1.0.0.255",
      • 10
        "registryStatus": "assigned",
      • 11
        "isBogon": false,
      • 12
        "isAnnounced": true,
      • 13
        "carriers": [...]
        • 14
          {...}
          • 15
            "asn": "AS13335",
          • 16
            "asnNumeric": 13335,
          • 17
            "organisation": "Cloudflare Inc.",
          • 18
            "name": "CLOUDFLARENET",
          • 19
            "registry": "ARIN",
          • 20
            "registeredCountry": "US",
          • 21
            "registeredCountryName": "United States of America",
          • 22
            "totalIpv4Addresses": 1637376,
          • 23
            "rank": 257
          • 24
            }
        • 25
          ]
      • 26
        },
    • 27
      {...}
      • 28
        "bgpPrefix": "1.0.4.0/24",
      • 29
        "bgpPrefixNetworkAddress": "1.0.4.0",
      • 30
        "bgpPrefixLastAddress": "1.0.4.255",
      • 31
        "registryStatus": "assigned",
      • 32
        "isBogon": false,
      • 33
        "isAnnounced": true,
      • 34
        "carriers": [...]
        • 35
          {...}
          • 36
            "asn": "AS38803",
          • 37
            "asnNumeric": 38803,
          • 38
            "organisation": "Wirefreebroadband Pty Ltd",
          • 39
            "name": "WPL-AS-AP",
          • 40
            "registry": "APNIC",
          • 41
            "registeredCountry": "AU",
          • 42
            "registeredCountryName": "Australia",
          • 43
            "totalIpv4Addresses": 5120,
          • 44
            "rank": 13754
          • 45
            }
        • 46
          ]
      • 47
        },
    • 48
      {...}
      • 49
        "bgpPrefix": "1.0.5.0/24",
      • 50
        "bgpPrefixNetworkAddress": "1.0.5.0",
      • 51
        "bgpPrefixLastAddress": "1.0.5.255",
      • 52
        "registryStatus": "assigned",
      • 53
        "isBogon": false,
      • 54
        "isAnnounced": true,
      • 55
        "carriers": [...]
        • 56
          {...}
          • 57
            "asn": "AS38803",
          • 58
            "asnNumeric": 38803,
          • 59
            "organisation": "Wirefreebroadband Pty Ltd",
          • 60
            "name": "WPL-AS-AP",
          • 61
            "registry": "APNIC",
          • 62
            "registeredCountry": "AU",
          • 63
            "registeredCountryName": "Australia",
          • 64
            "totalIpv4Addresses": 5120,
          • 65
            "rank": 13754
          • 66
            }
        • 67
          ]
      • 68
        },
    • 69
      {...}
      • 70
        "bgpPrefix": "1.0.6.0/23",
      • 71
        "bgpPrefixNetworkAddress": "1.0.6.0",
      • 72
        "bgpPrefixLastAddress": "1.0.7.255",
      • 73
        "registryStatus": "assigned",
      • 74
        "isBogon": false,
      • 75
        "isAnnounced": true,
      • 76
        "carriers": [...]
        • 77
          {...}
          • 78
            "asn": "AS38803",
          • 79
            "asnNumeric": 38803,
          • 80
            "organisation": "Wirefreebroadband Pty Ltd",
          • 81
            "name": "WPL-AS-AP",
          • 82
            "registry": "APNIC",
          • 83
            "registeredCountry": "AU",
          • 84
            "registeredCountryName": "Australia",
          • 85
            "totalIpv4Addresses": 5120,
          • 86
            "rank": 13754
          • 87
            }
        • 88
          ]
      • 89
        },
    • 90
      {...}
      • 91
        "bgpPrefix": "1.0.64.0/18",
      • 92
        "bgpPrefixNetworkAddress": "1.0.64.0",
      • 93
        "bgpPrefixLastAddress": "1.0.127.255",
      • 94
        "registryStatus": "assigned",
      • 95
        "isBogon": false,
      • 96
        "isAnnounced": true,
      • 97
        "carriers": [...]
        • 98
          {...}
          • 99
            "asn": "AS18144",
          • 100
            "asnNumeric": 18144,
          • 101
            "organisation": "Energia CommunicationsInc.",
          • 102
            "name": "AS-ENECOM",
          • 103
            "registry": "JPNIC",
          • 104
            "registeredCountry": "JP",
          • 105
            "registeredCountryName": "Japan",
          • 106
            "totalIpv4Addresses": 291840,
          • 107
            "rank": 875
          • 108
            }
        • 109
          ]
      • 110
        },
    • 111
      {...}
      • 112
        "bgpPrefix": "1.0.128.0/24",
      • 113
        "bgpPrefixNetworkAddress": "1.0.128.0",
      • 114
        "bgpPrefixLastAddress": "1.0.128.255",
      • 115
        "registryStatus": "assigned",
      • 116
        "isBogon": false,
      • 117
        "isAnnounced": true,
      • 118
        "carriers": [...]
        • 119
          {...}
          • 120
            "asn": "AS23969",
          • 121
            "asnNumeric": 23969,
          • 122
            "organisation": "TOT Public Company Limited",
          • 123
            "name": "TOT-NET",
          • 124
            "registry": "APNIC",
          • 125
            "registeredCountry": "TH",
          • 126
            "registeredCountryName": "Thailand",
          • 127
            "totalIpv4Addresses": 1163776,
          • 128
            "rank": 336
          • 129
            }
        • 130
          ]
      • 131
        },
    • 132
      {...}
      • 133
        "bgpPrefix": "1.0.129.0/24",
      • 134
        "bgpPrefixNetworkAddress": "1.0.129.0",
      • 135
        "bgpPrefixLastAddress": "1.0.129.255",
      • 136
        "registryStatus": "assigned",
      • 137
        "isBogon": false,
      • 138
        "isAnnounced": true,
      • 139
        "carriers": [...]
        • 140
          {...}
          • 141
            "asn": "AS23969",
          • 142
            "asnNumeric": 23969,
          • 143
            "organisation": "TOT Public Company Limited",
          • 144
            "name": "TOT-NET",
          • 145
            "registry": "APNIC",
          • 146
            "registeredCountry": "TH",
          • 147
            "registeredCountryName": "Thailand",
          • 148
            "totalIpv4Addresses": 1163776,
          • 149
            "rank": 336
          • 150
            }
        • 151
          ]
      • 152
        },
    • 153
      {...}
      • 154
        "bgpPrefix": "1.0.130.0/23",
      • 155
        "bgpPrefixNetworkAddress": "1.0.130.0",
      • 156
        "bgpPrefixLastAddress": "1.0.131.255",
      • 157
        "registryStatus": "assigned",
      • 158
        "isBogon": false,
      • 159
        "isAnnounced": true,
      • 160
        "carriers": [...]
        • 161
          {...}
          • 162
            "asn": "AS23969",
          • 163
            "asnNumeric": 23969,
          • 164
            "organisation": "TOT Public Company Limited",
          • 165
            "name": "TOT-NET",
          • 166
            "registry": "APNIC",
          • 167
            "registeredCountry": "TH",
          • 168
            "registeredCountryName": "Thailand",
          • 169
            "totalIpv4Addresses": 1163776,
          • 170
            "rank": 336
          • 171
            }
        • 172
          ]
      • 173
        },
    • 174
      {...}
      • 175
        "bgpPrefix": "1.0.132.0/24",
      • 176
        "bgpPrefixNetworkAddress": "1.0.132.0",
      • 177
        "bgpPrefixLastAddress": "1.0.132.255",
      • 178
        "registryStatus": "assigned",
      • 179
        "isBogon": false,
      • 180
        "isAnnounced": true,
      • 181
        "carriers": [...]
        • 182
          {...}
          • 183
            "asn": "AS23969",
          • 184
            "asnNumeric": 23969,
          • 185
            "organisation": "TOT Public Company Limited",
          • 186
            "name": "TOT-NET",
          • 187
            "registry": "APNIC",
          • 188
            "registeredCountry": "TH",
          • 189
            "registeredCountryName": "Thailand",
          • 190
            "totalIpv4Addresses": 1163776,
          • 191
            "rank": 336
          • 192
            }
        • 193
          ]
      • 194
        },
    • 195
      {...}
      • 196
        "bgpPrefix": "1.0.133.0/24",
      • 197
        "bgpPrefixNetworkAddress": "1.0.133.0",
      • 198
        "bgpPrefixLastAddress": "1.0.133.255",
      • 199
        "registryStatus": "assigned",
      • 200
        "isBogon": false,
      • 201
        "isAnnounced": true,
      • 202
        "carriers": [...]
        • 203
          {...}
          • 204
            "asn": "AS23969",
          • 205
            "asnNumeric": 23969,
          • 206
            "organisation": "TOT Public Company Limited",
          • 207
            "name": "TOT-NET",
          • 208
            "registry": "APNIC",
          • 209
            "registeredCountry": "TH",
          • 210
            "registeredCountryName": "Thailand",
          • 211
            "totalIpv4Addresses": 1163776,
          • 212
            "rank": 336
          • 213
            }
        • 214
          ]
      • 215
        }
    • 216
      ]
  • 217
    }

Schema

application/json