Skip to content

V0.5.0 Cloudflare Radar API support

Compare
Choose a tag to compare
@digizeph digizeph released this 26 Jul 19:31
· 37 commits to main since this release
db4988c

Overview

This release adds support for querying Cloudflare Radar new BGP routing statistics and prefix-to-origin mapping APIs.

This feature is powered by radar-rs: 0.0.2, an unofficial Cloudflare Radar API Rust SDK. This library is still in very early stage.

Usage

We added a new monocle radar command group in this pull request, which contains the following to subcommands:

  • monocle radar stats [QUERY]: get routing stats (like prefix count, rpki invalid count) for a given country or ASN.
  • monocle radar pfx2as [QUERY] [--rpki-status valid|invalid|unknown]: get prefix to origin mapping for a given prefix or ASN
image image

API Token Required

We do not provide data access in the tool. Users who want to access this data are required to obtain a Cloudflare API token (see this tutorial) and set the environment variable CF_API_TOKEN with the token content. Commands will fail should the token be missing or invalid.

Data License

The use of the Cloudflare Radar data is under CC BY-SA 4.0 license.

This library does not provide any direct access to the API data.

See Cloudflare Radar about page for more details.

What's Changed

Full Changelog: v0.4.2...v0.5.0