1.0.3 • Published 3 years ago

@stu43005/holodex-api v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago