Twitch API User Profile Banner

So, I can send and receive my requests just fine. The JSON returns and I get an attribute for profile image URL, but I don’t get any attribute for the profile banner image URL. Could anyone tell me how to go about getting that? Thank you.

For example: I use this request URL and set my headers
https://api.twitch.tv/helix/users?login=Jweeks123

I get this as a response:
{ "data": [ { "id": "72750863", "login": "jweeks123", "display_name": "jweeks123", "type": "", "broadcaster_type": "affiliate", "description": "", "profile_image_url": "https://static-cdn.jtvnw.net/jtv_user_pictures/79013c09-6e8c-4dcf-bcf0-5c74b0bb06d9-profile_image-300x300.png", "offline_image_url": "", "view_count": 853 } ] }

If you click on a user profile and look at the top, you see the profile banner. Where does that information come from?

Thank you in advance for any help.

The banner isn’t available through the Helix API, you’d need to use the deprecated v5 Get Channel endpoints https://dev.twitch.tv/docs/v5/reference/channels#get-channel-by-id which will give you a profile_banner field containing the URL for the banner.

If you have a use case for that data being made available in helix you should suggest it on UserVoice https://twitch.uservoice.com/forums/310213-developers but honestly I don’t think the majority of users ever see those images, or even know they exist, so it may be that Twitch doesn’t intend to support them going forward (that’s just speculation at this point though).

1 Like

When performing a request using this info, I get this:

{“error”:“Gone”,“status”:410,“message”:“The API version you are looking for is in another castle. See https://dev.twitch.tv/docs”}

Does this mean, it just can’t be retrieved anymore?

You need to use the Accept: application/vnd.twitchtv.v5+json header.

Kraken defaults to v3 (which has now been removed), so you need that header to request v5 (deprecated, but not yet removed)

1 Like

That did it. Thank you. Now I just have to integrate it all together.

Is there a way to close topics on this forum, or is it just automatic after a month has passed? Issue is resolved for anyone else having the issue at hand.

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