Follow Not Found

username, userId = user(oauth)
channelId = getChannelId(name)

URL = f"{userId}/follows/channels/{channelId}"
Headers = {"Accept": "application/vnd.twitchtv.v5+json", "Client-ID": clientId, "Authorization": "OAuth " + oauth}

r = requests.get(URL, headers=Headers)

data = r.json()

This code returns the error : {'error': 'Not Found', 'status': 404, 'message': 'Follow not found'}
Any solution? Using twitch api v5

@BarryCarlyon Any clue?

userId does not follow channelId

This is the correct response as userId does not follow channelId

it’s working as expected…

what way is it suppose to go?

i want to follow another account

I dont’ understand the question, you tested if userID follows channelID, and userID doesn’t.

IE the authentication user, say PrintHam, doesn’t follow Lirik on Twitch.

Kraken didn’t return a follow object

Checks if a specified user follows a specified channel. If the user is following the channel, a follow object is returned.

As PrintHam doesn’t follow Lirik.

Additionally if you were calling helix, you’d get an empty data array which would show the same (no follow found between to two IDs)

Ohhhh it does that. I thought it would make a user follow another channel. Do you know how to do this?

Then you need to call the “Create Follows” End point, not the “Get Follow Status” endpoint


Okay one second, I will try it and let you know what happens I read the documentation for this link. It says I need the parameters from_id to id. Where do I put it in the link?

Like this? URL = f"{userId}/to_id={channelId}" @BarryCarlyon

  1. There is no need to ping me in a reply, since the reply does that anyway.

As per the documentation

from_id and to_id are query string parameters

So its

or JSON as the example shows

curl -X POST '' \
-H 'Authorization: Bearer 2gbdx6oar67tqtcmt49t3wpcgycthx' \
-H 'Client-Id: wbmytr93xzw8zbg0p1izqyzzc5mbiz' \
-H 'Content-Type: application/json' \
--data-raw '{"to_id": "41245072","from_id": "57059344"}'

This doesn’t exactly follow them :frowning:

Whats the error response?

from_id would be the user ID for PrintHam
to_id would be the user ID of the channel you want to follow (eg Lirik)

from_id would also need to match the ID of the user in user access token/bearer you provide

No errors, but it doesn’t follow the user

What is the error/body response when you make the API request?

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