#steam #resources #api #api-bindings

steam_store_api

Safe Rust bindings for the Steam Store API

1 unstable release

0.1.0 Jan 4, 2024

#1148 in Web programming

Download history 1/week @ 2023-12-31 3/week @ 2024-02-18 9/week @ 2024-02-25 5/week @ 2024-03-10 78/week @ 2024-03-24 9/week @ 2024-03-31

92 downloads per month

MIT license

31KB
781 lines

steam_store_api

A wrapper for the Steam Store API in Rust.

This is based on the unofficial Steam Storefront resource, which provides methods to retrieve product information from the platform.

Example

#
use anyhow::Result;
use steam_store_api::prelude::*;

#[tokio::main]
async fn main() -> Result<()> {
    let client = SteamBuilder::new()
        .with_country_code("US")
        .with_language(&Language::English)
        .build()?;
    let app = client.app(&219990_u64).await?;
    println!("{:#?} - {:#?}", &app.app_id, &app.name);
    anyhow::Ok(())
}

lib.rs:

Steam Store

An API client for the unofficial Steam Storefront resource, which provides methods to retrieve product information from the platform.

Example


#
use anyhow::Result;
use steam_store_api::prelude::*;

#[tokio::main]
async fn main() -> Result<()> {
    let client = SteamBuilder::new()
        .with_country_code("US")
        .with_language(&Language::English)
        .build()?;
    let app = client.app(&219990_u64).await?;
    println!("{:#?} - {:#?}", &app.app_id, &app.name);
    anyhow::Ok(())
}

Dependencies

~7–21MB
~342K SLoC