How to grab channel/users logo image

So I have googled all over the place seen alot of old outdated posts including on here about how to do this but none of the codes seam to work anymore

what am trying to do is access a persons details using URL only if possible for example: https://api.twitch.tv/kraken/channels/wpgn

then get my logo from my page then display it on a list any ideas at all or updated code that works?

Thanks alot

Kraken is deprecated and will be removed in Feb

“For a page” I assume you mean a website

First your website backend will need to generate, store, reuse to close to expiration an app access token (also called “Client Credentials”

Then your website can use that token to call the Get Users API to lookup a user by login (or ID) and then extra the Profile Image URL

will this work for other channels or just for mine ? as am trying to make a listing page were I can add peoples live streams and it adds there image on the listing its not just for me.

Sure just pass whatever ID or login you want.

You can even lookup multiple people at once

https://api.twitch.tv/helix/users?login=twitch&login=twitchdev

Will return, for example:

{
  "data": [
    {
      "broadcaster_type": "partner",
      "created_at": "2007-05-22T10:39:54Z",
      "description": "Twitch is where we come together live to make our own entertainment. Unabashed fans, welcome home",
      "display_name": "Twitch",
      "id": "12826",
      "login": "twitch",
      "offline_image_url": "https://static-cdn.jtvnw.net/jtv_user_pictures/bdc19970-3a3b-4516-9f23-4203d59f0a5d-channel_offline_image-1920x1080.png",
      "profile_image_url": "https://static-cdn.jtvnw.net/jtv_user_pictures/e3bf8782-a962-4829-afd0-6cc9c3853778-profile_image-300x300.png",
      "type": "",
      "view_count": 334996079
    },
    {
      "broadcaster_type": "partner",
      "created_at": "2016-12-14T20:32:28Z",
      "description": "Supporting third-party developers building Twitch integrations from chatbots to game integrations.",
      "display_name": "TwitchDev",
      "id": "141981764",
      "login": "twitchdev",
      "offline_image_url": "https://static-cdn.jtvnw.net/jtv_user_pictures/3f13ab61-ec78-4fe6-8481-8682cb3b0ac2-channel_offline_image-1920x1080.png",
      "profile_image_url": "https://static-cdn.jtvnw.net/jtv_user_pictures/8a6381c7-d0c0-4576-b179-38bd5ce1d6af-profile_image-300x300.png",
      "type": "",
      "view_count": 10944104
    }
  ]
}

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