MistyKnives / Kick4J

Java API targeted at accessing data from Kick.com's Private API
54 stars 3 forks source link

Followers #5

Closed kaptsanovb closed 1 year ago

kaptsanovb commented 1 year ago

Is there a way to get followers of a channel?

FenaPhoenix commented 1 year ago

This is something I am trying to work on Kaptsanovb, did you manage to get it all working? When adding the project in eclipse I receive a lot of errors unfortunately

kaptsanovb commented 1 year ago

I haven't tried using it , I'm not a Java dev 😅 I am also trying to find a way to get the follower and subscriber list of a specified channel, but it may not be possible until Kick makes an official api.

If you're signed in and load the page of a channel (i.e. kick.com/nibbleglue) there are 2 interesting requests:

and

Both of these seem to refer to the account that is signed in, there are headers that I could not wrap my head around but its probably what's carrying the account name to the API endpoint.

In "user" there is streamer_channel.subscription_enabled, and in "me" there is is_following and subscription

Hope this helps!

LauraRozier commented 1 year ago

I did a bunch of digging in the past, based on their Ziggy file: https://github.com/LauraRozier/kick_api/blob/master/docs/known_endpoints.txt

But there isn't much to read without auth tokens. Anyways, they are starting to open up their API and are accepting early adopters: https://developers.kick.com/

MistyKnives commented 1 year ago

Hello everyone, Currently there is no way per say to get the followers of a channel from my own knowledge.

There is an endpoint here: https://kick.com/api/v2/channels/{username}/users/{username}

This endpoint will return a variable called "following_since". If the user is not followed, it will return null. Here you can match against to see if a user is following. Other than that, there is no list of followers. i'm sure like @LauraRozier said, once they open their API up to public, it will be rebuilt and then you may be able to access the followers.

Hope this helps.

FenaPhoenix commented 1 year ago

Thanks MistyKnives, I have had someone build me something that returns my follower count. Until the API is released I'm just gonna use that ^^

Hello everyone, Currently there is no way per say to get the followers of a channel from my own knowledge.

There is an endpoint here: https://kick.com/api/v2/channels/{username}/users/{username}

This endpoint will return a variable called "following_since". If the user is not followed, it will return null. Here you can match against to see if a user is following. Other than that, there is no list of followers. i'm sure like @LauraRozier said, once they open their API up to public, it will be rebuilt and then you may be able to access the followers.

Hope this helps.

maxeth commented 1 year ago

How are you guys using any of the endpoints above? They put it behind a Cloudflare captcha. Unless I call them via a browser and complete the captcha I'm getting a HTTP 403 Forbidden.

MistyKnives commented 1 year ago

Hello @maxeth, We use methods such as okhttp3, headless browsers, etc to bypass the 403. There is no direct way to get into the current api due to cloudflare. Until the public api is released this is the only way to access it.

thanks.