@hlpi/tiktok-api
v1.0.10
Published
Tiktok api get data user, video, comment
Downloads
30
Readme
Installation
npm i @hlpi/tiktok-api
TypeScript
import { HLPTiktokApi } from "@hlpi/tiktok-api";
Examples
Fetch user info
import { HLPTiktokApi } from "@hlpi/tiktok-api";
(async () => {
const tiktok = new HLPTiktokApi();
const data = await tiktok.getUserInfo({
uniqueId: "redbull",
});
console.log(data);
})();
Fetch video
import { HLPTiktokApi } from "@hlpi/tiktok-api";
(async () => {
const tiktok = new HLPTiktokApi();
const data = await tiktok.getListVideo({
id: "id user",
count: 20,
maxCursor: "",
minCursor: "0",
});
console.log(data);
})();
Fetch comment
import { HLPTiktokApi } from "@hlpi/tiktok-api";
(async () => {
const tiktok = new HLPTiktokApi();
const data = await tiktok.getComment({
link: `https://www.tiktok.com/@mailystyleshop8/video/7223672609735494918`,
count: 1,
cursor: 0,
});
console.log(data);
})();
Documentation
You can find the documentation on the website.