tikdataapi 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. tikdataapi/__init__.py +8 -0
  2. tikdataapi/api/__init__.py +1 -0
  3. tikdataapi/api/account/__init__.py +1 -0
  4. tikdataapi/api/account/get_me.py +144 -0
  5. tikdataapi/api/billing/__init__.py +1 -0
  6. tikdataapi/api/billing/create_checkout.py +215 -0
  7. tikdataapi/api/billing/list_packs.py +144 -0
  8. tikdataapi/api/hashtags/__init__.py +1 -0
  9. tikdataapi/api/hashtags/get_hashtag.py +220 -0
  10. tikdataapi/api/hashtags/get_hashtag_videos.py +250 -0
  11. tikdataapi/api/music/__init__.py +1 -0
  12. tikdataapi/api/music/get_music.py +234 -0
  13. tikdataapi/api/music/get_music_videos.py +254 -0
  14. tikdataapi/api/playlists/__init__.py +1 -0
  15. tikdataapi/api/playlists/get_playlist_videos.py +258 -0
  16. tikdataapi/api/search/__init__.py +1 -0
  17. tikdataapi/api/search/search_hashtags.py +261 -0
  18. tikdataapi/api/search/search_live.py +258 -0
  19. tikdataapi/api/search/search_music.py +260 -0
  20. tikdataapi/api/search/search_users.py +276 -0
  21. tikdataapi/api/search/search_videos.py +260 -0
  22. tikdataapi/api/users/__init__.py +1 -0
  23. tikdataapi/api/users/get_user.py +222 -0
  24. tikdataapi/api/users/get_user_followers.py +266 -0
  25. tikdataapi/api/users/get_user_following.py +266 -0
  26. tikdataapi/api/users/get_user_live.py +236 -0
  27. tikdataapi/api/users/get_user_playlists.py +276 -0
  28. tikdataapi/api/users/get_user_reposts.py +266 -0
  29. tikdataapi/api/users/get_user_videos.py +254 -0
  30. tikdataapi/api/users/get_users.py +247 -0
  31. tikdataapi/api/users/get_users_videos.py +259 -0
  32. tikdataapi/api/videos/__init__.py +1 -0
  33. tikdataapi/api/videos/get_comment_replies.py +260 -0
  34. tikdataapi/api/videos/get_comments.py +258 -0
  35. tikdataapi/api/videos/get_related_videos.py +247 -0
  36. tikdataapi/api/videos/get_trending_videos.py +238 -0
  37. tikdataapi/api/videos/get_video.py +218 -0
  38. tikdataapi/api/videos/get_video_transcript.py +247 -0
  39. tikdataapi/api/videos/get_videos.py +235 -0
  40. tikdataapi/client.py +268 -0
  41. tikdataapi/errors.py +16 -0
  42. tikdataapi/models/__init__.py +117 -0
  43. tikdataapi/models/batch_error.py +104 -0
  44. tikdataapi/models/batch_error_code.py +15 -0
  45. tikdataapi/models/batch_meta.py +127 -0
  46. tikdataapi/models/batch_meta_cache.py +11 -0
  47. tikdataapi/models/comment.py +163 -0
  48. tikdataapi/models/comment_author.py +97 -0
  49. tikdataapi/models/comment_page.py +130 -0
  50. tikdataapi/models/create_checkout_body.py +63 -0
  51. tikdataapi/models/create_checkout_body_pack.py +11 -0
  52. tikdataapi/models/create_checkout_response_200.py +97 -0
  53. tikdataapi/models/error.py +78 -0
  54. tikdataapi/models/error_body.py +107 -0
  55. tikdataapi/models/error_body_code.py +22 -0
  56. tikdataapi/models/get_me_response_200.py +88 -0
  57. tikdataapi/models/get_users_body.py +61 -0
  58. tikdataapi/models/get_users_videos_body.py +72 -0
  59. tikdataapi/models/get_videos_body.py +61 -0
  60. tikdataapi/models/hashtag.py +124 -0
  61. tikdataapi/models/hashtag_response.py +122 -0
  62. tikdataapi/models/hashtag_summary.py +98 -0
  63. tikdataapi/models/hashtag_summary_page.py +130 -0
  64. tikdataapi/models/list_packs_response_200.py +103 -0
  65. tikdataapi/models/list_packs_response_200_data_item.py +88 -0
  66. tikdataapi/models/list_packs_response_200_rate_limits_item.py +70 -0
  67. tikdataapi/models/live_room.py +142 -0
  68. tikdataapi/models/live_room_author.py +90 -0
  69. tikdataapi/models/live_room_page.py +130 -0
  70. tikdataapi/models/live_room_response.py +124 -0
  71. tikdataapi/models/meta.py +108 -0
  72. tikdataapi/models/meta_cache.py +10 -0
  73. tikdataapi/models/music.py +107 -0
  74. tikdataapi/models/music_detail.py +172 -0
  75. tikdataapi/models/music_response.py +124 -0
  76. tikdataapi/models/music_summary.py +137 -0
  77. tikdataapi/models/music_summary_page.py +130 -0
  78. tikdataapi/models/not_found_reason.py +12 -0
  79. tikdataapi/models/playlist.py +114 -0
  80. tikdataapi/models/playlist_author.py +86 -0
  81. tikdataapi/models/playlist_page.py +130 -0
  82. tikdataapi/models/problem.py +131 -0
  83. tikdataapi/models/transcript.py +128 -0
  84. tikdataapi/models/transcript_response.py +124 -0
  85. tikdataapi/models/transcript_segment.py +77 -0
  86. tikdataapi/models/user.py +207 -0
  87. tikdataapi/models/user_batch.py +145 -0
  88. tikdataapi/models/user_page.py +130 -0
  89. tikdataapi/models/user_response.py +126 -0
  90. tikdataapi/models/user_summary.py +152 -0
  91. tikdataapi/models/user_summary_page.py +130 -0
  92. tikdataapi/models/user_videos.py +96 -0
  93. tikdataapi/models/user_videos_batch.py +145 -0
  94. tikdataapi/models/video.py +297 -0
  95. tikdataapi/models/video_batch.py +145 -0
  96. tikdataapi/models/video_page.py +130 -0
  97. tikdataapi/models/video_response.py +122 -0
  98. tikdataapi/models/video_type.py +9 -0
  99. tikdataapi/py.typed +1 -0
  100. tikdataapi/types.py +54 -0
  101. tikdataapi-0.1.0.dist-info/METADATA +148 -0
  102. tikdataapi-0.1.0.dist-info/RECORD +103 -0
  103. tikdataapi-0.1.0.dist-info/WHEEL +4 -0
