tikinfo-api
v0.0.6
Published
Lightweight unofficial TikTok API for Node.js with zero dependencies
Downloads
209
Maintainers
Readme
TikInfo API
npm i tikinfo-apiExample of use:
const TikInfo = require('tikinfo-api');
// Create an instance of the API
const api = new TikInfo();
// TikTok username to fetch
const username = 'tiktok';
// Fetch user data
(async () => {
const result = await api.getUser(username);
if (result.success) {
console.log('User info:', result.data);
} else {
console.error('Error fetching user:', result.error);
}
})();