How to get the id of something?

Use the /users?login=<channelname> endpoint

EDIT: you can also get multiple at once by comma delimiting the channel names