@@ -0,0 +1,260 @@
1
+ from http import HTTPStatus
2
+ from typing import Any
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...models.error import Error
9
+ from ...models.music_summary_page import MusicSummaryPage
10
+ from ...types import UNSET, Response, Unset
11
+
12
+
13
+ def _get_kwargs(
14
+ *,
15
+ query: str,
16
+ count: int | Unset = 12,
17
+ cursor: str | Unset = UNSET,
18
+ fresh: bool | Unset = False,
19
+ ) -> dict[str, Any]:
20
+
21
+ params: dict[str, Any] = {}
22
+
23
+ params["query"] = query
24
+
25
+ params["count"] = count
26
+
27
+ params["cursor"] = cursor
28
+
29
+ params["fresh"] = fresh
30
+
31
+ params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
32
+
33
+ _kwargs: dict[str, Any] = {
34
+ "method": "get",
35
+ "url": "/v1/search/music",
36
+ "params": params,
37
+ }
38
+
39
+ return _kwargs
40
+
41
+
42
+ def _parse_response(
43
+ *, client: AuthenticatedClient | Client, response: httpx.Response
44
+ ) -> Error | MusicSummaryPage | None:
45
+ if response.status_code == 200:
46
+ response_200 = MusicSummaryPage.from_dict(response.json())
47
+
48
+ return response_200
49
+
50
+ if response.status_code == 400:
51
+ response_400 = Error.from_dict(response.json())
52
+
53
+ return response_400
54
+
55
+ if response.status_code == 401:
56
+ response_401 = Error.from_dict(response.json())
57
+
58
+ return response_401
59
+
60
+ if response.status_code == 402:
61
+ response_402 = Error.from_dict(response.json())
62
+
63
+ return response_402
64
+
65
+ if response.status_code == 429:
66
+ response_429 = Error.from_dict(response.json())
67
+
68
+ return response_429
69
+
70
+ if response.status_code == 500:
71
+ response_500 = Error.from_dict(response.json())
72
+
73
+ return response_500
74
+
75
+ if response.status_code == 503:
76
+ response_503 = Error.from_dict(response.json())
77
+
78
+ return response_503
79
+
80
+ if client.raise_on_unexpected_status:
81
+ raise errors.UnexpectedStatus(response.status_code, response.content)
82
+ else:
83
+ return None
84
+
85
+
86
+ def _build_response(
87
+ *, client: AuthenticatedClient | Client, response: httpx.Response
88
+ ) -> Response[Error | MusicSummaryPage]:
89
+ return Response(
90
+ status_code=HTTPStatus(response.status_code),
91
+ content=response.content,
92
+ headers=response.headers,
93
+ parsed=_parse_response(client=client, response=response),
94
+ )
95
+
96
+
97
+ def sync_detailed(
98
+ *,
99
+ client: AuthenticatedClient | Client,
100
+ query: str,
101
+ count: int | Unset = 12,
102
+ cursor: str | Unset = UNSET,
103
+ fresh: bool | Unset = False,
104
+ ) -> Response[Error | MusicSummaryPage]:
105
+ """Search sounds
106
+
107
+ The sounds that the sound search of TikTok (the "Sounds" tab of search) finds for a query, in the
108
+ order of TikTok. 1 credit per sound. A query with no result gives an empty list, free.
109
+ Each entry is a short sound (`MusicSummary`). For the full sound, read `/v1/music/{id}`; for the
110
+ videos that use it, `/v1/music/{id}/videos`.
111
+ New on 2026-12-03; its limits at TikTok are not measured yet.
112
+
113
+ Args:
114
+ query (str):
115
+ count (int | Unset): Default: 12.
116
+ cursor (str | Unset):
117
+ fresh (bool | Unset): Default: False.
118
+
119
+ Raises:
120
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
121
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
122
+
123
+ Returns:
124
+ Response[Error | MusicSummaryPage]
125
+ """
126
+
127
+ kwargs = _get_kwargs(
128
+ query=query,
129
+ count=count,
130
+ cursor=cursor,
131
+ fresh=fresh,
132
+ )
133
+
134
+ response = client.get_httpx_client().request(
135
+ **kwargs,
136
+ )
137
+
138
+ return _build_response(client=client, response=response)
139
+
140
+
141
+ def sync(
142
+ *,
143
+ client: AuthenticatedClient | Client,
144
+ query: str,
145
+ count: int | Unset = 12,
146
+ cursor: str | Unset = UNSET,
147
+ fresh: bool | Unset = False,
148
+ ) -> Error | MusicSummaryPage | None:
149
+ """Search sounds
150
+
151
+ The sounds that the sound search of TikTok (the "Sounds" tab of search) finds for a query, in the
152
+ order of TikTok. 1 credit per sound. A query with no result gives an empty list, free.
153
+ Each entry is a short sound (`MusicSummary`). For the full sound, read `/v1/music/{id}`; for the
154
+ videos that use it, `/v1/music/{id}/videos`.
155
+ New on 2026-12-03; its limits at TikTok are not measured yet.
156
+
157
+ Args:
158
+ query (str):
159
+ count (int | Unset): Default: 12.
160
+ cursor (str | Unset):
161
+ fresh (bool | Unset): Default: False.
162
+
163
+ Raises:
164
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
165
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
166
+
167
+ Returns:
168
+ Error | MusicSummaryPage
169
+ """
170
+
171
+ return sync_detailed(
172
+ client=client,
173
+ query=query,
174
+ count=count,
175
+ cursor=cursor,
176
+ fresh=fresh,
177
+ ).parsed
178
+
179
+
180
+ async def asyncio_detailed(
181
+ *,
182
+ client: AuthenticatedClient | Client,
183
+ query: str,
184
+ count: int | Unset = 12,
185
+ cursor: str | Unset = UNSET,
186
+ fresh: bool | Unset = False,
187
+ ) -> Response[Error | MusicSummaryPage]:
188
+ """Search sounds
189
+
190
+ The sounds that the sound search of TikTok (the "Sounds" tab of search) finds for a query, in the
191
+ order of TikTok. 1 credit per sound. A query with no result gives an empty list, free.
192
+ Each entry is a short sound (`MusicSummary`). For the full sound, read `/v1/music/{id}`; for the
193
+ videos that use it, `/v1/music/{id}/videos`.
194
+ New on 2026-12-03; its limits at TikTok are not measured yet.
195
+
196
+ Args:
197
+ query (str):
198
+ count (int | Unset): Default: 12.
199
+ cursor (str | Unset):
200
+ fresh (bool | Unset): Default: False.
201
+
202
+ Raises:
203
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
204
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
205
+
206
+ Returns:
207
+ Response[Error | MusicSummaryPage]
208
+ """
209
+
210
+ kwargs = _get_kwargs(
211
+ query=query,
212
+ count=count,
213
+ cursor=cursor,
214
+ fresh=fresh,
215
+ )
216
+
217
+ response = await client.get_async_httpx_client().request(**kwargs)
218
+
219
+ return _build_response(client=client, response=response)
220
+
221
+
222
+ async def asyncio(
223
+ *,
224
+ client: AuthenticatedClient | Client,
225
+ query: str,
226
+ count: int | Unset = 12,
227
+ cursor: str | Unset = UNSET,
228
+ fresh: bool | Unset = False,
229
+ ) -> Error | MusicSummaryPage | None:
230
+ """Search sounds
231
+
232
+ The sounds that the sound search of TikTok (the "Sounds" tab of search) finds for a query, in the
233
+ order of TikTok. 1 credit per sound. A query with no result gives an empty list, free.
234
+ Each entry is a short sound (`MusicSummary`). For the full sound, read `/v1/music/{id}`; for the
235
+ videos that use it, `/v1/music/{id}/videos`.
236
+ New on 2026-12-03; its limits at TikTok are not measured yet.
237
+
238
+ Args:
239
+ query (str):
240
+ count (int | Unset): Default: 12.
241
+ cursor (str | Unset):
242
+ fresh (bool | Unset): Default: False.
243
+
244
+ Raises:
245
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
246
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
247
+
248
+ Returns:
249
+ Error | MusicSummaryPage
250
+ """
251
+
252
+ return (
253
+ await asyncio_detailed(
254
+ client=client,
255
+ query=query,
256
+ count=count,
257
+ cursor=cursor,
258
+ fresh=fresh,
259
+ )
260
+ ).parsed
@@ -0,0 +1,276 @@
1
+ from http import HTTPStatus
2
+ from typing import Any
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...models.error import Error
9
+ from ...models.user_summary_page import UserSummaryPage
10
+ from ...types import UNSET, Response, Unset
11
+
12
+
13
+ def _get_kwargs(
14
+ *,
15
+ query: str,
16
+ count: int | Unset = 10,
17
+ cursor: str | Unset = UNSET,
18
+ fresh: bool | Unset = False,
19
+ ) -> dict[str, Any]:
20
+
21
+ params: dict[str, Any] = {}
22
+
23
+ params["query"] = query
24
+
25
+ params["count"] = count
26
+
27
+ params["cursor"] = cursor
28
+
29
+ params["fresh"] = fresh
30
+
31
+ params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
32
+
33
+ _kwargs: dict[str, Any] = {
34
+ "method": "get",
35
+ "url": "/v1/search/users",
36
+ "params": params,
37
+ }
38
+
39
+ return _kwargs
40
+
41
+
42
+ def _parse_response(
43
+ *, client: AuthenticatedClient | Client, response: httpx.Response
44
+ ) -> Error | UserSummaryPage | None:
45
+ if response.status_code == 200:
46
+ response_200 = UserSummaryPage.from_dict(response.json())
47
+
48
+ return response_200
49
+
50
+ if response.status_code == 400:
51
+ response_400 = Error.from_dict(response.json())
52
+
53
+ return response_400
54
+
55
+ if response.status_code == 401:
56
+ response_401 = Error.from_dict(response.json())
57
+
58
+ return response_401
59
+
60
+ if response.status_code == 402:
61
+ response_402 = Error.from_dict(response.json())
62
+
63
+ return response_402
64
+
65
+ if response.status_code == 429:
66
+ response_429 = Error.from_dict(response.json())
67
+
68
+ return response_429
69
+
70
+ if response.status_code == 500:
71
+ response_500 = Error.from_dict(response.json())
72
+
73
+ return response_500
74
+
75
+ if response.status_code == 503:
76
+ response_503 = Error.from_dict(response.json())
77
+
78
+ return response_503
79
+
80
+ if client.raise_on_unexpected_status:
81
+ raise errors.UnexpectedStatus(response.status_code, response.content)
82
+ else:
83
+ return None
84
+
85
+
86
+ def _build_response(
87
+ *, client: AuthenticatedClient | Client, response: httpx.Response
88
+ ) -> Response[Error | UserSummaryPage]:
89
+ return Response(
90
+ status_code=HTTPStatus(response.status_code),
91
+ content=response.content,
92
+ headers=response.headers,
93
+ parsed=_parse_response(client=client, response=response),
94
+ )
95
+
96
+
97
+ def sync_detailed(
98
+ *,
99
+ client: AuthenticatedClient | Client,
100
+ query: str,
101
+ count: int | Unset = 10,
102
+ cursor: str | Unset = UNSET,
103
+ fresh: bool | Unset = False,
104
+ ) -> Response[Error | UserSummaryPage]:
105
+ """Search accounts
106
+
107
+ The accounts that the account search of TikTok (the "Users" tab of search) finds for a query, in the
108
+ order of TikTok. 1 credit per account. A query with no result gives an empty list, free.
109
+ Each entry is a short profile (`UserSummary`), what the account search of TikTok sends:
110
+ `followers` is rounded, and there is no following count, video count or private flag. For the
111
+ full, exact profile, read `/v1/users/{user}`, or `/v1/users/batch` for up to 100 accounts in one
112
+ call.
113
+ One TikTok page has about 10 accounts, so the default `count` is 10. Two reads of one search can
114
+ give a slightly different list.
115
+ New on 2026-12-02. Not known yet: how many pages of one search TikTok gives.
116
+
117
+ Args:
118
+ query (str):
119
+ count (int | Unset): Default: 10.
120
+ cursor (str | Unset):
121
+ fresh (bool | Unset): Default: False.
122
+
123
+ Raises:
124
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
125
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
126
+
127
+ Returns:
128
+ Response[Error | UserSummaryPage]
129
+ """
130
+
131
+ kwargs = _get_kwargs(
132
+ query=query,
133
+ count=count,
134
+ cursor=cursor,
135
+ fresh=fresh,
136
+ )
137
+
138
+ response = client.get_httpx_client().request(
139
+ **kwargs,
140
+ )
141
+
142
+ return _build_response(client=client, response=response)
143
+
144
+
145
+ def sync(
146
+ *,
147
+ client: AuthenticatedClient | Client,
148
+ query: str,
149
+ count: int | Unset = 10,
150
+ cursor: str | Unset = UNSET,
151
+ fresh: bool | Unset = False,
152
+ ) -> Error | UserSummaryPage | None:
153
+ """Search accounts
154
+
155
+ The accounts that the account search of TikTok (the "Users" tab of search) finds for a query, in the
156
+ order of TikTok. 1 credit per account. A query with no result gives an empty list, free.
157
+ Each entry is a short profile (`UserSummary`), what the account search of TikTok sends:
158
+ `followers` is rounded, and there is no following count, video count or private flag. For the
159
+ full, exact profile, read `/v1/users/{user}`, or `/v1/users/batch` for up to 100 accounts in one
160
+ call.
161
+ One TikTok page has about 10 accounts, so the default `count` is 10. Two reads of one search can
162
+ give a slightly different list.
163
+ New on 2026-12-02. Not known yet: how many pages of one search TikTok gives.
164
+
165
+ Args:
166
+ query (str):
167
+ count (int | Unset): Default: 10.
168
+ cursor (str | Unset):
169
+ fresh (bool | Unset): Default: False.
170
+
171
+ Raises:
172
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
173
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
174
+
175
+ Returns:
176
+ Error | UserSummaryPage
177
+ """
178
+
179
+ return sync_detailed(
180
+ client=client,
181
+ query=query,
182
+ count=count,
183
+ cursor=cursor,
184
+ fresh=fresh,
185
+ ).parsed
186
+
187
+
188
+ async def asyncio_detailed(
189
+ *,
190
+ client: AuthenticatedClient | Client,
191
+ query: str,
192
+ count: int | Unset = 10,
193
+ cursor: str | Unset = UNSET,
194
+ fresh: bool | Unset = False,
195
+ ) -> Response[Error | UserSummaryPage]:
196
+ """Search accounts
197
+
198
+ The accounts that the account search of TikTok (the "Users" tab of search) finds for a query, in the
199
+ order of TikTok. 1 credit per account. A query with no result gives an empty list, free.
200
+ Each entry is a short profile (`UserSummary`), what the account search of TikTok sends:
201
+ `followers` is rounded, and there is no following count, video count or private flag. For the
202
+ full, exact profile, read `/v1/users/{user}`, or `/v1/users/batch` for up to 100 accounts in one
203
+ call.
204
+ One TikTok page has about 10 accounts, so the default `count` is 10. Two reads of one search can
205
+ give a slightly different list.
206
+ New on 2026-12-02. Not known yet: how many pages of one search TikTok gives.
207
+
208
+ Args:
209
+ query (str):
210
+ count (int | Unset): Default: 10.
211
+ cursor (str | Unset):
212
+ fresh (bool | Unset): Default: False.
213
+
214
+ Raises:
215
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
216
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
217
+
218
+ Returns:
219
+ Response[Error | UserSummaryPage]
220
+ """
221
+
222
+ kwargs = _get_kwargs(
223
+ query=query,
224
+ count=count,
225
+ cursor=cursor,
226
+ fresh=fresh,
227
+ )
228
+
229
+ response = await client.get_async_httpx_client().request(**kwargs)
230
+
231
+ return _build_response(client=client, response=response)
232
+
233
+
234
+ async def asyncio(
235
+ *,
236
+ client: AuthenticatedClient | Client,
237
+ query: str,
238
+ count: int | Unset = 10,
239
+ cursor: str | Unset = UNSET,
240
+ fresh: bool | Unset = False,
241
+ ) -> Error | UserSummaryPage | None:
242
+ """Search accounts
243
+
244
+ The accounts that the account search of TikTok (the "Users" tab of search) finds for a query, in the
245
+ order of TikTok. 1 credit per account. A query with no result gives an empty list, free.
246
+ Each entry is a short profile (`UserSummary`), what the account search of TikTok sends:
247
+ `followers` is rounded, and there is no following count, video count or private flag. For the
248
+ full, exact profile, read `/v1/users/{user}`, or `/v1/users/batch` for up to 100 accounts in one
249
+ call.
250
+ One TikTok page has about 10 accounts, so the default `count` is 10. Two reads of one search can
251
+ give a slightly different list.
252
+ New on 2026-12-02. Not known yet: how many pages of one search TikTok gives.
253
+
254
+ Args:
255
+ query (str):
256
+ count (int | Unset): Default: 10.
257
+ cursor (str | Unset):
258
+ fresh (bool | Unset): Default: False.
259
+
260
+ Raises:
261
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
262
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
263
+
264
+ Returns:
265
+ Error | UserSummaryPage
266
+ """
267
+
268
+ return (
269
+ await asyncio_detailed(
270
+ client=client,
271
+ query=query,
272
+ count=count,
273
+ cursor=cursor,
274
+ fresh=fresh,
275
+ )
276
+ ).parsed