Twitch channel API
A Twitch channel by login: bio, follower count, partner or affiliate, whether it is live (title, game, viewers), the last broadcast and social links, as a Helix User.
GET /v1/twitch/users/{handle}1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/twitch/users/ninja",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "data": [ { "id": "19571641", "login": "ninja", "display_name": "Ninja", "type": "", "broadcaster_type": "partner", "description": "Just want to make people happy. Co-Founder @DrinkNutcase. ", "profile_image_url": "https://static-cdn.jtvnw.net/jtv_user_pictures/90d40495-f467-4911-9035-72d8d10a49c5-profile_image-300x300.png", "offline_image_url": "https://static-cdn.jtvnw.net/jtv_user_pictures/6d03c501-0b93-4c15-b11e-880a2e1db4d1-channel_offline_image-1920x1080.png", "banner_image_url": "https://static-cdn.jtvnw.net/jtv_user_pictures/36b341d1-0ee2-4cb2-ae00-361740b0051d-profile_banner-480.png", "created_at": "2011-01-16T04:31:20.024666Z", "follower_count": 19222681, "is_live": false, "stream": null, "last_broadcast": { "id": "322393847642", "title": "BLEV BROS SPORTS SHOW WEEK 9 RECAP | GO LIONS | PRAYERS FOR JACK CAMPBELL (No I am not playing GTA VI)", "started_at": "2026-11-21T15:10:03.755238Z", "game_name": "Just Chatting" }, "channel_title": "BLEV BROS SPORTS SHOW WEEK 9 RECAP | GO LIONS | PRAYERS FOR JACK CAMPBELL (No I am not playing GTA VI)", "channel_game_name": "Just Chatting", "social_links": [ { "name": "instagram", "title": "Instagram", "url": "https://www.instagram.com/ninja" }, { "name": "x", "title": "X", "url": "https://x.com/ninja" }, "… 2 more" ], "url": "https://www.twitch.tv/ninja" } ]}Parameters
| Name | Type | Description |
|---|---|---|
handlepath · required | string | Twitch login (username) or channel URL. Example: ninja. |
Response fields
200 with a TwitchUserResponse, in the shape of Twitch’s Helix API objects.
| Field | Type | Description |
|---|---|---|
data | TwitchUser[] |
Status codes
| Status | Meaning |
|---|---|
200 | The channel. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | No Twitch channel or clip by that name. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | Twitch is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Questions
Is the follower count exact?
Yes, it is the total Twitch reports.
Twitch is a trademark of Twitch Interactive, Inc. We are not affiliated with or endorsed by Twitch.