Skip to main content

fetch_followed_channels

Function fetch_followed_channels 

Source
pub async fn fetch_followed_channels(
    token: &str,
) -> Result<FollowedChannelsResponse>
Expand description

Fetch the list of channels the authenticated user follows.

⚠️ Unofficial API — This uses Kick’s internal v2 API (/api/v2/channels/followed), not the public API. It may change or break without notice.

Requires a valid session/bearer token (the same token used when logged in to kick.com). This is not an OAuth App Access Token from the public API — it is the session token from your browser cookies.

Uses curl as a subprocess to bypass Cloudflare TLS fingerprinting.

§Example

use kick_api::fetch_followed_channels;

let token = "your_session_token";
let resp = fetch_followed_channels(token).await?;
for ch in &resp.channels {
    let status = if ch.is_live {
        format!("LIVE ({} viewers)", ch.viewer_count)
    } else {
        "Offline".to_string()
    };
    println!("{}: {}",
        ch.user_username.as_deref().unwrap_or("?"), status);
}