Twitch
Twitch Profile API
A Twitch channel's profile: display name, description, avatar and banner, partner and affiliate status, follower count, linked social accounts, and whether the channel is live right now with its current stream. Costs 1 credit per request.
POST/api/v1/twitch/profile
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsonhandlestringrequiredTwitch username, @handle, or a twitch.tv/<user> URL.
Example: shroud
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
result = client.twitch.profile("shroud")
print(result)Response
"id": "37402112",
"login": "shroud",
"display_name": "shroud",
"description": "I'm back baby",
"created_at": "2012-11-03T15:50:32.87847Z",
"profile_image_url": "https://static-cdn.jtvnw.net/jtv_user_pictures/c754eebf-745b-4e0a-814a-10bcaecaabbc-profile_image-300x300.png",
"banner_image_url": "https://static-cdn.jtvnw.net/jtv_user_pictures/dbee25e8-55b7-4565-87f0-e9d4661dcc66-profile_banner-480.jpeg",
"primary_color_hex": "00ADFF",
"is_partner": true,
"is_affiliate": false,
"follower_count": 11288357,
"is_live": false,
"stream": null,
},
"response_time": 1208
}