BGPKIT API v3.0.0

This page is generated from the live OpenAPI specification to stay in sync with the API surface.

BGPKIT API provides access to BGP data and tools offered by BGPKIT. [![BGPKIT Logo](https://raw.githubusercontent.com/bgpkit/assets/main/logos/wide-solid-200px.png)](https://bgpkit.com)

Base URL
https://api.bgpkit.com
Spec
3.0.0
Endpoint count
7

Examples

These examples are derived from the OpenAPI spec (paths + parameter defaults/examples when provided).

curl
# Search BGP MRT files
curl "https://api.bgpkit.com/v3/broker/search?page=1&page_size=100"

# Get latest BGP MRT files
curl "https://api.bgpkit.com/v3/broker/latest"

# Get BGP peer information
curl "https://api.bgpkit.com/v3/broker/peers?full_feed=false"

# IP address lookup
curl "https://api.bgpkit.com/v3/utils/ip?simple=false"

# ASN information lookup
curl "https://api.bgpkit.com/v3/utils/asn"

Tip: if you need a parameter not shown here, scroll down to the endpoint listing for the full parameter set.

Endpoints

Grouped by tag from the OpenAPI spec. Each endpoint includes an auto-generated curl template and parameter list.

BGPKIT Broker

4 endpoint s
GET /v3/broker/health
Check broker health
Check BGPKIT broker infrastructure status across deployments. Returns health metrics, uptime, and data freshness. Returns HTTP 500 if data is stale (>1 hour).
Example
curl "https://api.bgpkit.com/v3/broker/health"
curl
curl "https://api.bgpkit.com/v3/broker/health"
Parameters
No parameters listed in the OpenAPI spec for this endpoint.
GET /v3/broker/latest
Get latest BGP MRT files
Get the most recent BGP MRT files from all active RouteViews and RIPE RIS collectors. Includes delay metrics and download URLs.
Example
curl "https://api.bgpkit.com/v3/broker/latest"
curl
curl "https://api.bgpkit.com/v3/broker/latest"
Parameters
No parameters listed in the OpenAPI spec for this endpoint.
GET /v3/broker/peers
Get BGP peer information
Get BGP peer statistics from RouteViews and RIPE RIS collectors including IPv4/IPv6 prefix counts, connected ASNs, and activity status.
Example
curl "https://api.bgpkit.com/v3/broker/peers?full_feed=false"
curl
curl "https://api.bgpkit.com/v3/broker/peers?full_feed=false"
Parameters
Name In Required Notes
full_feed query no Filter for full-feed peers only (>700K IPv4 or >100K IPv6 prefixes) ( boolean )
ip query no Filter by specific peer IP address (IPv4 or IPv6)
asn query no Filter by Autonomous System Number ( integer )
collector query no Filter by collector name(s). Comma-separated for multiple collectors. ( string )
GET /v3/broker/search
Search BGP MRT files
Search BGP MRT files from RouteViews and RIPE RIS collectors. Returns RIB files and routing updates with download URLs and metadata.
Example
curl "https://api.bgpkit.com/v3/broker/search?page=1&page_size=100"
curl
curl "https://api.bgpkit.com/v3/broker/search?page=1&page_size=100"
Parameters
Name In Required Notes
page query no Page number (starts from 1) ( integer )
page_size query no Results per page (1-1000, default: 100) ( integer )
ts_start query no Start timestamp (ISO 8601, RFC3339, or Unix timestamp) ( string )
ts_end query no End timestamp (same formats as ts_start) ( string )
project query no Data collection project: "routeviews" or "riperis" ( string )
collector_id query no Specific collector ID(s). Comma-separated for multiple collectors. ( string )
data_type query no Data type: "rib" (routing table snapshots) or "updates" (routing changes) ( string )

BGPKIT Utils

3 endpoint s
GET /v3/utils/asn
ASN information lookup
Get ASN information including organization details, network metrics, geographic presence, and connectivity patterns. Supports single or multiple ASNs (comma-separated).
Example
curl "https://api.bgpkit.com/v3/utils/asn"
curl
curl "https://api.bgpkit.com/v3/utils/asn"
Parameters
Name In Required Notes
asn query no ASN number(s) to lookup. Single or comma-separated multiple ASNs. Omit for paginated browsing. ( string )
page query no Page number for paginated results when browsing all ASNs ( number )
page_size query no Number of ASNs per page for pagination ( number )
POST /v3/utils/asn
Bulk ASNs lookup
Process up to 10,000 ASNs in a single batch request. More efficient than individual requests for large-scale analysis.
Example
curl -X POST "https://api.bgpkit.com/v3/utils/asn"
curl
curl -X POST "https://api.bgpkit.com/v3/utils/asn"
Parameters
No parameters listed in the OpenAPI spec for this endpoint.
GET /v3/utils/ip
IP address lookup
Get geolocation and network information for IPv4/IPv6 addresses. Returns country, ASN ownership, BGP prefix, and RPKI status. Uses client IP if no address specified.
Example
curl "https://api.bgpkit.com/v3/utils/ip?simple=false"
curl
curl "https://api.bgpkit.com/v3/utils/ip?simple=false"
Parameters
Name In Required Notes
ip query no IP address to analyze (IPv4 or IPv6). Uses client IP if omitted. ( string )
simple query no Return only IP and country (excludes ASN and BGP data) ( boolean )