|
9 | 9 | class DouyinResource(BaseResource): |
10 | 10 | """Generated resource for Douyin (TikTok China).""" |
11 | 11 |
|
12 | | - def get_user_detail_v3( |
13 | | - self, |
14 | | - *, |
15 | | - sec_uid: str, |
16 | | - ) -> ApiResponse[Any]: |
17 | | - """ |
18 | | - User Profile |
19 | | -
|
20 | | - Get Douyin (TikTok China) user Profile data, including follower counts, verification status, and bio details, for creator research and account analysis. |
21 | | -
|
22 | | - Args: |
23 | | - sec_uid: The unique user ID (sec_uid) on Douyin. |
24 | | - """ |
25 | | - return self._get( |
26 | | - "/api/douyin/get-user-detail/v3", |
27 | | - { |
28 | | - "secUid": sec_uid, |
29 | | - }, |
30 | | - ) |
31 | | - |
32 | | - def get_user_video_list_v3( |
33 | | - self, |
34 | | - *, |
35 | | - sec_uid: str, |
36 | | - max_cursor: int | None = 0, |
37 | | - ) -> ApiResponse[Any]: |
38 | | - """ |
39 | | - User Published Videos |
40 | | -
|
41 | | - Get Douyin (TikTok China) user Published Videos data, including captions, covers, and publish times, for account monitoring. |
42 | | -
|
43 | | - Args: |
44 | | - sec_uid: The unique user ID (sec_uid) on Douyin. |
45 | | - max_cursor: Pagination cursor; use 0 for the first page, and the `max_cursor` from the previous response for subsequent pages. |
46 | | - """ |
47 | | - return self._get( |
48 | | - "/api/douyin/get-user-video-list/v3", |
49 | | - { |
50 | | - "secUid": sec_uid, |
51 | | - "maxCursor": max_cursor, |
52 | | - }, |
53 | | - ) |
54 | | - |
55 | | - def get_video_detail_v2( |
56 | | - self, |
57 | | - *, |
58 | | - video_id: str, |
59 | | - ) -> ApiResponse[Any]: |
60 | | - """ |
61 | | - Video Details |
62 | | -
|
63 | | - Get Douyin (TikTok China) video Details data, including author details, publish time, and engagement counts, for video research, archiving, and performance analysis. |
64 | | -
|
65 | | - Args: |
66 | | - video_id: The unique video identifier (aweme_id or model_id). |
67 | | - """ |
68 | | - return self._get( |
69 | | - "/api/douyin/get-video-detail/v2", |
70 | | - { |
71 | | - "videoId": video_id, |
72 | | - }, |
73 | | - ) |
74 | | - |
75 | 12 | def search_video_v4( |
76 | 13 | self, |
77 | 14 | *, |
@@ -133,6 +70,49 @@ def search_user_v2( |
133 | 70 | }, |
134 | 71 | ) |
135 | 72 |
|
| 73 | + def get_user_video_list_v3( |
| 74 | + self, |
| 75 | + *, |
| 76 | + sec_uid: str, |
| 77 | + max_cursor: int | None = 0, |
| 78 | + ) -> ApiResponse[Any]: |
| 79 | + """ |
| 80 | + User Published Videos |
| 81 | +
|
| 82 | + Get Douyin (TikTok China) user Published Videos data, including captions, covers, and publish times, for account monitoring. |
| 83 | +
|
| 84 | + Args: |
| 85 | + sec_uid: The unique user ID (sec_uid) on Douyin. |
| 86 | + max_cursor: Pagination cursor; use 0 for the first page, and the `max_cursor` from the previous response for subsequent pages. |
| 87 | + """ |
| 88 | + return self._get( |
| 89 | + "/api/douyin/get-user-video-list/v3", |
| 90 | + { |
| 91 | + "secUid": sec_uid, |
| 92 | + "maxCursor": max_cursor, |
| 93 | + }, |
| 94 | + ) |
| 95 | + |
| 96 | + def get_video_detail_v2( |
| 97 | + self, |
| 98 | + *, |
| 99 | + video_id: str, |
| 100 | + ) -> ApiResponse[Any]: |
| 101 | + """ |
| 102 | + Video Details |
| 103 | +
|
| 104 | + Get Douyin (TikTok China) video Details data, including author details, publish time, and engagement counts, for video research, archiving, and performance analysis. |
| 105 | +
|
| 106 | + Args: |
| 107 | + video_id: The unique video identifier (aweme_id or model_id). |
| 108 | + """ |
| 109 | + return self._get( |
| 110 | + "/api/douyin/get-video-detail/v2", |
| 111 | + { |
| 112 | + "videoId": video_id, |
| 113 | + }, |
| 114 | + ) |
| 115 | + |
136 | 116 | def get_video_comment_v1( |
137 | 117 | self, |
138 | 118 | *, |
@@ -179,6 +159,26 @@ def get_video_sub_comment_v1( |
179 | 159 | }, |
180 | 160 | ) |
181 | 161 |
|
| 162 | + def get_user_detail_v3( |
| 163 | + self, |
| 164 | + *, |
| 165 | + sec_uid: str, |
| 166 | + ) -> ApiResponse[Any]: |
| 167 | + """ |
| 168 | + User Profile |
| 169 | +
|
| 170 | + Get Douyin (TikTok China) user Profile data, including follower counts, verification status, and bio details, for creator research and account analysis. |
| 171 | +
|
| 172 | + Args: |
| 173 | + sec_uid: The unique user ID (sec_uid) on Douyin. |
| 174 | + """ |
| 175 | + return self._get( |
| 176 | + "/api/douyin/get-user-detail/v3", |
| 177 | + { |
| 178 | + "secUid": sec_uid, |
| 179 | + }, |
| 180 | + ) |
| 181 | + |
182 | 182 | def share_url_transfer_v1( |
183 | 183 | self, |
184 | 184 | *, |
|
0 commit comments