An RDAP client library

7 releases

new 0.0.14 Nov 26, 2023
0.0.13 Aug 7, 2023
0.0.12 Jul 14, 2023
0.0.9 Jun 24, 2023
Download history 24/week @ 2023-08-10 14/week @ 2023-08-17 13/week @ 2023-08-24 5/week @ 2023-08-31 20/week @ 2023-09-07 9/week @ 2023-09-14 12/week @ 2023-09-21 18/week @ 2023-09-28 11/week @ 2023-10-05 9/week @ 2023-10-12 14/week @ 2023-10-19 15/week @ 2023-10-26 8/week @ 2023-11-02 8/week @ 2023-11-09 18/week @ 2023-11-16 60/week @ 2023-11-23

101 downloads per month
Used in 2 crates



ICANN RDAP Client Library

This is a client library for the Registration Data Access Protocol (RDAP) written and sponsored by the Internet Corporation for Assigned Names and Numbers (ICANN). RDAP is standard of the IETF, and extensions to RDAP are a current work activity of the IETF's REGEXT working group. More information on ICANN's role in RDAP can be found here.


Add the library to your Cargo.toml: cargo add icann-rdap-client

Also, add the commons library: cargo add icann-rdap-common.

Both icann-rdap-common and icann-rdap-client can be compiled for WASM targets.


use icann_rdap_common::client::ClientConfig;
use icann_rdap_common::client::create_client;
use icann_rdap_client::query::request::rdap_request;
use icann_rdap_client::query::qtype::QueryType;
use icann_rdap_client::RdapClientError;
use std::str::FromStr;
use tokio::main;

async fn main() -> Result<(), RdapClientError> {

    // create a query
    let query = QueryType::from_str("")?;
    // or
    let query = QueryType::from_str("icann.org")?;

    // create a client (from icann-rdap-common)
    let config = ClientConfig::default();
    let client = create_client(&config)?;

    // issue the RDAP query
    let base_url = "https://rdap-bootstrap.arin.net/bootstrap";
    let response = rdap_request(base_url, &query, &client).await?;



Licensed under either of


Unless you explicitly state otherwise, any contribution, as defined in the Apache-2.0 license, intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed pursuant to the Apache License, Version 2.0 or the MIT License referenced as above, at ICANN’s option, without any additional terms or conditions.


~387K SLoC