Skip to main content

fetch_followed_channels

Function fetch_followed_channels 

Source
pub async fn fetch_followed_channels(
    token: &str,
) -> Result<Vec<FollowedChannel>>
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 channels = fetch_followed_channels(token).await?;
for ch in &channels {
    let status = match &ch.livestream {
        Some(stream) if stream.is_live => format!("🔴 {} viewers", stream.viewer_count),
        _ => "Offline".to_string(),
    };
    println!("{}: {}", ch.slug, status);
}