How do I get the user_id, because the links I find don't seem to work

You need to register an application via dev.twitch.tv to get a Client ID. This needs to be sent in the HTTP headers with the request. You cannot do this in browser without extensions.