#Information This package is for getting the current livestream information of the twitch streamer or getting the information of the user.
No reqiures API KEY ;) #Sample Getting stream
const simpleTwitch = require("simple-twitch-info");
simpleTwitch.getStream("cFyt").then(console.log).catch(console.error);
Output
{
success: true,
error: null,
live: true,
name: 'Eray - Twitch',
title: 'erkenci',
embedURL: 'https://player.twitch.tv/?channel=eray&player=facebook&autoplay=true&parent=meta.tag',
thumbnails: [
'https://static-cdn.jtvnw.net/previews-ttv/live_user_eray-80x45.jpg',
'https://static-cdn.jtvnw.net/previews-ttv/live_user_eray-320x180.jpg',
'https://static-cdn.jtvnw.net/previews-ttv/live_user_eray-640x360.jpg'
],
upload: 2022-08-04T13:01:26.000Z,
start: 2022-08-04T13:01:26.000Z,
_end: 2022-08-04T17:01:26.000Z,
_isLiveBroadcast: true
}
Getting user
const simpleTwitch = require("simple-twitch-info");
simpleTwitch.getUser("cFyt").then(console.log).catch(console.error);
Output
{
username: 'cfyt',
displayName: 'cFyt',
description: 'https://cFyt.me - mail@cFyt.me',
url: 'https://www.twitch.tv/cfyt',
image: 'https://static-cdn.jtvnw.net/jtv_user_pictures/2aac32a9-40c1-42cc-8ce0-a94aa744760f-profile_image-300x300.png',
player: 'https://player.twitch.tv/?channel=cfyt&player=facebook&autoplay=true&parent=meta.tag'
}