ddapi-rs

Crates.ioddapi-rs
lib.rsddapi-rs
version0.9.3
created_at2024-09-30 06:24:57.255632+00
updated_at2025-12-09 08:11:18.644046+00
descriptionA simple Rust library to get data from DDNet and DDStats APIs
homepage
repositoryhttps://github.com/ByFox213/ddapi-rs
max_upload_size
id1391362
size114,441
ByFox (ByFox213)

documentation

README

A simple Rust library to get data from DDNet and DDStats APIs

What is this?

This library lets you easily access:

  • Player stats and rankings
  • Server information
  • Game data from DDNet
  • Statistics from DDStats

Installation

  cargo add ddapi-rs -F ddstats

Quick Example

use ddapi_rs::prelude::*;

#[tokio::main]
async fn main() {
    let ddapi = DDApi::new();
    let player = "ByFox";
    let result = ddapi.s_player(player).await; // ddstats.tw
    println!("{}: {}", player, result.unwrap().url());
}

Features

  • ddstats - Get data from ddstats.tw
  • ddnet - Get data from ddnet.org
  • cache - Memory cache
  • full - All features
Commit count: 33

cargo fmt