Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
T

twitch_api

> 编程语言
Open source

Rust library for talking with the Twitch API aka. "Helix", TMI and more! Use Twitch endpoints fearlessly!

184 stars0 likes0 views
WebsiteGitHub

About

Rust library for talking with the Twitch API aka. "Helix", TMI and more! Use Twitch endpoints fearlessly!

Twitch API | Rust library for talking with the new Twitch API aka. "Helix", EventSub and more!

github crates-io docs-rs-big discord

See documentation for more info.

You can see current unpublished docs for the main branch here: local-docs

See examples for examples. If you want to run them locally, make sure you get the git submodules first.

rust
use twitch_api::helix::HelixClient;
use twitch_api::twitch_oauth2::{AccessToken, UserToken};

#[tokio::main]
async fn main() -> Result> {
    // Create the HelixClient, which is used to make requests to the Twitch API
    let client: HelixClient = HelixClient::default();
    // Create a UserToken, which is used to authenticate requests
    let token = UserToken::from_token(&client, AccessToken::from("mytoken")).await?;

    println!(
        "Channel: {:?}",
        client.get_channel_from_login("twitchdev", &token).await?
    );

    Ok(())
}

Notes

This crate was previously available as twitch_api2 and has since been renamed to twitch_api

Goals

This crate aims to target

  • Helix
    • See implemented endpoints
  • EventSub
    • See implemented eventsub Helix endpoints
  • Extensions
    • No functionality implemented yet
  • PubSub (without a client)
    • See implemented topics
    • PubSub is deprecated, replaced with EventSub websockets

There are no current plans to support

  • GraphQL
  • Drops (except what is in Helix)
  • Twitch IRC Chat, use museun/twitch_message or robotty/twitch-irc
  • Authentication, use twitch-rs/twitch_oauth2
  • Undocumented Helix endpoints, i.e endpoints mobile Twitch app uses. Including working "hidden" endpoints

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rustasynchronoushelixpubsubrust

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言