getLiveAndUpcomingVideos (String)

Method that makes a GET request to https://holodex.net/api/v2/live

Returns

A List of Video objects matching the channel ID.

Parameters

Name
Type

channelId

String

Usage Example

HolodexClient holodexClient = new HolodexClient("HOLODEX_API_KEY");

ObjectMapper objectMapper = JsonMapper.builder()
                .addModule(new JavaTimeModule())
                .build();

List<Video> videos = holodexClient
    .getLiveAndUpcomingVideos("UCs86f6tbWatcKVt7emv9hfQ");

System.out.println(objectMapper
    .writerWithDefaultPrettyPrinter()
    .writeValueAsString(videos));

Result Example

[ {
  "id" : "EheqWg4LOLA",
  "title" : "【 睡眠導入 】聞くと眠くなるお姉さんの朗読 ラジオ 【 無人配信 】24/7 Unmanned Japanese story reading aloud 【 VTuber 河崎翆 作業用 安眠用 】",
  "type" : "stream",
  "topic_id" : "asmr",
  "published_at" : "2022-08-20T12:03:14.000Z",
  "available_at" : "2022-08-20T12:39:08.000Z",
  "duration" : 0,
  "status" : "live",
  "start_scheduled" : "2022-08-20T12:05:00.000Z",
  "start_actual" : "2022-08-20T12:39:08.000Z",
  "live_viewers" : 8,
  "songcount" : 0,
  "channel" : {
    "id" : "UCs86f6tbWatcKVt7emv9hfQ",
    "name" : "河崎 翆 ch / Kawasaki Sui ch.",
    "english_name" : "Kawasaki Sui",
    "type" : "vtuber",
    "photo" : "https://yt3.ggpht.com/ytc/AGIKgqP6pxoQgEhhcLn9BDukBfcaFiJ1ggRYcQjthULO=s800-c-k-c0x00ffffff-no-rj",
    "org" : "Independents",
    "suborg" : "ZZ",
    "inactive" : false
  }
} ]

Last updated