BGP IPv4 Active Prefixes API

Introduction

This API returns IPv4 address space routes/prefixes which are currently announced on BGP.

Update Rate

  • BGP data: Updated every 2 hours

Try It Now

Use the form below to try out this API.

Parameters


Parameter Type Your Input Value
bogonsOnly boolean
batchSize integer
offset integer
sort string
order string
asn string
key string

Don't have an API Key? Click here to register and get your free API Key

If you already have a BigDataCloud account, to automatically fill this field with your Api Key.



Curl



Request URL



Response


Awaiting request submission...

API Pricing

  1. Monthly Subscription
    FREE 10,000 queries/month
    Additional 10,000 queries US$1.00/month
  2. Annual Subscription
    FREE 10,000 queries/month
    Additional 10,000 queries US$0.80/month

Request Format

Order

Parameter

Required

Data type

Description

1

bogonsOnly

Yes

boolean

Limit to bogon routes only or not

2

batchSize

Yes

16 bit unsigned integer

Requested batch size. Maximum value = 1000

3

offset

Yes

32 bit unsigned integer

Offset. Number of entries to skip

4

sort

No

string

Sort response by a field value, acceptable values:

·       bgpPrefix

·       bgpPrefixNetworkAddress

·       bgpPrefixLastAddress

·       registryStatus

·       isBogon

·       isAnnounced

Default – sorted by bgpPrefixNetworkAddress

5

order

No

string

Sort order, possible values: asc, desc. Default - asc

6

asn

No

string

Limit to ASN as a numeric or textual name format (e.g. 123 or AS123 or ASN123). Default – no limit

7

key

Yes

string

Your API key

Response Format

Field

Data type

Description

total

16 bit unsigned integer

Total prefixes found

offset

32 bit unsigned integer

Number of entries skipped

batch

16 bit unsigned integer

Number of entries in the current batch

prefixes

Array of <Prefix> objects

Array of prefix entries returned

Data Objects

Prefix Object

Field

Data type

Description

bgpPrefix

string

BGP prefix in CIDR format

bgpPrefixNetworkAddress

string

BGP prefix network (first) address

bgpPrefixLastAddress

string

BGP prefix last address

registryStatus

string

Registration status

isBogon

boolean

Indicates if the network in bogon

isAnnounced

boolean

Indicates if the network is announced

carriers

Array of <CarrierShort> objects

List of Autonomous Systems (AS) announcing this prefix on BGP

CarrierShort object

Field

Data type

Description

asn

string

Autonomous System Number string

asnNumeric

32 bit unsigned integer

Autonomous System Number

organisation

string

Registered Organisation

name

string

Registered name

registry

string

The Regional Internet Registry (RIR) the AS is registered with

registeredCountry

string

Registered Country ISO 3166-1 Alpha-2 code

registeredCountryName

string

Registered Country ISO 3166-1 name

rank

32 bit unsigned integer

World rank by total number of IP addresses announced

 

Related APIs