@@ -7,7 +7,7 @@ export function registerTiktok(program: Command, getClient: () => CreatorCrawl):
77
88 tiktok
99 . command ( 'profile <handle>' )
10- . description ( 'Get TikTok profile by handle' )
10+ . description ( 'Get a TikTok profile by handle' )
1111 . action ( ( handle : string ) => run ( ( ) => getClient ( ) . tiktok . profile ( { handle } ) ) )
1212
1313 tiktok
@@ -25,6 +25,41 @@ export function registerTiktok(program: Command, getClient: () => CreatorCrawl):
2525 . description ( 'Get the transcript of a TikTok video' )
2626 . action ( ( url : string ) => run ( ( ) => getClient ( ) . tiktok . transcript ( { url } ) ) )
2727
28+ tiktok
29+ . command ( 'comments <url>' )
30+ . description ( 'Get comments on a TikTok video' )
31+ . action ( ( url : string ) => run ( ( ) => getClient ( ) . tiktok . comments ( { url } ) ) )
32+
33+ tiktok
34+ . command ( 'creator-transcripts <handle>' )
35+ . description ( "Bulk transcripts of a creator's recent videos" )
36+ . action ( ( handle : string ) => run ( ( ) => getClient ( ) . tiktok . creatorTranscripts ( { handle } ) ) )
37+
38+ tiktok
39+ . command ( 'followers <handle>' )
40+ . description ( "Get a user's followers" )
41+ . action ( ( handle : string ) => run ( ( ) => getClient ( ) . tiktok . followers ( { handle } ) ) )
42+
43+ tiktok
44+ . command ( 'following <handle>' )
45+ . description ( "Get accounts a user follows" )
46+ . action ( ( handle : string ) => run ( ( ) => getClient ( ) . tiktok . following ( { handle } ) ) )
47+
48+ tiktok
49+ . command ( 'live <handle>' )
50+ . description ( "Get a user's live stream info" )
51+ . action ( ( handle : string ) => run ( ( ) => getClient ( ) . tiktok . live ( { handle } ) ) )
52+
53+ tiktok
54+ . command ( 'song <clipId>' )
55+ . description ( 'Get details for a TikTok song / sound' )
56+ . action ( ( clipId : string ) => run ( ( ) => getClient ( ) . tiktok . songDetails ( { clipId } ) ) )
57+
58+ tiktok
59+ . command ( 'song-videos <clipId>' )
60+ . description ( 'Get videos that use a TikTok song / sound' )
61+ . action ( ( clipId : string ) => run ( ( ) => getClient ( ) . tiktok . songVideos ( { clipId } ) ) )
62+
2863 tiktok
2964 . command ( 'search <query>' )
3065 . description ( 'Search TikTok by keyword' )
@@ -36,7 +71,37 @@ export function registerTiktok(program: Command, getClient: () => CreatorCrawl):
3671 . action ( ( query : string ) => run ( ( ) => getClient ( ) . tiktok . searchUsers ( { query } ) ) )
3772
3873 tiktok
39- . command ( 'comments <url>' )
40- . description ( 'Get comments on a TikTok video' )
41- . action ( ( url : string ) => run ( ( ) => getClient ( ) . tiktok . comments ( { url } ) ) )
74+ . command ( 'top <query>' )
75+ . description ( 'TikTok top search results (users + videos + sounds)' )
76+ . action ( ( query : string ) => run ( ( ) => getClient ( ) . tiktok . searchTop ( { query } ) ) )
77+
78+ tiktok
79+ . command ( 'hashtag <hashtag>' )
80+ . description ( 'Get videos under a TikTok hashtag' )
81+ . action ( ( hashtag : string ) => run ( ( ) => getClient ( ) . tiktok . searchHashtag ( { hashtag } ) ) )
82+
83+ tiktok
84+ . command ( 'popular-creators' )
85+ . description ( 'Popular TikTok creators (trending)' )
86+ . action ( ( ) => run ( ( ) => getClient ( ) . tiktok . popularCreators ( ) ) )
87+
88+ tiktok
89+ . command ( 'popular-hashtags' )
90+ . description ( 'Popular TikTok hashtags (trending)' )
91+ . action ( ( ) => run ( ( ) => getClient ( ) . tiktok . popularHashtags ( ) ) )
92+
93+ tiktok
94+ . command ( 'popular-songs' )
95+ . description ( 'Popular TikTok songs (trending)' )
96+ . action ( ( ) => run ( ( ) => getClient ( ) . tiktok . popularSongs ( ) ) )
97+
98+ tiktok
99+ . command ( 'popular-videos' )
100+ . description ( 'Popular TikTok videos (trending)' )
101+ . action ( ( ) => run ( ( ) => getClient ( ) . tiktok . popularVideos ( ) ) )
102+
103+ tiktok
104+ . command ( 'trending [region]' )
105+ . description ( 'Current TikTok trending feed for a region (e.g. US)' )
106+ . action ( ( region ?: string ) => run ( ( ) => getClient ( ) . tiktok . trendingFeed ( { region } ) ) )
42107}
0 commit comments