How to get correct follows of user?

String url = “” + name;


    con.setRequestProperty("Accept", "application/vnd.twitchtv.v5+json");
    con.setRequestProperty("Client-ID", "xv***************sjjhq3nzm");

I am trying to use this request but getting 400 bad request
is user ID == name of channel or user ID == Client-ID? Have tried both but did not work for me, what i am doing wrong?

That is the wrong URL, and param for the v5 endpoint

For the Helix endpoint as you can see from the docs Reference | Twitch Developers the from_id field is the channels ID, such as 23161357 as used in the example. User ID and Client ID are 2 separate things.

1 Like

Thank you for reply.
Where i can find my channel ID? :face_with_monocle:
Is only way to get ID is and take ID from JSON?

v5 is deprecated, so you should use the Helix Get Users endpoint

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.