Dapatkan data profile, postingan, comment, dan lainnya dengan lengkap dan konsisten.
Dapatkan data profile, postingan, comment, dan lainnya dengan lengkap dan konsisten.
/v1/social-media:tiktok-scraper/profile/:username10m cache1 paramchecking key…// npm i zpi-sdk
import { ZpiClient } from "zpi-sdk";
const client = new ZpiClient({ apiKey: "zpi_xxxxxxxxxxxxxxxxxxxxxxxx" });
const data = await client.run("social-media:tiktok-scraper", "profile", {
"username": "tiktok"
});
console.log(data);/v1/social-media:tiktok-scraper/profile/:usernameusernamestringrequiredin pathcurl -X GET "https://api-preview.zapi.ink/v1/social-media:tiktok-scraper/profile/tiktok" \
-H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"{
"ftc": false,
"url": "https://www.tiktok.com/@tiktok",
"secUid": "MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM",
"secret": false,
"userId": "107955",
"nickname": "TikTok",
"username": "tiktok",
"verified": true,
"diggCount": 0,
"signature": "One TikTok can make a big impact",
"createTime": 1425144149,
"heartCount": 458365920,
"shareTitle": "TikTok on TikTok",
"videoCount": 1517,
"avatarThumb": "https://p19-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/ba67b11de451691939223e9d978e613a~tplv-tiktokx-cropcenter:100:100.webp?dr=9640&refresh_token=46943594&x-expires=1779688800&x-signature=z9AwiJwTS0eTxqYCCK%2F%2BTLrJTG8%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=2472a6c6&idc=useast8",
"isADVirtual": false,
"avatarLarger": "https://p19-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/ba67b11de451691939223e9d978e613a~tplv-tiktokx-cropcenter:1080:1080.webp?dr=9640&refresh_token=32b630ec&x-expires=1779688800&x-signature=nA5EPRFz7mWJuWEukTfxO%2FnHshM%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=2472a6c6&idc=useast8",
"avatarMedium": "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/ba67b11de451691939223e9d978e613a~tplv-tiktokx-cropcenter:720:720.webp?dr=9640&refresh_token=1d04a6d9&x-expires=1779688800&x-signature=auxMxyrICAnqNHQPW%2FFHhEdZwzo%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=2472a6c6&idc=useast8",
"isUnderAge18": false,
"openFavorite": false,
"followerCount": 94146023,
"followingCount": 3,
"privateAccount": false,
"shareDescription": "One TikTok can make a big impact"
}/v1/social-media:tiktok-scraper/posts/:usernameusernamestringrequiredin pathpagenumberoptionalcountnumberoptionalcurl -X GET "https://api-preview.zapi.ink/v1/social-media:tiktok-scraper/posts/tiktok?page=&count=" \
-H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"{
"page": 1,
"count": 30,
"videos": [
{
"url": "https://www.tiktok.com/@paulmccartney/video/7642802052485106974",
"isAd": false,
"play": "https://v77.tiktokcdn-eu.com/ee42e848d3528f20712f798f04ed3620/6a12995f/video/tos/maliva/tos-maliva-ve-0068c799-us/osjBQAPZKVKFEEEqkEFfEBAPDs1Q9PIfRQDqEg/?a=1233&bti=M0BzMzU8OGYpNzo…",
"size": 672009,
"cover": "https://p16-common-sign.tiktokcdn-eu.com/tos-useast8-p-0068-tx2/okRDwthQCFAABIudAiPBasACEiAAAiAE6lCC1~tplv-tiktokx-cropcenter:300:400.jpeg?dr=10399&refresh_token=07833201&x-expires…",
"isTop": false,
"title": "Hi there! I’m going LIVE on TikTok to answer your questions 🐦⬛ See you there! 🗓️ May 27th 3:30PM BST / 10:30am EST / 7:30am PST ",
"author": {
"id": "6726967538045535237",
"avatar": "https://p16-common-sign.tiktokcdn-eu.com/tos-maliva-avt-0068/c4168685b31130f0fc5606937e9b3abf~tplv-tiktokx-cropcenter:300:300.jpeg?dr=10397&refresh_token=b438c2f1&x-expires=1779602…",
"nickname": "Paul McCartney",
"username": "paulmccartney"
},
"hdSize": 0,
"images": [],
"region": "GB",
"wmSize": 0,
"wmplay": "https://v77.tiktokcdn-eu.com/ee42e848d3528f20712f798f04ed3620/6a12995f/video/tos/maliva/tos-maliva-ve-0068c799-us/osjBQAPZKVKFEEEqkEFfEBAPDs1Q9PIfRQDqEg/?a=1233&bti=M0BzMzU8OGYpNzo…",
"musicId": "7642802074735889182",
"videoId": "7642802052485106974",
"duration": 12,
"diggCount": 33868,
"playCount": 186123,
"createTime": 1779478538,
"musicTitle": "original sound - paulmccartney",
"shareCount": 5333,
"isSlideshow": false,
"musicAuthor": "Paul McCartney",
"originCover": "https://p16-common-sign.tiktokcdn-eu.com/tos-useast8-p-0068-tx2/oggfhU8IhCVEeAjMrQgAoWQI7YMAMICie88BBq~tplv-tiktokx-360p.webp?dr=10375&refresh_token=8223023b&x-expires=1779602400&x…",
"collectCount": 6185,
"commentCount": 1011,
"musicPlayUrl": "https://sf16.tiktokcdn-us.com/obj/ies-music-tx2/7642802131405802270.mp3",
"createTimeIso": "2026-05-22T19:35:38.000Z",
"downloadCount": 12,
"musicDuration": 12,
"musicOriginal": true
},
{
"url": "https://www.tiktok.com/@tiktok/video/7642770753292635422",
"isAd": false,
"play": "https://v77.tiktokcdn-eu.com/2b1cdedc8a3062676ea4d7068fd025f7/6a129989/video/tos/maliva/tos-maliva-ve-0068c799-us/okLYsaeUIAegIVNAInZSxjTCqyCeRCgxIS0AgG/?a=1233&bti=M0BzMzU8OGYpNzo…",
"size": 7020321,
"cover": "https://p16-common-sign.tiktokcdn-eu.com/tos-useast8-p-0068-tx2/oIaQPAAO5EAhnBlpRgiuTiAAIEk1BlJRCayrA~tplv-tiktokx-cropcenter:300:400.jpeg?dr=10399&refresh_token=b0b10b48&x-expires…",
"isTop": false,
"title": "Shout out all the iconic @Zara Larsson stans who helped inspire Midnight Sun: Girls Trip 🪩",
"author": {
"id": "107955",
"avatar": "https://p19-common-sign.tiktokcdn-eu.com/tos-maliva-avt-0068/ba67b11de451691939223e9d978e613a~tplv-tiktokx-cropcenter:300:300.jpeg?dr=10397&refresh_token=fa8bfc55&x-expires=1779602…",
"nickname": "TikTok",
"username": "tiktok"
},
"hdSize": 0,
"images": [],
"region": "US",
"wmSize": 6436195,
"wmplay": "https://v77.tiktokcdn-eu.com/b7988eaf9fc71fbbb136756e2ea8c071/6a129989/video/tos/maliva/tos-maliva-ve-0068c799-us/oY5vmIBR0EA9IQV05VGTdAEiBhYCaBk6iFIEQ/?a=1233&bti=M0BzMzU8OGYpNzo5…",
"musicId": "7642770792052280095",
"videoId": "7642770753292635422",
"duration": 54,
"diggCount": 1156,
"playCount": 30517,
"createTime": 1779471253,
"musicTitle": "original sound - tiktok",
"shareCount": 50,
"isSlideshow": false,
"musicAuthor": "TikTok",
"originCover": "https://p16-common-sign.tiktokcdn-eu.com/tos-useast8-p-0068-tx2/okICYYQVIRBkMi5BqAlEmAFiaAahd0ITc5vBB~tplv-tiktokx-360p.webp?dr=10375&refresh_token=c610017b&x-expires=1779602400&x-…",
"collectCount": 108,
"commentCount": 185,
"musicPlayUrl": "https://sf19.tiktokcdn-us.com/obj/ies-music-tx2/7642770849728121631.mp3",
"createTimeIso": "2026-05-22T17:34:13.000Z",
"downloadCount": 1,
"musicDuration": 54,
"musicOriginal": true
}
],
"hasMore": true,
"nextPage": 2,
"username": "tiktok"
}/v1/social-media:tiktok-scraper/post/:ididstringrequiredin path:id.hdbooleanoptionalcurl -X GET "https://api-preview.zapi.ink/v1/social-media:tiktok-scraper/post/7554652158981983544?hd=" \
-H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"{
"url": "https://www.tiktok.com/@purbayayudhis/video/7554652158981983544",
"isAd": false,
"play": "https://v77.tiktokcdn-eu.com/81da3a2af45d531046832826a508206b/6a12990b/video/tos/useast2a/tos-useast2a-ve-0068c004/ogOGqQkB0Ah3lcgiiEv8WAIMCgXXfaxohIEDj1/?a=1233&bti=OUBzOTg7QGo6OjZAL3AjLTAzYCMxNDNg&&bt=967&ft=JS-FgDDwN4vVQQdGuIOnsdNsUeZqYlKYC~LjhWLrK&mime_type=video_mp4&rc=Mzc4aDU0Mzw4ZjM4aTo6O0BpMzh4O3E5cnRyNjMzNzczM0AwLy5jLmIuNWAxNF8yNWNiYSM0Ll4zMmRzM19hLS1kMTZzcw%3D%3D&vvpl=1&l=20260523142123981D3EB7D5CEF9634A69&btag=e00088000",
"size": 4972760,
"cover": "https://p16-common-sign.tiktokcdn-eu.com/tos-maliva-p-0068/oAuv4XNE4rQK1oCoAZLQRhCFHffyboEJBDcBQB~tplv-tiktokx-cropcenter-q:300:400:q70.jpeg?dr=9232&refresh_token=4a61d2e8&x-expires=1779602400&x-signature=4SgvF1YvurAGANWpjGu887Yj5js%3D&t=bacd0480&ps=933b5bde&shp=d05b14bd&shcp=1d1a97fc&idc=useast2b&biz_tag=tt_video&s=AWEME_DETAIL&sc=cover",
"music": {
"id": "7554652223700126520",
"title": "original sound - purbayayudhis",
"author": "Purbaya Yudhi Sadewa",
"playUrl": "https://v16-ies-music.tiktokcdn-eu.com/ec81919dfa2781dc21db1e4ff44c078f/6a1a8233/video/tos/useast2a/tos-useast2a-v-27dcd7/oQ8RFTT2oeMrvvhQtCXhjQOGCuppYgCfwoTSeE/?a=583965&bti=OUBzOTg7QGo6OjZAL3AjLTAzYCMxNDNg&&bt=125&ft=gk-n4k22xjaV9wwCLdzS7.Cj.R_oZcAEcO5KQH6KJE&mime_type=audio_mpeg&rc=ZmQzaGc7PGY7OjVnODtlZkBpam54b3k5cmZyNjMzNzU8M0AxM2JiMDIyNi8xLV5eYF5gYSNfZzNzMmRjNV9hLS1kMTZzcw%3D%3D&vvpl=1&l=20260523142123981D3EB7D5CEF9634A69&btag=e00048000&shp=d05b14bd&shcp=-",
"duration": 40,
"original": true
},
"title": "Terima kasih teman teman Gen Z atas doa yang diberikan kepada saya. Terima kasih dukungannya, saya akan pastikan doa anda akan terkabul, kita sama-sama menjadi kaya bersama. Gen Z jangan takut, Indonesia Akan Cerah. 👍🙏 #purbayayudhisadewa ",
"author": {
"id": "7548653660555117586",
"avatar": "https://p19-common-sign.tiktokcdn-eu.com/tos-alisg-avt-0068/f2d9ff67cc54bd3f085f132cec29897c~tplv-tiktokx-cropcenter-q:300:300:q70.webp?dr=9605&idc=useast2b&ps=87d6e48a&refresh_token=9f212b2a&s=AWEME_DETAIL&sc=avatar&shcp=1d1a97fc&shp=d05b14bd&t=223449c4&x-expires=1779602400&x-signature=Y2hCdoAwz%2BSGpNH%2BlQAqPiPv6yc%3D",
"nickname": "Purbaya Yudhi Sadewa",
"username": "purbayayudhis"
},
"hdSize": 4972760,
"hdplay": "https://v16m-default.tiktokcdn-us.com/b3603c49d240b5c4d30ac1b85a74c9f2/6a119bed/video/tos/useast2a/tos-useast2a-ve-0068c004/ogOGqQkB0Ah3lcgiiEv8WAIMCgXXfaxohIEDj1/?a=0&bti=OUBzOTg7QGo6OjZAL3AjLTAzYCMxNDNg&&bt=967&ft=MnVG9Qc6UBZfubme2ThkFNN9jV0XtJXlhwQEePFMxSjD1Inz&mime_type=video_mp4&rc=Mzc4aDU0Mzw4ZjM4aTo6O0BpMzh4O3E5cnRyNjMzNzczM0AwLy5jLmIuNWAxNF8yNWNiYSM0Ll4zMmRzM19hLS1kMTZzcw%3D%3D&vvpl=1&l=2026052306212569D9AE2CBF3FA6493052&btag=e00088000",
"images": [],
"region": "ID",
"wmSize": 5720749,
"wmplay": "https://v77.tiktokcdn-eu.com/875c939b3dce173c245adba7eb6a9c14/6a12990b/video/tos/useast2a/tos-useast2a-pve-0068/oMDCga1kGEA8lFVhgmhGXfQkOoi3MABL0IXIdi/?a=1233&bti=OUBzOTg7QGo6OjZAL3AjLTAzYCMxNDNg&&bt=1112&ft=JS-FgDDwN4vVQQdGuIOnsdNsUeZqYlKYC~LjhWLrK&mime_type=video_mp4&rc=ZWRkNjllZTNoOzNpZTU3ZkBpMzh4O3E5cnRyNjMzNzczM0BeMTRfYV8tNl4xLzA2XzVfYSM0Ll4zMmRzM19hLS1kMTZzcw%3D%3D&vvpl=1&l=20260523142123981D3EB7D5CEF9634A69&btag=e00088000",
"anchors": [],
"videoId": "7554652158981983544",
"duration": 40,
"diggCount": 233909,
"playCount": 3394558,
"createTime": 1758954535,
"shareCount": 6994,
"isSlideshow": false,
"originCover": "https://p16-common-sign.tiktokcdn-eu.com/tos-maliva-p-0068/oUiqXDICIgAfCIDXA0MohOMgkAiGlhaB8Wg1j3~tplv-tiktokx-shrink-aq:360:360:q75.webp?dr=13023&refresh_token=6f089fc1&x-expires=1779602400&x-signature=kpi5gYWB055cXfgssMG6kPb%2Fa8Y%3D&t=bacd0480&ps=d97f9a4f&shp=d05b14bd&shcp=1d1a97fc&idc=useast2b&biz_tag=tt_video&s=AWEME_DETAIL&sc=feed_cover",
"collectCount": 10644,
"commentCount": 21837,
"createTimeIso": "2025-09-27T06:28:55.000Z",
"downloadCount": 2892
}/v1/social-media:tiktok-scraper/comments/:ididstringrequiredin pathpagenumberoptionalcountnumberoptionalcurl -X GET "https://api-preview.zapi.ink/v1/social-media:tiktok-scraper/comments/7554652158981983544?page=&count=" \
-H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"{
"page": 1,
"count": 19,
"total": 21845,
"hasMore": true,
"videoId": "7554652158981983544",
"comments": [
{
"text": "Pantes aja Blackpink sampe Nyanyiin lagu utk pak Mentri,,,”Purbayaahhh Purbayaaahhh”",
"author": {
"id": "73495751429",
"avatar": "https://p16-common-sign.tiktokcdn-us.com/tos-alisg-avt-0068/ae62c0bc7bae5b21fb7ec4785e06e741~tplv-tiktokx-cropcenter-q:100:100:q70.jpeg?dr=8835&idc=useast5&ps=87d6e48a&refresh_toke…",
"region": "ID",
"nickname": "Yuliaratih",
"username": "ratu_ratih",
"followerCount": 0
},
"images": [],
"videoId": "7554652158981983544",
"commentId": "7554674610685838096",
"diggCount": 6973,
"createTime": 1758959771,
"replyCount": 50,
"createTimeIso": "2025-09-27T07:56:11.000Z"
},
{
"text": "PURBAYA artinya apa pak? (Perubahan Besar Untuk Indonesia Raya)",
"author": {
"id": "6537682942163501058",
"avatar": "https://p16-common-sign.tiktokcdn-us.com/tos-alisg-avt-0068/39a269088bf4167c191214e7b3153a6f~tplv-tiktokx-cropcenter-q:100:100:q70.jpeg?dr=8835&idc=useast5&ps=87d6e48a&refresh_toke…",
"region": "ID",
"nickname": "Serein ROK",
"username": "serein.rok",
"followerCount": 0
},
"images": [],
"videoId": "7554652158981983544",
"commentId": "7554992410054116114",
"diggCount": 7591,
"createTime": 1759033754,
"replyCount": 38,
"createTimeIso": "2025-09-28T04:29:14.000Z"
},
{
"text": "Si penebar energi positif.. Sehat selalu pak Purbaya 👍",
"author": {
"id": "7252584474956628998",
"avatar": "https://p19-common-sign.tiktokcdn-us.com/tos-maliva-avt-0068/7380254588924624901~tplv-tiktokx-cropcenter-q:100:100:q70.jpeg?dr=8835&idc=useast5&ps=87d6e48a&refresh_token=85afa28e&s…",
"region": "ID",
"nickname": "\" YeStA\" 30🧕81",
"username": "the.ajja",
"followerCount": 0
},
"images": [],
"videoId": "7554652158981983544",
"commentId": "7554654839231791890",
"diggCount": 2911,
"createTime": 1758955158,
"replyCount": 9,
"createTimeIso": "2025-09-27T06:39:18.000Z"
}
],
"nextPage": 2
}/v1/social-media:tiktok-scraper/following/:usernameusernamestringrequiredin pathpagenumberoptionalcountnumberoptionalcurl -X GET "https://api-preview.zapi.ink/v1/social-media:tiktok-scraper/following/youtube?page=&count=" \
-H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"{
"page": 1,
"count": 17,
"total": 17,
"userId": "6920401241349014534",
"hasMore": false,
"nextPage": null,
"username": "youtube",
"following": [
{
"id": "6805521111364469765",
"avatar": "https://p19-common-sign.tiktokcdn.com/tos-maliva-avt-0068/0df2ced6f06ffb3cf5d12c5b24190696~tplv-tiktokx-cropcenter-q:300:300:q70.webp?dr=10793&idc=my2&ps=87d6e48a&refresh_token=75c…",
"region": "GB",
"secUid": "MS4wLjABAAAA8GIoeqjKzjaBKuvaZRHrLWDi-QVYHmh7NiZ7Ta0MPqbOfHqoebxzTPLlUDjo0wiF",
"nickname": "ItalianBach",
"username": "italianbach",
"verified": false,
"diggCount": 16164,
"signature": "1/1 of youtube user ItalianBach\n1/4 of @Friends From Work \nItalianbach@insanityhq.com",
"heartCount": 337091513,
"videoCount": 1077,
"instagramId": "italianbach",
"followerCount": 3259987,
"followingCount": 216,
"privateAccount": false,
"youtubeChannelId": "UCoNCiBqr3p5ZRCGybtFRcPg",
"youtubeChannelTitle": "ItalianBach"
},
{
"id": "6881290705605477381",
"avatar": "https://p19-common-sign.tiktokcdn.com/tos-maliva-avt-0068/701431b0215286dd09f201e25b483662~tplv-tiktokx-cropcenter-q:300:300:q70.webp?dr=10793&idc=my2&ps=87d6e48a&refresh_token=ed4…",
"region": "US",
"secUid": "MS4wLjABAAAAqB08cUbXaDWqbD6MCga2RbGTuhfO2EsHayBYx08NDrN7IE3jQuRDNNN6YwyfH6_6",
"nickname": "Taylor Swift",
"username": "taylorswift",
"verified": false,
"diggCount": 2292,
"signature": "This is pretty much just a cat account",
"heartCount": 270509258,
"videoCount": 82,
"instagramId": "taylorswift",
"followerCount": 33382136,
"followingCount": 0,
"privateAccount": false
},
{
"id": "6783090838496052230",
"avatar": "https://p19-common-sign.tiktokcdn.com/tos-maliva-avt-0068/c9fa41156c207208420750addbd6c3d1~tplv-tiktokx-cropcenter-q:300:300:q70.webp?dr=10793&idc=my2&ps=87d6e48a&refresh_token=16e…",
"region": "US",
"secUid": "MS4wLjABAAAADr02vyTnjpulXJmEx-ZM3bS5v9NcwubHFsR4PBKpmPcEZ5rXIOm5XCEsjaahn_uX",
"nickname": "MrBallen",
"username": "mrballen",
"verified": false,
"diggCount": 6640,
"signature": "Tickets for my LIVE tour are on sale right NOW!👇",
"heartCount": 240245048,
"videoCount": 1209,
"followerCount": 9585262,
"followingCount": 2816,
"privateAccount": false
}
]
}