---
title: BGP
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/go)

[Radar](https://developers.cloudflare.com/api/go/resources/radar)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# BGP

##### [Get BGP time series](https://developers.cloudflare.com/api/go/resources/radar/subresources/bgp/methods/timeseries)

client.Radar.BGP.Timeseries(ctx, query) (\*[BGPTimeseriesResponse](<https://developers.cloudflare.com/api/go/resources/radar#(resource)%20radar.bgp%20%3E%20(model)%20BGPTimeseriesResponse%20%3E%20(schema)>), error)

GET/radar/bgp/timeseries

#### BGPLeaks

#### BGPLeaksEvents

##### [Get BGP route leak events](https://developers.cloudflare.com/api/go/resources/radar/subresources/bgp/subresources/leaks/subresources/events/methods/list)

client.Radar.BGP.Leaks.Events.List(ctx, query) (\*V4PagePagination\[[BGPLeakEventListResponse](<https://developers.cloudflare.com/api/go/resources/radar#(resource)%20radar.bgp.leaks.events%20%3E%20(model)%20BGPLeakEventListResponse%20%3E%20(schema)>)], error)

GET/radar/bgp/leaks/events

#### BGPTop

##### [Get top prefixes by BGP updates](https://developers.cloudflare.com/api/go/resources/radar/subresources/bgp/subresources/top/methods/prefixes)

client.Radar.BGP.Top.Prefixes(ctx, query) (\*[BGPTopPrefixesResponse](<https://developers.cloudflare.com/api/go/resources/radar#(resource)%20radar.bgp.top%20%3E%20(model)%20BGPTopPrefixesResponse%20%3E%20(schema)>), error)

GET/radar/bgp/top/prefixes

#### BGPTopAses

##### [Get top ASes by BGP updates](https://developers.cloudflare.com/api/go/resources/radar/subresources/bgp/subresources/top/subresources/ases/methods/get)

client.Radar.BGP.Top.Ases.Get(ctx, query) (\*[BGPTopAseGetResponse](<https://developers.cloudflare.com/api/go/resources/radar#(resource)%20radar.bgp.top.ases%20%3E%20(model)%20BGPTopAseGetResponse%20%3E%20(schema)>), error)

GET/radar/bgp/top/ases

##### [Get top ASes by prefix count](https://developers.cloudflare.com/api/go/resources/radar/subresources/bgp/subresources/top/subresources/ases/methods/prefixes)

client.Radar.BGP.Top.Ases.Prefixes(ctx, query) (\*[BGPTopAsePrefixesResponse](<https://developers.cloudflare.com/api/go/resources/radar#(resource)%20radar.bgp.top.ases%20%3E%20(model)%20BGPTopAsePrefixesResponse%20%3E%20(schema)>), error)

GET/radar/bgp/top/ases/prefixes

#### BGPHijacks

#### BGPHijacksEvents

##### [Get BGP hijack events](https://developers.cloudflare.com/api/go/resources/radar/subresources/bgp/subresources/hijacks/subresources/events/methods/list)

client.Radar.BGP.Hijacks.Events.List(ctx, query) (\*V4PagePagination\[[BGPHijackEventListResponse](<https://developers.cloudflare.com/api/go/resources/radar#(resource)%20radar.bgp.hijacks.events%20%3E%20(model)%20BGPHijackEventListResponse%20%3E%20(schema)>)], error)

GET/radar/bgp/hijacks/events

#### BGPRoutes

##### [Get Multi-Origin AS (MOAS) prefixes](https://developers.cloudflare.com/api/go/resources/radar/subresources/bgp/subresources/routes/methods/moas)

client.Radar.BGP.Routes.Moas(ctx, query) (\*[BGPRouteMoasResponse](<https://developers.cloudflare.com/api/go/resources/radar#(resource)%20radar.bgp.routes%20%3E%20(model)%20BGPRouteMoasResponse%20%3E%20(schema)>), error)

GET/radar/bgp/routes/moas

##### [Get prefix-to-ASN mapping](https://developers.cloudflare.com/api/go/resources/radar/subresources/bgp/subresources/routes/methods/pfx2as)

client.Radar.BGP.Routes.Pfx2as(ctx, query) (\*[BGPRoutePfx2asResponse](<https://developers.cloudflare.com/api/go/resources/radar#(resource)%20radar.bgp.routes%20%3E%20(model)%20BGPRoutePfx2asResponse%20%3E%20(schema)>), error)

GET/radar/bgp/routes/pfx2as

##### [Get BGP routing table stats](https://developers.cloudflare.com/api/go/resources/radar/subresources/bgp/subresources/routes/methods/stats)

client.Radar.BGP.Routes.Stats(ctx, query) (\*[BGPRouteStatsResponse](<https://developers.cloudflare.com/api/go/resources/radar#(resource)%20radar.bgp.routes%20%3E%20(model)%20BGPRouteStatsResponse%20%3E%20(schema)>), error)

GET/radar/bgp/routes/stats

##### [List ASes from global routing tables](https://developers.cloudflare.com/api/go/resources/radar/subresources/bgp/subresources/routes/methods/ases)

client.Radar.BGP.Routes.Ases(ctx, query) (\*[BGPRouteAsesResponse](<https://developers.cloudflare.com/api/go/resources/radar#(resource)%20radar.bgp.routes%20%3E%20(model)%20BGPRouteAsesResponse%20%3E%20(schema)>), error)

GET/radar/bgp/routes/ases

##### [Get real-time BGP routes for a prefix](https://developers.cloudflare.com/api/go/resources/radar/subresources/bgp/subresources/routes/methods/realtime)

client.Radar.BGP.Routes.Realtime(ctx, query) (\*[BGPRouteRealtimeResponse](<https://developers.cloudflare.com/api/go/resources/radar#(resource)%20radar.bgp.routes%20%3E%20(model)%20BGPRouteRealtimeResponse%20%3E%20(schema)>), error)

GET/radar/bgp/routes/realtime

#### BGPRoutesUpstreams

##### [Get upstream composition time series for an AS](https://developers.cloudflare.com/api/go/resources/radar/subresources/bgp/subresources/routes/subresources/upstreams/methods/timeseries)

client.Radar.BGP.Routes.Upstreams.Timeseries(ctx, asn, query) (\*[BGPRouteUpstreamTimeseriesResponse](<https://developers.cloudflare.com/api/go/resources/radar#(resource)%20radar.bgp.routes.upstreams%20%3E%20(model)%20BGPRouteUpstreamTimeseriesResponse%20%3E%20(schema)>), error)

GET/radar/bgp/routes/upstreams/{asn}/timeseries

#### BGPRoutesPaths

##### [Get tier-1 path segments for an AS](https://developers.cloudflare.com/api/go/resources/radar/subresources/bgp/subresources/routes/subresources/paths/methods/list)

client.Radar.BGP.Routes.Paths.List(ctx, asn, query) (\*[BGPRoutePathListResponse](<https://developers.cloudflare.com/api/go/resources/radar#(resource)%20radar.bgp.routes.paths%20%3E%20(model)%20BGPRoutePathListResponse%20%3E%20(schema)>), error)

GET/radar/bgp/routes/paths/{asn}

#### BGPIPs

##### [Get announced IP address space time series](https://developers.cloudflare.com/api/go/resources/radar/subresources/bgp/subresources/ips/methods/timeseries)

client.Radar.BGP.IPs.Timeseries(ctx, query) (\*[BgpipTimeseriesResponse](<https://developers.cloudflare.com/api/go/resources/radar#(resource)%20radar.bgp.ips%20%3E%20(model)%20BGPIPTimeseriesResponse%20%3E%20(schema)>), error)

GET/radar/bgp/ips/timeseries

#### BGPIPsTop

##### [Get top ASes by announced IP space](https://developers.cloudflare.com/api/go/resources/radar/subresources/bgp/subresources/ips/subresources/top/methods/ases)

client.Radar.BGP.IPs.Top.Ases(ctx, query) (\*[BgpipTopAsesResponse](<https://developers.cloudflare.com/api/go/resources/radar#(resource)%20radar.bgp.ips.top%20%3E%20(model)%20BGPIPTopAsesResponse%20%3E%20(schema)>), error)

GET/radar/bgp/ips/top/ases

#### BGPRPKI

#### BGPRPKIASPA

##### [Get ASPA objects snapshot](https://developers.cloudflare.com/api/go/resources/radar/subresources/bgp/subresources/rpki/subresources/aspa/methods/snapshot)

client.Radar.BGP.RPKI.ASPA.Snapshot(ctx, query) (\*[BgprpkiaspaSnapshotResponse](<https://developers.cloudflare.com/api/go/resources/radar#(resource)%20radar.bgp.rpki.aspa%20%3E%20(model)%20BGPRPKIASPASnapshotResponse%20%3E%20(schema)>), error)

GET/radar/bgp/rpki/aspa/snapshot

##### [Get ASPA changes over time](https://developers.cloudflare.com/api/go/resources/radar/subresources/bgp/subresources/rpki/subresources/aspa/methods/changes)

client.Radar.BGP.RPKI.ASPA.Changes(ctx, query) (\*[BgprpkiaspaChangesResponse](<https://developers.cloudflare.com/api/go/resources/radar#(resource)%20radar.bgp.rpki.aspa%20%3E%20(model)%20BGPRPKIASPAChangesResponse%20%3E%20(schema)>), error)

GET/radar/bgp/rpki/aspa/changes

##### [Get ASPA count time series](https://developers.cloudflare.com/api/go/resources/radar/subresources/bgp/subresources/rpki/subresources/aspa/methods/timeseries)

client.Radar.BGP.RPKI.ASPA.Timeseries(ctx, query) (\*[BgprpkiaspaTimeseriesResponse](<https://developers.cloudflare.com/api/go/resources/radar#(resource)%20radar.bgp.rpki.aspa%20%3E%20(model)%20BGPRPKIASPATimeseriesResponse%20%3E%20(schema)>), error)

GET/radar/bgp/rpki/aspa/timeseries

#### BGPRPKIRoas

##### [Get RPKI ROA deployment time series](https://developers.cloudflare.com/api/go/resources/radar/subresources/bgp/subresources/rpki/subresources/roas/methods/timeseries)

client.Radar.BGP.RPKI.Roas.Timeseries(ctx, query) (\*[BgprpkiRoaTimeseriesResponse](<https://developers.cloudflare.com/api/go/resources/radar#(resource)%20radar.bgp.rpki.roas%20%3E%20(model)%20BGPRPKIRoaTimeseriesResponse%20%3E%20(schema)>), error)

GET/radar/bgp/rpki/roas/timeseries