Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including twitch-getter with all npm packages installed. Try it out:

var twitchGetter = require("twitch-getter")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

twitch-getter v1.1.7

Get data from twitch's own API


npm i twitch-getter

How to use

This package utilizes both Twitch's "New API" and "V5" API.
    // Package allows you to choose between both the V5 api and New API
    import { NewTwitchAPI, V5TwitchAPI } from 'newtwitchapi'

    (async() => {
    // twitchAPI NEEDS your twitch's clientID in order to work
    const newTwitchApi = new NewTwitchAPI(client_id: string)

    const response = await newTwitchApi.GetNewStreams({
      language: "en"
    // Do something with the response
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free