Get the broadcaster_id and the user_id of any channel with the name

This token requires a user token with the scope user:read:subscriptions as the error reported. And that token ahs to belong toe user_id

You might have an App Access Token. Which is the wrong token type for this endpoint.

Different endpoints have different requirements for what the token allows.