A Node.js module for accessing JKT48 data from the v2.jkt48connect.my.id API.
Documentation: For complete details about data output and API usage, visit docs.jkt48connect.my.id
npm install @jkt48/core
This package provides easy access to JKT48 data through the following features:
- Get all JKT48 members
- Get member details by name
- Get member birthdays
- Get JKT48 events information
- Get recent activities
- Get recent activity details
- Get live information
- Get live YouTube information
- Get live IDN information
- Get live Showroom information
- Get YouTube content
- Get news information
- Get news details by ID
- Get theater information
- Get theater details by ID
- Get all replay theater & live
- Get all chat stram for idn live & showroom
- ApiKey Validation
All functions in this package require an API key that should be passed as a parameter.
const jkt48Api = require('@jkt48/core');
// Example: Get all JKT48 members
async function getMembers() {
try {
const apiKey = 'your-api-key-here';
const members = await jkt48Api.members(apiKey);
console.log(members);
} catch (error) {
console.error(error.message);
}
}
getMembers();
You can use the following free API keys provided by the JKT48Connect team:
J-D55B
J-QV0Z
For custom API keys with various plans such as Premium and PremiumPlus (Premium+), please contact Valzy on WhatsApp:
- WhatsApp: wa.me/6285701479245
const members = await jkt48Api.members(apiKey);
const memberName = 'Feni';
const memberDetail = await jkt48Api.memberDetail(memberName, apiKey);
const birthdays = await jkt48Api.birthday(apiKey);
const events = await jkt48Api.events(apiKey);
const recent = await jkt48Api.recent(apiKey);
const liveId = '123456';
const recentDetail = await jkt48Api.recentDetail(liveId, apiKey);
const live = await jkt48Api.live(apiKey);
const liveYoutube = await jkt48Api.liveYoutube(apiKey);
const liveIdn = await jkt48Api.liveIdn(apiKey);
const liveShowroom = await jkt48Api.liveShowroom(apiKey);
const youtube = await jkt48Api.youtube(apiKey);
const news = await jkt48Api.news(apiKey);
const newsId = '123456';
const newsDetail = await jkt48Api.newsDetail(newsId, apiKey);
const theater = await jkt48Api.theater(apiKey);
const theaterId = '123456';
const theaterDetail = await jkt48Api.theaterDetail(theaterId, apiKey);
const replay = await jkt48Api.replay(apiKey);
const chatStream = await jkt48Api.chatStream(username, slug, apiKey);
const chatStreamSR = await jkt48Api.chatStreamSR(roomId, apiKey);
const check = await jkt48Api.check(apiKey);
This package throws errors with descriptive messages when:
- API key is not provided
- Required parameters are missing
- The API returns an error
- Network errors occur
Example of error handling:
try {
const members = await jkt48Api.members(apiKey);
console.log(members);
} catch (error) {
console.error(`Error: ${error.message}`);
}
This module was created by the JKT48Connect team, which consists of several specialized teams:
- J-Force: Focuses on package and module development
- Zenova: Focuses on website and bot development (WhatsApp/Discord/Telegram)
- JKT48Connect: The parent team that oversees all projects
All these teams were founded by Valzyy, who created the entire ecosystem.
MIT
Contributions, issues, and feature requests are welcome!