Options
All
  • Public
  • Public/Protected
  • All
Menu

Project @stu43005/holodex-api

Holodex API client

NPM

A Javascript library for the Holodex API.

Installing

Using npm:

$ npm install @stu43005/holodex-api

Getting Started

import { HolodexApiClient } from '@stu43005/holodex-api';

const client = new HolodexApiClient({
  apiKey: '' // Provide your personal API KEY. You can acquire a API KEY via the Account Settings page.
});

// Get Usada Pekora's channel info
client.getChannel('UC1DCedRgGHBdm81E1llLhOQ')
  .then(function (channel) {
    // handle result
    console.log(channel.name); // Pekora Ch. 兎田ぺこら
    console.log(channel.englishName); // Usada Pekora
    console.log(channel.subscriberCount); // 1540000
  });

// Get Hololive's stream
client.getLiveVideos({ org: 'Hololive' })
  .then(function (videos) {
    // handle result
    console.log(videos);
  });

Documentation

Documentation can be found here.

License

MIT

Generated using TypeDoc