Check if a Twitch streamer is currently live
This API checks if a Twitch user is currently streaming and returns their live status and stream information.
No API keys required
Returns JSON response with stream status
Includes thumbnails URLs and embed links
Make a GET request to the following URL:
GET https://www.henrikhjelm.se/api/twitch.php?user={username}
{
"user": "username",
"live": "yes",
"embed": "https://player.twitch.tv/?channel=username",
"image1": "https://static-cdn.jtvnw.net/previews-ttv/live_user_username-1280x720.jpg",
"image2": "https://static-cdn.jtvnw.net/previews-ttv/live_user_username-640x360.jpg",
"image3": "https://static-cdn.jtvnw.net/previews-ttv/live_user_username-320x180.jpg",
"description": "Stream title"
}
{
"user": "username",
"live": "no",
"embed": "null",
"image1": "https://www.henrikhjelm.se/api/No-image-found.jpg",
"image2": "https://www.henrikhjelm.se/api/No-image-found.jpg",
"image3": "https://www.henrikhjelm.se/api/No-image-found.jpg",
"description": "none"
}