Networks by CIDR API
Introduction
The CIDR Networks API retrieves a list of all the networks currently being announced on the Border Gateway Protocol (BGP) within a particular CIDR range.
Get Started
This API is part of the Network Engineering API Package and is available in free and paid plans. Please visit the Network Engineering API Package package page for limits and pricing information.
Endpoint
GET
https://api-bdc.net/data/network-by-cidr
Request
Parameter
Type
Required
Description
Parameter
cidrType
stringRequired
YesDescription
CIDR range in a x.x.x.x/y format. Where x: (0-255), y: (0-32)Parameter
depthLimitType
integer (int32)Required
Optional, default value: 1Description
Defines how many hierarchical levels down to include in the responseParameter
localityLanguageType
stringRequired
Optional, default value: enDescription
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 namesParameter
subnetsBatchSizeType
integer (int32)Required
Optional, default value: 20Description
number of subnetwork entries to retrieve. reads 20 if omitted, 20 is the hard limitParameter
subnetsOffsetType
integer (int32)Required
Optional, default value: 0Description
the number of subnetwork entries to skip. reads 0 if omitted.Parameter
keyType
stringRequired
YesDescription
Your API keyResponses
200OK
200
OK
Sample Query
GET
https://api-bdc.net/data/network-by-cidr?cidr=8.0.0.0/8&depthLimit=2&bogonsOnly=false&localityLanguage=en&key=[YOUR API KEY]
Schema
application/json
cidrstringCIDR range to represent the response
cidrstring
CIDR range to represent the response
parentstringParent network in CIDR format
parentstring
Parent network in CIDR format
networksarrayArray of a network/range objects resembling the CIDR range of interest. Omitted if a single network
networksarray
Array of a network/range objects resembling the CIDR range of interest. Omitted if a single network
CidrstringCidr object
Cidrstring
Cidr object
TypestringType object
Typestring
Type object
networknetwork object
network
network object
registrystringThe Regional Internet Registry (RIR), the network registered with
registrystring
The Regional Internet Registry (RIR), the network registered with
registryStatusstringRegistration status
registryStatusstring
Registration status
registeredCountrystringRegistered Country ISO 3166-1 Alpha-2 code
registeredCountrystring
Registered Country ISO 3166-1 Alpha-2 code
registeredCountryNamestringRegistered Country name localised to the language is as defined by 'localityLanguage' request parameter
registeredCountryNamestring
Registered Country name localised to the language is as defined by 'localityLanguage' request parameter
organisationstringorganisation or a segment the network is registered for
organisationstring
organisation or a segment the network is registered for
isReachableGloballybooleanIndicates whether the network was announced on BGP and reachable globally or not
isReachableGloballyboolean
Indicates whether the network was announced on BGP and reachable globally or not
isBogonbooleanIndicates whether the IP address is excluded from public Internet use
by the authorities but announced into the global routing table via BGP
isBogonboolean
Indicates whether the IP address is excluded from public Internet use
by the authorities but announced into the global routing table via BGP
bgpPrefixstringThe BGP prefix detected on the global network, announcing the network
bgpPrefixstring
The BGP prefix detected on the global network, announcing the network
bgpPrefixNetworkAddressstringBGP prefix network (the first) address
bgpPrefixNetworkAddressstring
BGP prefix network (the first) address
bgpPrefixLastAddressstringBGP prefix last address
bgpPrefixLastAddressstring
BGP prefix last address
totalAddressesintegerNumber of IP addresses in the Network. For IPv6 networks, the value can range up to a 128-bit unsigned integer
totalAddressesinteger
Number of IP addresses in the Network. For IPv6 networks, the value can range up to a 128-bit unsigned integer
carriersarrayList of Autonomous Systems (AS) announcing this network on BGP
carriersarray
List of Autonomous Systems (AS) announcing this network on BGP
asnstringAutonomous System Number string
asnstring
Autonomous System Number string
asnNumericintegerAutonomous System Number
asnNumericinteger
Autonomous System Number
organisationstringRegistered Organisation
organisationstring
Registered Organisation
namestringRegistered name
namestring
Registered name
registrystringThe Regional Internet Registry (RIR) the AS is registered with
registrystring
The Regional Internet Registry (RIR) the AS is registered with
registeredCountrystringRegistered Country ISO 3166-1 Alpha-2 code
registeredCountrystring
Registered Country ISO 3166-1 Alpha-2 code
registeredCountryNamestringRegistered Country localised name. The language is as defined by the 'localityLanguage' request parameter
registeredCountryNamestring
Registered Country localised name. The language is as defined by the 'localityLanguage' request parameter
registrationDatestringRegistration date in 'yyyy-mm-dd' format
registrationDatestring
Registration date in 'yyyy-mm-dd' format
registrationLastChangestringRegistration modification date in 'yyyy-mm-dd' format
registrationLastChangestring
Registration modification date in 'yyyy-mm-dd' format
totalIpv4AddressesintegerTotal number of IP addresses announced by the AS
totalIpv4Addressesinteger
Total number of IP addresses announced by the AS
totalIpv4PrefixesintegerTotal number of ipV4 BGP prefixes announced by the AS
totalIpv4Prefixesinteger
Total number of ipV4 BGP prefixes announced by the AS
totalIpv4BogonPrefixesintegerTotal number of ipV4 bogon prefixes announced by the AS
totalIpv4BogonPrefixesinteger
Total number of ipV4 bogon prefixes announced by the AS
totalIpv6PrefixesintegerTotal number of ipV6 BGP prefixes announced by the AS
totalIpv6Prefixesinteger
Total number of ipV6 BGP prefixes announced by the AS
totalIpv6BogonPrefixesintegerTotal number of ipV6 bogon prefixes announced by the AS
totalIpv6BogonPrefixesinteger
Total number of ipV6 bogon prefixes announced by the AS
rankintegerGlobal rank by total number of IP addresses announced
rankinteger
Global rank by total number of IP addresses announced
rankTextstringGlobal rank by total number of IP addresses announced including total
rankTextstring
Global rank by total number of IP addresses announced including total
viaCarriersarrayList of Autonomous Systems (AS) detected at the last hop before the announced parties. Capped to the most significant 5.
viaCarriersarray
List of Autonomous Systems (AS) detected at the last hop before the announced parties. Capped to the most significant 5.
asnstringAutonomous System Number string
asnstring
Autonomous System Number string
asnNumericintegerAutonomous System Number
asnNumericinteger
Autonomous System Number
organisationstringRegistered Organisation
organisationstring
Registered Organisation
namestringRegistered name
namestring
Registered name
registrystringThe Regional Internet Registry (RIR) the AS is registered with
registrystring
The Regional Internet Registry (RIR) the AS is registered with
registeredCountrystringRegistered Country ISO 3166-1 Alpha-2 code
registeredCountrystring
Registered Country ISO 3166-1 Alpha-2 code
registeredCountryNamestringRegistered Country localised name. The language is as defined by the 'localityLanguage' request parameter
registeredCountryNamestring
Registered Country localised name. The language is as defined by the 'localityLanguage' request parameter
totalIpv4AddressesintegerTotal number of IP addresses announced by the AS
totalIpv4Addressesinteger
Total number of IP addresses announced by the AS
rankintegerGlobal rank by total number of IP addresses announced
rankinteger
Global rank by total number of IP addresses announced
rankTextstringGlobal rank by total number of IP addresses announced including total
rankTextstring
Global rank by total number of IP addresses announced including total
totalSubnetsintegerTotal number of subnetworks detected
totalSubnetsinteger
Total number of subnetworks detected
subnetsarrayThe array of subnetwork objects
subnetsarray
The array of subnetwork objects
startAddressstringFirst IPv4 address of the subnet. In string format
startAddressstring
First IPv4 address of the subnet. In string format
endAddressstringLast IPv4 address of the subnet. In string format
endAddressstring
Last IPv4 address of the subnet. In string format
isCellularbooleanReturns 'true' if the subnetwork was detected as servicing cellular network clients, omitted otherwise
isCellularboolean
Returns 'true' if the subnetwork was detected as servicing cellular network clients, omitted otherwise
organisationstringOrganisation or segment the network was registered for
organisationstring
Organisation or segment the network was registered for
registeredCountrystringRegistered Country ISO 3166-1 Alpha-2 code
registeredCountrystring
Registered Country ISO 3166-1 Alpha-2 code
registeredCountryNamestringRegistered Country name localised to the language as defined by 'localityLanguage' request parameter
registeredCountryNamestring
Registered Country name localised to the language as defined by 'localityLanguage' request parameter
Sample Response
JSON View
400Bad request
400
Bad request
Sample Response
JSON View
403Access denied, or your quota limit has exceeded
403
Access denied, or your quota limit has exceeded
Sample Response
JSON View
404Found no valid entry for the request
404
Found no valid entry for the request
Sample Response
JSON View
406Found too many result items. Please reduce the scope of your request
406
Found too many result items. Please reduce the scope of your request
Sample Response
JSON View
500An error has occurred and did not complete your request. Please try again
500
An error has occurred and did not complete your request. Please try again
Sample Response
JSON View
Was this page helpful?