Skip to content

add Cloudflare Radar API queries support - #50

Merged
digizeph merged 1 commit into
mainfrom
radar
Jul 24, 2023
Merged

add Cloudflare Radar API queries support#50
digizeph merged 1 commit into
mainfrom
radar

Conversation

@digizeph

Copy link
Copy Markdown
Member

Overview

This PR 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.

@digizeph digizeph changed the title add cloudflare radar API queries support Jul 21, 2023
@digizeph
digizeph merged commit 87b2d1a into main Jul 24, 2023
@digizeph
digizeph deleted the radar branch July 24, 2023 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant