Getting information about a channel

Hello. Let me say at once that I spent the whole day on the documentation site, this forum and google. But, unfortunately, it did not help me, so I ask for your help. (Yes, I am stupid.)

I have a Client-id, Secret-id and even a token. I just need to get the Title broadcast and the current game.

Most of the messages I have encountered refer to older versions of the API. Maybe that’s also why I haven’t been able to achieve anything.

I have a PHP server that will generate a stub for the stream. But by design I need a title and a game. I really hope for your help.

Channel Title and category can be obtained from Get Channel Information:

1 Like

Yes, I was there. I saw an example query on the right, but I didn’t understand what it was or what to do with it.
Then below was an example of an array, but what examples I took from other sites didn’t help me either. And nothing printed out.

To get the channel information for

First convert Twitch to a user ID with Get Users

That’ll give you an an object with an array one one entry and you’ll find the ID is 12826

Then you use that on Get channel Info

Which will yield, an object with an array one one entry

  "data": [
      "broadcaster_id": "12826",
      "broadcaster_language": "en",
      "broadcaster_login": "twitch",
      "broadcaster_name": "Twitch",
      "delay": 0,
      "game_id": "509658",
      "game_name": "Just Chatting",
      "tags": [
      "title": "Twitch Public Access: AAPI Heritage Month w/ @merrykish @rayapollo @kaycem @daydreamerdan"

Then you just parse out the JSON as needed

1 Like

When I click on the link I get an error. I’m authorized on the Twitch site — {“error”:“Unauthorized”,“status”:401,“message”:“OAuth token is missing”}

You cannot click on the link.

You need to make the request via “code”
And attache a clientID and access token as documented.

I jsut listed the steps/calls needed to get the required information

1 Like

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