Skip to main content

Premium Subscription

You can use the library to claim a premium subscription for your account. This will allow you to download videos in 1080p quality and access other premium features.

const { user } = await client.claimPremium();
console.log('Claimed premium subscription for', user.name);
Output
Claimed premium subscription for JokelBaf
note

Hanime API will raise 401 error if you try to claim premium with already active subscription, or without having enough coins. Make sure to handle this in your code properly.