Skip to content

Fetch Twitch channel data and emotes (Includes BTTV, FFZ and 7TV)

Notifications You must be signed in to change notification settings

dotabod/twitch-fetcher

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twitch Fetcher

Fetch for Twitch channel and Emotes. (Includes BTTV, FFZ and 7TV)

⭐ Features

  • Fetch for Twitch channel
  • Fetch for Twitch emotes
  • Fetch for BetterTTV emotes (Using bttv's API)
  • Fetch for FFZ emotes (Using ffz's API)
  • Fetch for 7TV emotes (Using my own unofficial GQL API for 7TV)

🌲 Get started

Initialize client

const TwitchFetcher = require("twitch-fetcher");

var fetcher = new TwitchFetcher({
    clientId: "01234abcde",
    OAuth: "56789fghij"
});

Using as ES Module

import TwitchFetcher from "twitch-fetcher";

let fetcher = new TwitchFetcher({
    clientId: "01234abcde",
    OAuth: "56789fghij"
});

📖 Documentation

Fetch 7TV Emotes

// By username
await fetcher.getEmotesByName("sammwy", {"7tv": true});

// By ID
await fetcher.getEmotesByID("0123456abcdefg", {"7tv": true});

Fetch BTTV Emotes

// By username
await fetcher.getEmotesByName("sammwy", {bttv: true});

// By ID
await fetcher.getEmotesByID("0123456abcdefg", {bttv: true});

Fetch FFZ Emotes

// By username
await fetcher.getEmotesByName("sammwy", {ffz: true});

// By ID
await fetcher.getEmotesByID("0123456abcdefg", {ffz: true});

Fetch Twitch Emotes

// By username
await fetcher.getEmotesByName("sammwy", {twitch: true});

// By ID
await fetcher.getEmotesByID("0123456abcdefg", {twitch: true});

Fetch Twitch User

// By username
await fetcher.getUserData({username: "sammwy"});

// By ID
await fetcher.getUserData({id: "0123456abcdefg"});

❤️ Donate

Support all EnhancedTwitch's projects making a Donation in PayPal, Ko-fi or Patreon

About

Fetch Twitch channel data and emotes (Includes BTTV, FFZ and 7TV)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%