UNPKG

tikinfo-api

Version:

Lightweight unofficial TikTok API for Node.js with zero dependencies

26 lines (21 loc) 456 B
# TikInfo API ```sh npm i tikinfo-api ``` ## Example of use: ```js 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); } })(); ```