handlesapi 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.
handlesapi/_methods.py ADDED
@@ -0,0 +1,4162 @@
1
+ """Generated by scripts/generate.py from the Handles API OpenAPI spec (v1.0.0). Do not edit by hand."""
2
+ # ruff: noqa: E501
3
+ from __future__ import annotations
4
+
5
+ from typing import Any, Literal, Mapping, Optional, Sequence
6
+
7
+ from ._core import Response
8
+ from ._types import (
9
+ AccountsBulkData,
10
+ AccountsCheckData,
11
+ AccountsLiveData,
12
+ AccountsPlatformsData,
13
+ AccountsResolveData,
14
+ DirectoryBulkData,
15
+ DirectoryFacetsData,
16
+ DirectoryFollowersData,
17
+ DirectoryFollowingData,
18
+ DirectoryGetData,
19
+ DirectoryGrowthData,
20
+ DirectoryIndexData,
21
+ DirectoryListData,
22
+ DirectorySearchData,
23
+ GraphXCardData,
24
+ GraphXNotableFollowersData,
25
+ GraphXOverlapData,
26
+ GraphXSimilarData,
27
+ IdentityCompanyData,
28
+ IdentityGraphBulkData,
29
+ IdentityGraphData,
30
+ IdentityResolveData,
31
+ IdentityTelegramAliasesData,
32
+ InsightsActivityPlatformsData,
33
+ InsightsBlueskyActivityData,
34
+ InsightsBlueskyGrowthQualityData,
35
+ InsightsBlueskyPostingImpactData,
36
+ InsightsInstagramBenchmarksData,
37
+ InsightsInstagramCadenceData,
38
+ InsightsInstagramContentMixData,
39
+ InsightsInstagramCoverageData,
40
+ InsightsInstagramEngagementData,
41
+ InsightsInstagramTopPostsData,
42
+ InsightsTelegramActivityData,
43
+ InsightsTelegramAudienceQualityData,
44
+ InsightsTelegramGrowthQualityData,
45
+ InsightsTelegramNameHistoryData,
46
+ InsightsTelegramReachBandsData,
47
+ InsightsTelegramReachData,
48
+ InsightsTiktokActivityData,
49
+ InsightsTiktokBenchmarksData,
50
+ InsightsTiktokCoverageData,
51
+ InsightsTiktokGrowthData,
52
+ InsightsXBenchmarkData,
53
+ InsightsXCompareData,
54
+ InsightsXCoverageData,
55
+ InsightsXDossierData,
56
+ InsightsXEngagementData,
57
+ InsightsXLeadersData,
58
+ InsightsXTopTweetsData,
59
+ InsightsXViralPatternsData,
60
+ InsightsYoutubeActivityData,
61
+ InsightsYoutubeBenchmarkData,
62
+ InsightsYoutubeVelocityBandsData,
63
+ LeadsLinkedinCompaniesGetData,
64
+ LeadsLinkedinCompaniesListData,
65
+ LeadsLinkedinDomainData,
66
+ LeadsLinkedinPeopleListData,
67
+ LeadsLinkedinSegmentsData,
68
+ PeopleLookupData,
69
+ PeopleSearchData,
70
+ ScrapeTelegramChannelData,
71
+ ScrapeXUserData,
72
+ ScrapeXUsersData,
73
+ ToolsAlgorithmScoreData,
74
+ ToolsAudienceFinderData,
75
+ ToolsBestPostingTimeData,
76
+ ToolsCatalogData,
77
+ ToolsEngagementCalculatorData,
78
+ ToolsFollowerAuditData,
79
+ ToolsGrowthSimulatorData,
80
+ ToolsKickChannelValueData,
81
+ ToolsKickMoneyData,
82
+ ToolsKickRankData,
83
+ ToolsMentionCheckerData,
84
+ ToolsProfilePicData,
85
+ ToolsShadowbanCheckData,
86
+ ToolsTiktokEngagementData,
87
+ ToolsTiktokMoneyData,
88
+ ToolsTweetAnalyzerData,
89
+ ToolsTwitchChannelValueData,
90
+ ToolsTwitchMoneyData,
91
+ ToolsTwitchRankData,
92
+ ToolsValuationData,
93
+ ToolsYoutubeChannelValueData,
94
+ ToolsYoutubeMoneyData,
95
+ TrendsMoversData,
96
+ TrendsPlatformsData,
97
+ XCommunitiesGetData,
98
+ XCommunitiesMembersData,
99
+ XCommunitiesModeratorsData,
100
+ XCommunitiesTweetsData,
101
+ XListsMembersData,
102
+ XListsTweetsData,
103
+ XSearchTweetsData,
104
+ XSearchUsersData,
105
+ XTrendsData,
106
+ XTweetsBatchData,
107
+ XTweetsGetData,
108
+ XTweetsQuotesData,
109
+ XTweetsRepliesData,
110
+ XTweetsRetweetersData,
111
+ XTweetsThreadData,
112
+ XUsersAboutData,
113
+ XUsersFollowerIdsData,
114
+ XUsersFollowersData,
115
+ XUsersFollowingData,
116
+ XUsersGetData,
117
+ XUsersMediaData,
118
+ XUsersMentionsData,
119
+ XUsersRelationshipData,
120
+ XUsersTweetsData,
121
+ XUsersVerifiedFollowersData,
122
+ )
123
+
124
+
125
+ class SyncOperations:
126
+ """One typed method per endpoint. Mixed into the client; see `HandlesApi`."""
127
+
128
+ def _op(self, name: str, args: Mapping[str, Any], timeout: Optional[float] = None) -> Any:
129
+ raise NotImplementedError
130
+
131
+ def accounts_platforms(
132
+ self,
133
+ *,
134
+ timeout: Optional[float] = None,
135
+ ) -> Response[AccountsPlatformsData]:
136
+ """What a check can answer, per platform.
137
+
138
+ `GET /accounts/platforms`. 1 credit.
139
+ """
140
+ return self._op("accounts_platforms", {}, timeout) # type: ignore[no-any-return]
141
+
142
+ def accounts_check(
143
+ self,
144
+ platform: Literal["x", "instagram", "tiktok", "youtube", "telegram", "bluesky", "kick", "twitch", "linkedin"],
145
+ handle: str,
146
+ *,
147
+ timeout: Optional[float] = None,
148
+ ) -> Response[AccountsCheckData]:
149
+ """Check one account against our catalog.
150
+
151
+ `GET /accounts/{platform}/{handle}`. 1 credit.
152
+
153
+ Args:
154
+ platform: Which platform the handle belongs to.
155
+ handle: The account handle, with or without the @. Bluesky handles are domains and a bare name is completed to <name>.bsky.social. LinkedIn takes the company slug.
156
+ """
157
+ return self._op("accounts_check", {"platform": platform, "handle": handle}, timeout) # type: ignore[no-any-return]
158
+
159
+ def accounts_live(
160
+ self,
161
+ platform: Literal["x", "instagram", "tiktok", "youtube", "telegram", "bluesky", "kick", "twitch", "linkedin"],
162
+ handle: str,
163
+ *,
164
+ catalog: Optional[bool] = None,
165
+ timeout: Optional[float] = None,
166
+ ) -> Response[AccountsLiveData]:
167
+ """Check one account live, at the source.
168
+
169
+ `GET /accounts/{platform}/{handle}/live`. 2 credits, live read.
170
+
171
+ Args:
172
+ platform: Which platform the handle belongs to.
173
+ handle: The account handle, with or without the @. LinkedIn takes the company slug.
174
+ catalog: Include what our catalog knows alongside the live reading. Costs one index probe. Turn it off if you only want the live number.
175
+ """
176
+ return self._op("accounts_live", {"platform": platform, "handle": handle, "catalog": catalog}, timeout) # type: ignore[no-any-return]
177
+
178
+ def accounts_bulk(
179
+ self,
180
+ targets: Sequence[Any],
181
+ *,
182
+ timeout: Optional[float] = None,
183
+ ) -> Response[AccountsBulkData]:
184
+ """Check up to 50 accounts at once.
185
+
186
+ `POST /accounts/check`. 1 credit.
187
+
188
+ Args:
189
+ targets: Array of { platform, handle } objects, at most 50. Duplicate pairs are collapsed.
190
+ """
191
+ return self._op("accounts_bulk", {"targets": targets}, timeout) # type: ignore[no-any-return]
192
+
193
+ def accounts_resolve(
194
+ self,
195
+ handle: str,
196
+ *,
197
+ platforms: Optional[Literal["x", "instagram", "tiktok", "youtube", "telegram", "bluesky", "kick", "twitch", "linkedin"]] = None,
198
+ timeout: Optional[float] = None,
199
+ ) -> Response[AccountsResolveData]:
200
+ """Find one handle on every platform at once.
201
+
202
+ `GET /accounts/resolve`. 1 credit.
203
+
204
+ Args:
205
+ handle: One handle, with or without the @.
206
+ platforms: Comma-separated subset to check. Defaults to all seven.
207
+ """
208
+ return self._op("accounts_resolve", {"handle": handle, "platforms": platforms}, timeout) # type: ignore[no-any-return]
209
+
210
+ def directory_index(
211
+ self,
212
+ *,
213
+ timeout: Optional[float] = None,
214
+ ) -> Response[DirectoryIndexData]:
215
+ """Catalog capability map.
216
+
217
+ `GET /directory`. 1 credit.
218
+ """
219
+ return self._op("directory_index", {}, timeout) # type: ignore[no-any-return]
220
+
221
+ def directory_list(
222
+ self,
223
+ platform: Literal["x", "telegram", "bluesky", "youtube", "tiktok", "instagram", "kick", "twitch"],
224
+ *,
225
+ limit: Optional[int] = None,
226
+ cursor: Optional[str] = None,
227
+ sort: Optional[str] = None,
228
+ order: Optional[Literal["asc", "desc"]] = None,
229
+ q: Optional[str] = None,
230
+ search: Optional[str] = None,
231
+ fields: Optional[str] = None,
232
+ scope: Optional[Literal["addressable", "all"]] = None,
233
+ min_followers: Optional[int] = None,
234
+ country: Optional[str] = None,
235
+ language: Optional[str] = None,
236
+ category: Optional[str] = None,
237
+ timeout: Optional[float] = None,
238
+ ) -> Response[DirectoryListData]:
239
+ """List and filter a catalog.
240
+
241
+ `GET /directory/{platform}`. 1 credit.
242
+
243
+ Args:
244
+ platform: Which catalog to read.
245
+ limit: Rows per page, 1 to 500.
246
+ cursor: Opaque keyset position from meta.page.next_cursor. Signed; a hand-written cursor is rejected.
247
+ sort: Sort key. `id` walks the primary key and is the cheapest full-corpus order; the platform's audience metric (followers / subscribers) is the default and is...
248
+ order: Sort direction.
249
+ q: Full-text search over name and bio, served by the catalog's GIN index. Available on X, Instagram, TikTok, YouTube and Telegram; Bluesky has no such index and...
250
+ search: Substring match on handle and display name. Unindexed by construction, so it is applied inside the audience-ordered candidate window rather than to the whole...
251
+ fields: Comma-separated projection. Any field listed by GET /directory for that platform, plus weekly_growth. Omitting weekly_growth skips a per-row snapshot lookup.
252
+ scope: `addressable` (default) is the active, non-NSFW, handled catalog - the rows a public page can link to, and the only scope the ranked indexes cover. `all` is...
253
+ min_followers: Audience floor. Every platform has a min/max pair on its own metric: min_followers (X, Bluesky, TikTok), min_participants (Telegram), min_subscribers (YouTube).
254
+ country: ISO 3166-1 alpha-2, as inferred by the engine's geo classifier. Not available on TikTok.
255
+ language: ISO 639-1, as inferred by the engine's language classifier.
256
+ category: Topic category slug.
257
+ """
258
+ return self._op("directory_list", {"platform": platform, "limit": limit, "cursor": cursor, "sort": sort, "order": order, "q": q, "search": search, "fields": fields, "scope": scope, "min_followers": min_followers, "country": country, "language": language, "category": category}, timeout) # type: ignore[no-any-return]
259
+
260
+ def directory_get(
261
+ self,
262
+ platform: Literal["x", "telegram", "bluesky", "youtube", "tiktok", "instagram", "kick", "twitch"],
263
+ id: str,
264
+ *,
265
+ include: Optional[Literal["growth", "followers", "engagement", "similar"]] = None,
266
+ timeout: Optional[float] = None,
267
+ ) -> Response[DirectoryGetData]:
268
+ """One account or channel.
269
+
270
+ `GET /directory/{platform}/{id}`. 1 credit.
271
+
272
+ Args:
273
+ platform: Which catalog to read.
274
+ id: Handle (case-insensitive, with or without @) or platform id. X, Instagram and TikTok accept the numeric user id, YouTube accepts the channel id, Bluesky...
275
+ include: Comma-separated extras. growth = last 30 daily points. followers = the largest accounts within a sample of the inbound edges we hold, up to 10. engagement =...
276
+ """
277
+ return self._op("directory_get", {"platform": platform, "id": id, "include": include}, timeout) # type: ignore[no-any-return]
278
+
279
+ def directory_growth(
280
+ self,
281
+ platform: Literal["x", "telegram", "bluesky", "youtube", "tiktok", "instagram", "kick", "twitch"],
282
+ id: str,
283
+ *,
284
+ days: Optional[int] = None,
285
+ timeout: Optional[float] = None,
286
+ ) -> Response[DirectoryGrowthData]:
287
+ """Daily audience history.
288
+
289
+ `GET /directory/{platform}/{id}/growth`. 1 credit.
290
+
291
+ Args:
292
+ platform: Which catalog to read.
293
+ id: Handle (case-insensitive, with or without @) or platform id. X, Instagram and TikTok accept the numeric user id, YouTube accepts the channel id, Bluesky...
294
+ days: How far back to read, 1 to 365 days.
295
+ """
296
+ return self._op("directory_growth", {"platform": platform, "id": id, "days": days}, timeout) # type: ignore[no-any-return]
297
+
298
+ def directory_followers(
299
+ self,
300
+ platform: Literal["x", "telegram", "bluesky", "youtube", "tiktok", "instagram", "kick", "twitch"],
301
+ id: str,
302
+ *,
303
+ limit: Optional[int] = None,
304
+ cursor: Optional[str] = None,
305
+ timeout: Optional[float] = None,
306
+ ) -> Response[DirectoryFollowersData]:
307
+ """Inbound graph edges.
308
+
309
+ `GET /directory/{platform}/{id}/followers`. 1 credit.
310
+
311
+ Args:
312
+ platform: Which catalog to read.
313
+ id: Handle (case-insensitive, with or without @) or platform id. X, Instagram and TikTok accept the numeric user id, YouTube accepts the channel id, Bluesky...
314
+ limit: Edges per page, 1 to 500.
315
+ cursor: Keyset position from meta.page.next_cursor.
316
+ """
317
+ return self._op("directory_followers", {"platform": platform, "id": id, "limit": limit, "cursor": cursor}, timeout) # type: ignore[no-any-return]
318
+
319
+ def directory_following(
320
+ self,
321
+ platform: Literal["x", "telegram", "bluesky", "youtube", "tiktok", "instagram", "kick", "twitch"],
322
+ id: str,
323
+ *,
324
+ limit: Optional[int] = None,
325
+ cursor: Optional[str] = None,
326
+ timeout: Optional[float] = None,
327
+ ) -> Response[DirectoryFollowingData]:
328
+ """Outbound graph edges.
329
+
330
+ `GET /directory/{platform}/{id}/following`. 1 credit.
331
+
332
+ Args:
333
+ platform: Which catalog to read.
334
+ id: Handle (case-insensitive, with or without @) or platform id. X, Instagram and TikTok accept the numeric user id, YouTube accepts the channel id, Bluesky...
335
+ limit: Edges per page, 1 to 500.
336
+ cursor: Keyset position from meta.page.next_cursor.
337
+ """
338
+ return self._op("directory_following", {"platform": platform, "id": id, "limit": limit, "cursor": cursor}, timeout) # type: ignore[no-any-return]
339
+
340
+ def directory_bulk(
341
+ self,
342
+ platform: Literal["x", "telegram", "bluesky", "youtube", "tiktok", "instagram", "kick", "twitch"],
343
+ *,
344
+ handles: Optional[Sequence[Any]] = None,
345
+ ids: Optional[Sequence[Any]] = None,
346
+ timeout: Optional[float] = None,
347
+ ) -> Response[DirectoryBulkData]:
348
+ """Resolve up to 100 records at once.
349
+
350
+ `POST /directory/{platform}/bulk`. 1 credit.
351
+
352
+ Args:
353
+ platform: Which catalog to read.
354
+ handles: Up to 100 handles. Case-insensitive, a leading @ is stripped. Send this or 'ids', not both.
355
+ ids: Up to 100 platform ids (numeric for X, Instagram, TikTok and Telegram, channel id for YouTube, DID for Bluesky).
356
+ """
357
+ return self._op("directory_bulk", {"platform": platform, "handles": handles, "ids": ids}, timeout) # type: ignore[no-any-return]
358
+
359
+ def directory_facets(
360
+ self,
361
+ platform: Literal["x", "telegram", "bluesky", "youtube", "tiktok", "instagram", "kick", "twitch"],
362
+ *,
363
+ axes: Optional[Literal["language", "country", "category", "followers"]] = None,
364
+ timeout: Optional[float] = None,
365
+ ) -> Response[DirectoryFacetsData]:
366
+ """Distribution of the catalog.
367
+
368
+ `GET /directory/{platform}/facets`. 1 credit.
369
+
370
+ Args:
371
+ platform: Which catalog to read.
372
+ axes: Comma-separated axes to compute. Defaults to all four.
373
+ """
374
+ return self._op("directory_facets", {"platform": platform, "axes": axes}, timeout) # type: ignore[no-any-return]
375
+
376
+ def directory_search(
377
+ self,
378
+ q: str,
379
+ *,
380
+ limit: Optional[int] = None,
381
+ platforms: Optional[Literal["x", "telegram", "bluesky", "youtube", "tiktok", "instagram", "kick", "twitch"]] = None,
382
+ timeout: Optional[float] = None,
383
+ ) -> Response[DirectorySearchData]:
384
+ """Search every platform at once.
385
+
386
+ `GET /directory/search`. 1 credit.
387
+
388
+ Args:
389
+ q: Search term, 2 to 120 characters.
390
+ limit: Records per platform, 1 to 25.
391
+ platforms: Comma-separated subset to search. Defaults to all six.
392
+ """
393
+ return self._op("directory_search", {"q": q, "limit": limit, "platforms": platforms}, timeout) # type: ignore[no-any-return]
394
+
395
+ def x_users_get(
396
+ self,
397
+ handle: str,
398
+ *,
399
+ fresh: Optional[bool] = None,
400
+ timeout: Optional[float] = None,
401
+ ) -> Response[XUsersGetData]:
402
+ """One X profile, live.
403
+
404
+ `GET /x/users/{handle}`. 2 credits, live read.
405
+
406
+ Args:
407
+ handle: X handle, with or without @. A full x.com URL is accepted and stripped.
408
+ fresh: Bypass the upstream's 60-second burst cache. Only worth it when you are checking something that changed seconds ago - a bio the owner just edited - because it...
409
+ """
410
+ return self._op("x_users_get", {"handle": handle, "fresh": fresh}, timeout) # type: ignore[no-any-return]
411
+
412
+ def x_users_about(
413
+ self,
414
+ handle: str,
415
+ *,
416
+ timeout: Optional[float] = None,
417
+ ) -> Response[XUsersAboutData]:
418
+ """X's About this account panel.
419
+
420
+ `GET /x/users/{handle}/about`. 2 credits, live read.
421
+
422
+ Args:
423
+ handle: X handle, with or without @. A full x.com URL is accepted and stripped.
424
+ """
425
+ return self._op("x_users_about", {"handle": handle}, timeout) # type: ignore[no-any-return]
426
+
427
+ def x_users_tweets(
428
+ self,
429
+ handle: str,
430
+ *,
431
+ limit: Optional[int] = None,
432
+ cursor: Optional[str] = None,
433
+ include_replies: Optional[bool] = None,
434
+ timeout: Optional[float] = None,
435
+ ) -> Response[XUsersTweetsData]:
436
+ """An account's timeline.
437
+
438
+ `GET /x/users/{handle}/tweets`. 2 credits, live read.
439
+
440
+ Args:
441
+ handle: X handle, with or without @. A full x.com URL is accepted and stripped.
442
+ limit: Rows in this page, 1-100. The ceiling is the service's, not yours: asking for more returns the ceiling rather than an error.
443
+ cursor: Opaque token from a previous response's next_cursor.
444
+ include_replies: Widen to the replies timeline: everything the account posted, including replies to other people.
445
+ """
446
+ return self._op("x_users_tweets", {"handle": handle, "limit": limit, "cursor": cursor, "include_replies": include_replies}, timeout) # type: ignore[no-any-return]
447
+
448
+ def x_users_media(
449
+ self,
450
+ handle: str,
451
+ *,
452
+ limit: Optional[int] = None,
453
+ cursor: Optional[str] = None,
454
+ timeout: Optional[float] = None,
455
+ ) -> Response[XUsersMediaData]:
456
+ """An account's media timeline.
457
+
458
+ `GET /x/users/{handle}/media`. 2 credits, live read.
459
+
460
+ Args:
461
+ handle: X handle, with or without @. A full x.com URL is accepted and stripped.
462
+ limit: Rows in this page, 1-100. The ceiling is the service's, not yours: asking for more returns the ceiling rather than an error.
463
+ cursor: Opaque token from a previous response's next_cursor.
464
+ """
465
+ return self._op("x_users_media", {"handle": handle, "limit": limit, "cursor": cursor}, timeout) # type: ignore[no-any-return]
466
+
467
+ def x_users_mentions(
468
+ self,
469
+ handle: str,
470
+ *,
471
+ limit: Optional[int] = None,
472
+ cursor: Optional[str] = None,
473
+ timeout: Optional[float] = None,
474
+ ) -> Response[XUsersMentionsData]:
475
+ """Posts mentioning an account.
476
+
477
+ `GET /x/users/{handle}/mentions`. 2 credits, live read.
478
+
479
+ Args:
480
+ handle: X handle, with or without @. A full x.com URL is accepted and stripped.
481
+ limit: Rows in this page, 1-100. The ceiling is the service's, not yours: asking for more returns the ceiling rather than an error.
482
+ cursor: Opaque token from a previous response's next_cursor.
483
+ """
484
+ return self._op("x_users_mentions", {"handle": handle, "limit": limit, "cursor": cursor}, timeout) # type: ignore[no-any-return]
485
+
486
+ def x_users_followers(
487
+ self,
488
+ handle: str,
489
+ *,
490
+ limit: Optional[int] = None,
491
+ cursor: Optional[str] = None,
492
+ timeout: Optional[float] = None,
493
+ ) -> Response[XUsersFollowersData]:
494
+ """Followers, newest first.
495
+
496
+ `GET /x/users/{handle}/followers`. 2 credits, live read.
497
+
498
+ Args:
499
+ handle: X handle, with or without @. A full x.com URL is accepted and stripped.
500
+ limit: Rows in this page, 1-200. The ceiling is the service's, not yours: asking for more returns the ceiling rather than an error.
501
+ cursor: Opaque token from a previous response's next_cursor.
502
+ """
503
+ return self._op("x_users_followers", {"handle": handle, "limit": limit, "cursor": cursor}, timeout) # type: ignore[no-any-return]
504
+
505
+ def x_users_verified_followers(
506
+ self,
507
+ handle: str,
508
+ *,
509
+ limit: Optional[int] = None,
510
+ cursor: Optional[str] = None,
511
+ timeout: Optional[float] = None,
512
+ ) -> Response[XUsersVerifiedFollowersData]:
513
+ """Verified followers only.
514
+
515
+ `GET /x/users/{handle}/verified-followers`. 2 credits, live read.
516
+
517
+ Args:
518
+ handle: X handle, with or without @. A full x.com URL is accepted and stripped.
519
+ limit: Rows in this page, 1-200. The ceiling is the service's, not yours: asking for more returns the ceiling rather than an error.
520
+ cursor: Opaque token from a previous response's next_cursor.
521
+ """
522
+ return self._op("x_users_verified_followers", {"handle": handle, "limit": limit, "cursor": cursor}, timeout) # type: ignore[no-any-return]
523
+
524
+ def x_users_follower_ids(
525
+ self,
526
+ handle: str,
527
+ *,
528
+ limit: Optional[int] = None,
529
+ cursor: Optional[str] = None,
530
+ timeout: Optional[float] = None,
531
+ ) -> Response[XUsersFollowerIdsData]:
532
+ """Follower ids in bulk.
533
+
534
+ `GET /x/users/{handle}/followers/ids`. 2 credits, live read.
535
+
536
+ Args:
537
+ handle: X handle, with or without @. A full x.com URL is accepted and stripped.
538
+ limit: Rows in this page, 1-5000. The ceiling is the service's, not yours: asking for more returns the ceiling rather than an error.
539
+ cursor: Opaque token from a previous response's next_cursor.
540
+ """
541
+ return self._op("x_users_follower_ids", {"handle": handle, "limit": limit, "cursor": cursor}, timeout) # type: ignore[no-any-return]
542
+
543
+ def x_users_following(
544
+ self,
545
+ handle: str,
546
+ *,
547
+ limit: Optional[int] = None,
548
+ cursor: Optional[str] = None,
549
+ timeout: Optional[float] = None,
550
+ ) -> Response[XUsersFollowingData]:
551
+ """Who an account follows.
552
+
553
+ `GET /x/users/{handle}/following`. 2 credits, live read.
554
+
555
+ Args:
556
+ handle: X handle, with or without @. A full x.com URL is accepted and stripped.
557
+ limit: Rows in this page, 1-200. The ceiling is the service's, not yours: asking for more returns the ceiling rather than an error.
558
+ cursor: Opaque token from a previous response's next_cursor.
559
+ """
560
+ return self._op("x_users_following", {"handle": handle, "limit": limit, "cursor": cursor}, timeout) # type: ignore[no-any-return]
561
+
562
+ def x_users_relationship(
563
+ self,
564
+ handle: str,
565
+ target: str,
566
+ *,
567
+ timeout: Optional[float] = None,
568
+ ) -> Response[XUsersRelationshipData]:
569
+ """Does one account follow another.
570
+
571
+ `GET /x/users/{handle}/relationship`. 2 credits, live read.
572
+
573
+ Args:
574
+ handle: The account the question is asked from: does THIS account follow the target?
575
+ target: The other account.
576
+ """
577
+ return self._op("x_users_relationship", {"handle": handle, "target": target}, timeout) # type: ignore[no-any-return]
578
+
579
+ def x_tweets_get(
580
+ self,
581
+ id: str,
582
+ *,
583
+ timeout: Optional[float] = None,
584
+ ) -> Response[XTweetsGetData]:
585
+ """One post.
586
+
587
+ `GET /x/tweets/{id}`. 2 credits, live read.
588
+
589
+ Args:
590
+ id: Numeric post id - the digits at the end of an x.com/.../status/... link.
591
+ """
592
+ return self._op("x_tweets_get", {"id": id}, timeout) # type: ignore[no-any-return]
593
+
594
+ def x_tweets_batch(
595
+ self,
596
+ ids: str,
597
+ *,
598
+ timeout: Optional[float] = None,
599
+ ) -> Response[XTweetsBatchData]:
600
+ """Posts by id, batched.
601
+
602
+ `GET /x/tweets`. 2 credits, live read.
603
+
604
+ Args:
605
+ ids: Comma-separated numeric post ids, at most 100.
606
+ """
607
+ return self._op("x_tweets_batch", {"ids": ids}, timeout) # type: ignore[no-any-return]
608
+
609
+ def x_tweets_replies(
610
+ self,
611
+ id: str,
612
+ *,
613
+ limit: Optional[int] = None,
614
+ cursor: Optional[str] = None,
615
+ timeout: Optional[float] = None,
616
+ ) -> Response[XTweetsRepliesData]:
617
+ """Direct replies to a post.
618
+
619
+ `GET /x/tweets/{id}/replies`. 2 credits, live read.
620
+
621
+ Args:
622
+ id: Numeric post id - the digits at the end of an x.com/.../status/... link.
623
+ limit: Rows in this page, 1-100. The ceiling is the service's, not yours: asking for more returns the ceiling rather than an error.
624
+ cursor: Opaque token from a previous response's next_cursor.
625
+ """
626
+ return self._op("x_tweets_replies", {"id": id, "limit": limit, "cursor": cursor}, timeout) # type: ignore[no-any-return]
627
+
628
+ def x_tweets_thread(
629
+ self,
630
+ id: str,
631
+ *,
632
+ limit: Optional[int] = None,
633
+ cursor: Optional[str] = None,
634
+ timeout: Optional[float] = None,
635
+ ) -> Response[XTweetsThreadData]:
636
+ """The whole conversation.
637
+
638
+ `GET /x/tweets/{id}/thread`. 2 credits, live read.
639
+
640
+ Args:
641
+ id: Numeric post id - the digits at the end of an x.com/.../status/... link.
642
+ limit: Rows in this page, 1-100. The ceiling is the service's, not yours: asking for more returns the ceiling rather than an error.
643
+ cursor: Opaque token from a previous response's next_cursor.
644
+ """
645
+ return self._op("x_tweets_thread", {"id": id, "limit": limit, "cursor": cursor}, timeout) # type: ignore[no-any-return]
646
+
647
+ def x_tweets_quotes(
648
+ self,
649
+ id: str,
650
+ *,
651
+ limit: Optional[int] = None,
652
+ cursor: Optional[str] = None,
653
+ timeout: Optional[float] = None,
654
+ ) -> Response[XTweetsQuotesData]:
655
+ """Quote posts of a post.
656
+
657
+ `GET /x/tweets/{id}/quotes`. 2 credits, live read.
658
+
659
+ Args:
660
+ id: Numeric post id - the digits at the end of an x.com/.../status/... link.
661
+ limit: Rows in this page, 1-100. The ceiling is the service's, not yours: asking for more returns the ceiling rather than an error.
662
+ cursor: Opaque token from a previous response's next_cursor.
663
+ """
664
+ return self._op("x_tweets_quotes", {"id": id, "limit": limit, "cursor": cursor}, timeout) # type: ignore[no-any-return]
665
+
666
+ def x_tweets_retweeters(
667
+ self,
668
+ id: str,
669
+ *,
670
+ limit: Optional[int] = None,
671
+ cursor: Optional[str] = None,
672
+ timeout: Optional[float] = None,
673
+ ) -> Response[XTweetsRetweetersData]:
674
+ """Who reposted a post.
675
+
676
+ `GET /x/tweets/{id}/retweeters`. 2 credits, live read.
677
+
678
+ Args:
679
+ id: Numeric post id - the digits at the end of an x.com/.../status/... link.
680
+ limit: Rows in this page, 1-100. The ceiling is the service's, not yours: asking for more returns the ceiling rather than an error.
681
+ cursor: Opaque token from a previous response's next_cursor.
682
+ """
683
+ return self._op("x_tweets_retweeters", {"id": id, "limit": limit, "cursor": cursor}, timeout) # type: ignore[no-any-return]
684
+
685
+ def x_search_tweets(
686
+ self,
687
+ query: str,
688
+ *,
689
+ limit: Optional[int] = None,
690
+ cursor: Optional[str] = None,
691
+ product: Optional[Literal["Latest", "Top", "Media"]] = None,
692
+ timeout: Optional[float] = None,
693
+ ) -> Response[XSearchTweetsData]:
694
+ """Advanced post search.
695
+
696
+ `GET /x/search/tweets`. 2 credits, live read.
697
+
698
+ Args:
699
+ query: X advanced-search syntax, at most 500 characters, single line. Passed through untouched.
700
+ limit: Rows in this page, 1-100. The ceiling is the service's, not yours: asking for more returns the ceiling rather than an error.
701
+ cursor: Opaque token from a previous response's next_cursor.
702
+ product: Which search tab to read. Latest is chronological and complete; Top is X's own ranking and deliberately partial; Media returns only posts with attachments.
703
+ """
704
+ return self._op("x_search_tweets", {"query": query, "limit": limit, "cursor": cursor, "product": product}, timeout) # type: ignore[no-any-return]
705
+
706
+ def x_search_users(
707
+ self,
708
+ query: str,
709
+ *,
710
+ limit: Optional[int] = None,
711
+ cursor: Optional[str] = None,
712
+ timeout: Optional[float] = None,
713
+ ) -> Response[XSearchUsersData]:
714
+ """People search.
715
+
716
+ `GET /x/search/users`. 2 credits, live read.
717
+
718
+ Args:
719
+ query: Search terms, at most 500 characters.
720
+ limit: Rows in this page, 1-100. The ceiling is the service's, not yours: asking for more returns the ceiling rather than an error.
721
+ cursor: Opaque token from a previous response's next_cursor.
722
+ """
723
+ return self._op("x_search_users", {"query": query, "limit": limit, "cursor": cursor}, timeout) # type: ignore[no-any-return]
724
+
725
+ def x_lists_tweets(
726
+ self,
727
+ id: str,
728
+ *,
729
+ limit: Optional[int] = None,
730
+ cursor: Optional[str] = None,
731
+ timeout: Optional[float] = None,
732
+ ) -> Response[XListsTweetsData]:
733
+ """A list's timeline.
734
+
735
+ `GET /x/lists/{id}/tweets`. 2 credits, live read.
736
+
737
+ Args:
738
+ id: Numeric list id - the digits at the end of an x.com/i/lists/... link.
739
+ limit: Rows in this page, 1-200. The ceiling is the service's, not yours: asking for more returns the ceiling rather than an error.
740
+ cursor: Opaque token from a previous response's next_cursor.
741
+ """
742
+ return self._op("x_lists_tweets", {"id": id, "limit": limit, "cursor": cursor}, timeout) # type: ignore[no-any-return]
743
+
744
+ def x_lists_members(
745
+ self,
746
+ id: str,
747
+ *,
748
+ limit: Optional[int] = None,
749
+ cursor: Optional[str] = None,
750
+ timeout: Optional[float] = None,
751
+ ) -> Response[XListsMembersData]:
752
+ """Who is on a list.
753
+
754
+ `GET /x/lists/{id}/members`. 2 credits, live read.
755
+
756
+ Args:
757
+ id: Numeric list id.
758
+ limit: Rows in this page, 1-200. The ceiling is the service's, not yours: asking for more returns the ceiling rather than an error.
759
+ cursor: Opaque token from a previous response's next_cursor.
760
+ """
761
+ return self._op("x_lists_members", {"id": id, "limit": limit, "cursor": cursor}, timeout) # type: ignore[no-any-return]
762
+
763
+ def x_communities_get(
764
+ self,
765
+ id: str,
766
+ *,
767
+ timeout: Optional[float] = None,
768
+ ) -> Response[XCommunitiesGetData]:
769
+ """One X community.
770
+
771
+ `GET /x/communities/{id}`. 2 credits, live read.
772
+
773
+ Args:
774
+ id: Numeric community id - the digits at the end of an x.com/i/communities/... link.
775
+ """
776
+ return self._op("x_communities_get", {"id": id}, timeout) # type: ignore[no-any-return]
777
+
778
+ def x_communities_members(
779
+ self,
780
+ id: str,
781
+ *,
782
+ limit: Optional[int] = None,
783
+ cursor: Optional[str] = None,
784
+ timeout: Optional[float] = None,
785
+ ) -> Response[XCommunitiesMembersData]:
786
+ """A community's members.
787
+
788
+ `GET /x/communities/{id}/members`. 2 credits, live read.
789
+
790
+ Args:
791
+ id: Numeric community id.
792
+ limit: Rows in this page, 1-200. The ceiling is the service's, not yours: asking for more returns the ceiling rather than an error.
793
+ cursor: Opaque token from a previous response's next_cursor.
794
+ """
795
+ return self._op("x_communities_members", {"id": id, "limit": limit, "cursor": cursor}, timeout) # type: ignore[no-any-return]
796
+
797
+ def x_communities_moderators(
798
+ self,
799
+ id: str,
800
+ *,
801
+ limit: Optional[int] = None,
802
+ cursor: Optional[str] = None,
803
+ timeout: Optional[float] = None,
804
+ ) -> Response[XCommunitiesModeratorsData]:
805
+ """A community's moderators.
806
+
807
+ `GET /x/communities/{id}/moderators`. 2 credits, live read.
808
+
809
+ Args:
810
+ id: Numeric community id.
811
+ limit: Rows in this page, 1-200. The ceiling is the service's, not yours: asking for more returns the ceiling rather than an error.
812
+ cursor: Opaque token from a previous response's next_cursor.
813
+ """
814
+ return self._op("x_communities_moderators", {"id": id, "limit": limit, "cursor": cursor}, timeout) # type: ignore[no-any-return]
815
+
816
+ def x_communities_tweets(
817
+ self,
818
+ id: str,
819
+ *,
820
+ limit: Optional[int] = None,
821
+ cursor: Optional[str] = None,
822
+ timeout: Optional[float] = None,
823
+ ) -> Response[XCommunitiesTweetsData]:
824
+ """A community's posts.
825
+
826
+ `GET /x/communities/{id}/tweets`. 2 credits, live read.
827
+
828
+ Args:
829
+ id: Numeric community id.
830
+ limit: Rows in this page, 1-200. The ceiling is the service's, not yours: asking for more returns the ceiling rather than an error.
831
+ cursor: Opaque token from a previous response's next_cursor.
832
+ """
833
+ return self._op("x_communities_tweets", {"id": id, "limit": limit, "cursor": cursor}, timeout) # type: ignore[no-any-return]
834
+
835
+ def x_trends(
836
+ self,
837
+ woeid: int,
838
+ *,
839
+ limit: Optional[int] = None,
840
+ timeout: Optional[float] = None,
841
+ ) -> Response[XTrendsData]:
842
+ """What is trending, by location.
843
+
844
+ `GET /x/trends`. 2 credits, live read.
845
+
846
+ Args:
847
+ woeid: Yahoo place id. 1 is worldwide; 23424969 is Turkey; 23424977 is the United States.
848
+ limit: Trends to return, 1-50. X serves 30-50 per location.
849
+ """
850
+ return self._op("x_trends", {"woeid": woeid, "limit": limit}, timeout) # type: ignore[no-any-return]
851
+
852
+ def people_lookup(
853
+ self,
854
+ handle: str,
855
+ *,
856
+ platforms: Optional[Literal["x", "telegram", "bluesky", "youtube", "tiktok", "instagram", "kick", "twitch"]] = None,
857
+ timeout: Optional[float] = None,
858
+ ) -> Response[PeopleLookupData]:
859
+ """Find one handle across every catalog.
860
+
861
+ `GET /people/lookup`. 1 credit.
862
+
863
+ Args:
864
+ handle: Handle to resolve, with or without the @. Up to 10, comma-separated.
865
+ platforms: Comma-separated subset to probe (x, telegram, bluesky, youtube, tiktok, instagram). Defaults to all six.
866
+ """
867
+ return self._op("people_lookup", {"handle": handle, "platforms": platforms}, timeout) # type: ignore[no-any-return]
868
+
869
+ def people_search(
870
+ self,
871
+ *,
872
+ min_audience: Optional[int] = None,
873
+ max_audience: Optional[int] = None,
874
+ min_engagement: Optional[float] = None,
875
+ language: Optional[str] = None,
876
+ category: Optional[str] = None,
877
+ verified: Optional[bool] = None,
878
+ q: Optional[str] = None,
879
+ platforms: Optional[Literal["x", "telegram", "bluesky", "youtube", "tiktok", "instagram", "kick", "twitch"]] = None,
880
+ per_platform: Optional[int] = None,
881
+ timeout: Optional[float] = None,
882
+ ) -> Response[PeopleSearchData]:
883
+ """Find accounts matching audience and engagement criteria.
884
+
885
+ `GET /people/search`. 1 credit.
886
+
887
+ Args:
888
+ min_audience: Lower bound on followers / subscribers / participants.
889
+ max_audience: Upper bound on the same metric.
890
+ min_engagement: Minimum measured engagement rate, percent. Instagram only; reported as ignored elsewhere.
891
+ language: ISO 639-1 language code, as classified from the profile text.
892
+ category: Cross-platform category from the shared classifier.
893
+ verified: Restrict to verified accounts.
894
+ q: Full-text terms over name and bio. Skipped on catalogs with no full-text index.
895
+ platforms: Comma-separated subset to search. Defaults to all six.
896
+ per_platform: Rows per platform, 1-25. Default 10.
897
+ """
898
+ return self._op("people_search", {"min_audience": min_audience, "max_audience": max_audience, "min_engagement": min_engagement, "language": language, "category": category, "verified": verified, "q": q, "platforms": platforms, "per_platform": per_platform}, timeout) # type: ignore[no-any-return]
899
+
900
+ def scrape_x_user(
901
+ self,
902
+ handle: str,
903
+ *,
904
+ fresh: Optional[bool] = None,
905
+ timeout: Optional[float] = None,
906
+ ) -> Response[ScrapeXUserData]:
907
+ """Live X profile.
908
+
909
+ `GET /scrape/x/user`. 2 credits, live read.
910
+
911
+ Args:
912
+ handle: X handle, with or without @. A full x.com URL is accepted and stripped.
913
+ fresh: Bypass the upstream's 60-second burst cache. Only worth it when you are checking something that changed seconds ago; it costs a real pool slot.
914
+ """
915
+ return self._op("scrape_x_user", {"handle": handle, "fresh": fresh}, timeout) # type: ignore[no-any-return]
916
+
917
+ def scrape_x_users(
918
+ self,
919
+ handles: Sequence[Any],
920
+ *,
921
+ timeout: Optional[float] = None,
922
+ ) -> Response[ScrapeXUsersData]:
923
+ """Live X profiles, batched.
924
+
925
+ `POST /scrape/x/users`. 2 credits, live read.
926
+
927
+ Args:
928
+ handles: Array of X handles, at most 25. Duplicates are collapsed.
929
+ """
930
+ return self._op("scrape_x_users", {"handles": handles}, timeout) # type: ignore[no-any-return]
931
+
932
+ def scrape_telegram_channel(
933
+ self,
934
+ username: str,
935
+ *,
936
+ timeout: Optional[float] = None,
937
+ ) -> Response[ScrapeTelegramChannelData]:
938
+ """Live Telegram channel read.
939
+
940
+ `GET /scrape/telegram/channel`. 2 credits, live read.
941
+
942
+ Args:
943
+ username: Public @username or a t.me link.
944
+ """
945
+ return self._op("scrape_telegram_channel", {"username": username}, timeout) # type: ignore[no-any-return]
946
+
947
+ def insights_x_dossier(
948
+ self,
949
+ handle: str,
950
+ *,
951
+ include: Optional[str] = None,
952
+ metric: Optional[Literal["engagement", "views", "engagement_per_view", "bookmarks"]] = None,
953
+ timeout: Optional[float] = None,
954
+ ) -> Response[InsightsXDossierData]:
955
+ """Complete intelligence dossier for one X account.
956
+
957
+ `GET /insights/x/{handle}`. 1 credit.
958
+
959
+ Args:
960
+ handle: X handle without the @. 1-15 characters, letters, digits and underscore.
961
+ include: Comma-separated sections to return, from: engagement, volume, top_tweets, viral_patterns, benchmark, narrative. Omit for all of them. account and coverage are...
962
+ metric: Which question the viral_patterns section answers.
963
+ """
964
+ return self._op("insights_x_dossier", {"handle": handle, "include": include, "metric": metric}, timeout) # type: ignore[no-any-return]
965
+
966
+ def insights_x_engagement(
967
+ self,
968
+ handle: str,
969
+ *,
970
+ timeout: Optional[float] = None,
971
+ ) -> Response[InsightsXEngagementData]:
972
+ """Engagement metrics for one X account.
973
+
974
+ `GET /insights/x/{handle}/engagement`. 1 credit.
975
+
976
+ Args:
977
+ handle: X handle without the @.
978
+ """
979
+ return self._op("insights_x_engagement", {"handle": handle}, timeout) # type: ignore[no-any-return]
980
+
981
+ def insights_x_top_tweets(
982
+ self,
983
+ handle: str,
984
+ *,
985
+ limit: Optional[int] = None,
986
+ sort: Optional[Literal["engagement", "likes", "retweets", "replies", "recent"]] = None,
987
+ timeout: Optional[float] = None,
988
+ ) -> Response[InsightsXTopTweetsData]:
989
+ """The account's permanently kept best posts.
990
+
991
+ `GET /insights/x/{handle}/top-tweets`. 1 credit.
992
+
993
+ Args:
994
+ handle: X handle without the @.
995
+ limit: Rows to return, 1-100. The engine keeps at most 20 posts per account, so a higher limit simply returns everything there is.
996
+ sort: Order within the kept set. engagement is the engine's own ranking; the others reorder the same rows.
997
+ """
998
+ return self._op("insights_x_top_tweets", {"handle": handle, "limit": limit, "sort": sort}, timeout) # type: ignore[no-any-return]
999
+
1000
+ def insights_x_viral_patterns(
1001
+ self,
1002
+ handle: str,
1003
+ *,
1004
+ metric: Optional[Literal["engagement", "views", "engagement_per_view", "bookmarks"]] = None,
1005
+ peer_group: Optional[str] = None,
1006
+ timeout: Optional[float] = None,
1007
+ ) -> Response[InsightsXViralPatternsData]:
1008
+ """What makes this account's posts perform.
1009
+
1010
+ `GET /insights/x/{handle}/viral-patterns`. 1 credit.
1011
+
1012
+ Args:
1013
+ handle: X handle without the @.
1014
+ metric: Which question the buckets answer. Media moves engagement by roughly +53% while leaving reach flat, so the metric matters.
1015
+ peer_group: Override the decile the patterns are cut inside. d01 (smallest) to d10, or * for every tracked account. Defaults to the account's own decile.
1016
+ """
1017
+ return self._op("insights_x_viral_patterns", {"handle": handle, "metric": metric, "peer_group": peer_group}, timeout) # type: ignore[no-any-return]
1018
+
1019
+ def insights_x_benchmark(
1020
+ self,
1021
+ handle: str,
1022
+ *,
1023
+ timeout: Optional[float] = None,
1024
+ ) -> Response[InsightsXBenchmarkData]:
1025
+ """This account against its follower cohort.
1026
+
1027
+ `GET /insights/x/{handle}/benchmark`. 1 credit.
1028
+
1029
+ Args:
1030
+ handle: X handle without the @.
1031
+ """
1032
+ return self._op("insights_x_benchmark", {"handle": handle}, timeout) # type: ignore[no-any-return]
1033
+
1034
+ def insights_x_leaders(
1035
+ self,
1036
+ *,
1037
+ sort: Optional[Literal["authenticity", "rate", "engagement", "views"]] = None,
1038
+ tier: Optional[Literal["S", "A", "B", "C"]] = None,
1039
+ category: Optional[str] = None,
1040
+ min_followers: Optional[int] = None,
1041
+ limit: Optional[int] = None,
1042
+ cursor: Optional[str] = None,
1043
+ timeout: Optional[float] = None,
1044
+ ) -> Response[InsightsXLeadersData]:
1045
+ """Accounts ranked by how well they engage.
1046
+
1047
+ `GET /insights/x/leaders`. 1 credit.
1048
+
1049
+ Args:
1050
+ sort: authenticity ranks by percentile against same-size accounts, rate by raw engagement rate, views by engagement per impression, engagement by absolute median...
1051
+ tier: Follower band from the catalog. S is the largest.
1052
+ category: Catalog category slug. Empty on most rows, so a filter here narrows hard.
1053
+ min_followers: Follower floor.
1054
+ limit: Rows per page, 1-200.
1055
+ cursor: Opaque cursor from meta.page.next_cursor.
1056
+ """
1057
+ return self._op("insights_x_leaders", {"sort": sort, "tier": tier, "category": category, "min_followers": min_followers, "limit": limit, "cursor": cursor}, timeout) # type: ignore[no-any-return]
1058
+
1059
+ def insights_x_coverage(
1060
+ self,
1061
+ *,
1062
+ timeout: Optional[float] = None,
1063
+ ) -> Response[InsightsXCoverageData]:
1064
+ """How much of the catalog has tweet-level coverage.
1065
+
1066
+ `GET /insights/x/coverage`. 1 credit.
1067
+ """
1068
+ return self._op("insights_x_coverage", {}, timeout) # type: ignore[no-any-return]
1069
+
1070
+ def insights_x_compare(
1071
+ self,
1072
+ handles: Sequence[Any],
1073
+ *,
1074
+ metric: Optional[Literal["engagement", "views", "engagement_per_view", "bookmarks"]] = None,
1075
+ timeout: Optional[float] = None,
1076
+ ) -> Response[InsightsXCompareData]:
1077
+ """Side-by-side metrics for up to ten accounts.
1078
+
1079
+ `POST /insights/x/compare`. 1 credit.
1080
+
1081
+ Args:
1082
+ handles: Array of X handles without the @, 1-10 of them, for example ["elonmusk","BillGates","NASA"]. Duplicates are collapsed case-insensitively before they take a...
1083
+ metric: Echoed onto the response for clients that batch several metrics.
1084
+ """
1085
+ return self._op("insights_x_compare", {"handles": handles, "metric": metric}, timeout) # type: ignore[no-any-return]
1086
+
1087
+ def insights_instagram_top_posts(
1088
+ self,
1089
+ handle: str,
1090
+ *,
1091
+ limit: Optional[int] = None,
1092
+ timeout: Optional[float] = None,
1093
+ ) -> Response[InsightsInstagramTopPostsData]:
1094
+ """An account's best performing posts.
1095
+
1096
+ `GET /insights/instagram/{handle}/top-posts`. 1 credit.
1097
+
1098
+ Args:
1099
+ handle: Instagram handle, without the @.
1100
+ limit: Posts to return, 1 to 50.
1101
+ """
1102
+ return self._op("insights_instagram_top_posts", {"handle": handle, "limit": limit}, timeout) # type: ignore[no-any-return]
1103
+
1104
+ def insights_instagram_content_mix(
1105
+ self,
1106
+ handle: str,
1107
+ *,
1108
+ timeout: Optional[float] = None,
1109
+ ) -> Response[InsightsInstagramContentMixData]:
1110
+ """Which post format actually works on this account.
1111
+
1112
+ `GET /insights/instagram/{handle}/content-mix`. 1 credit.
1113
+
1114
+ Args:
1115
+ handle: Instagram handle, without the @.
1116
+ """
1117
+ return self._op("insights_instagram_content_mix", {"handle": handle}, timeout) # type: ignore[no-any-return]
1118
+
1119
+ def insights_instagram_cadence(
1120
+ self,
1121
+ handle: str,
1122
+ *,
1123
+ timeout: Optional[float] = None,
1124
+ ) -> Response[InsightsInstagramCadenceData]:
1125
+ """How often an account posts, and whether it has gone quiet.
1126
+
1127
+ `GET /insights/instagram/{handle}/cadence`. 1 credit.
1128
+
1129
+ Args:
1130
+ handle: Instagram handle, without the @.
1131
+ """
1132
+ return self._op("insights_instagram_cadence", {"handle": handle}, timeout) # type: ignore[no-any-return]
1133
+
1134
+ def insights_instagram_benchmarks(
1135
+ self,
1136
+ *,
1137
+ followers: Optional[int] = None,
1138
+ timeout: Optional[float] = None,
1139
+ ) -> Response[InsightsInstagramBenchmarksData]:
1140
+ """Measured engagement rates by follower band.
1141
+
1142
+ `GET /insights/instagram/benchmarks`. 1 credit.
1143
+
1144
+ Args:
1145
+ followers: Optional. A follower count to locate in the bands; the response then names which band it falls in.
1146
+ """
1147
+ return self._op("insights_instagram_benchmarks", {"followers": followers}, timeout) # type: ignore[no-any-return]
1148
+
1149
+ def insights_instagram_coverage(
1150
+ self,
1151
+ handle: str,
1152
+ *,
1153
+ timeout: Optional[float] = None,
1154
+ ) -> Response[InsightsInstagramCoverageData]:
1155
+ """What we hold on a handle, before you pay for a lookup.
1156
+
1157
+ `GET /insights/instagram/{handle}/coverage`. 1 credit.
1158
+
1159
+ Args:
1160
+ handle: Instagram handle, without the @.
1161
+ """
1162
+ return self._op("insights_instagram_coverage", {"handle": handle}, timeout) # type: ignore[no-any-return]
1163
+
1164
+ def insights_tiktok_growth(
1165
+ self,
1166
+ handle: str,
1167
+ *,
1168
+ days: Optional[int] = None,
1169
+ timeout: Optional[float] = None,
1170
+ ) -> Response[InsightsTiktokGrowthData]:
1171
+ """Follower, like and posting velocity from the snapshot series.
1172
+
1173
+ `GET /insights/tiktok/{handle}/growth`. 1 credit.
1174
+
1175
+ Args:
1176
+ handle: TikTok handle, without the @.
1177
+ days: Window to read, 1 to 365 days.
1178
+ """
1179
+ return self._op("insights_tiktok_growth", {"handle": handle, "days": days}, timeout) # type: ignore[no-any-return]
1180
+
1181
+ def insights_tiktok_benchmarks(
1182
+ self,
1183
+ *,
1184
+ timeout: Optional[float] = None,
1185
+ ) -> Response[InsightsTiktokBenchmarksData]:
1186
+ """Measured likes per video by follower band.
1187
+
1188
+ `GET /insights/tiktok/benchmarks`. 1 credit.
1189
+ """
1190
+ return self._op("insights_tiktok_benchmarks", {}, timeout) # type: ignore[no-any-return]
1191
+
1192
+ def insights_tiktok_coverage(
1193
+ self,
1194
+ handle: str,
1195
+ *,
1196
+ timeout: Optional[float] = None,
1197
+ ) -> Response[InsightsTiktokCoverageData]:
1198
+ """What we hold on a handle, before you pay for a lookup.
1199
+
1200
+ `GET /insights/tiktok/{handle}/coverage`. 1 credit.
1201
+
1202
+ Args:
1203
+ handle: TikTok handle, without the @.
1204
+ """
1205
+ return self._op("insights_tiktok_coverage", {"handle": handle}, timeout) # type: ignore[no-any-return]
1206
+
1207
+ def trends_movers(
1208
+ self,
1209
+ platform: Literal["x", "instagram", "tiktok", "youtube", "telegram"],
1210
+ *,
1211
+ direction: Optional[Literal["rising", "falling"]] = None,
1212
+ limit: Optional[int] = None,
1213
+ timeout: Optional[float] = None,
1214
+ ) -> Response[TrendsMoversData]:
1215
+ """Biggest audience gains and losses for a day.
1216
+
1217
+ `GET /trends/{platform}/movers`. 1 credit.
1218
+
1219
+ Args:
1220
+ platform: Which catalog to rank. Bluesky and LinkedIn are not available here; GET /trends/platforms says why.
1221
+ direction: rising returns the biggest gains, falling the biggest losses.
1222
+ limit: Rows to return, 1 to 100.
1223
+ """
1224
+ return self._op("trends_movers", {"platform": platform, "direction": direction, "limit": limit}, timeout) # type: ignore[no-any-return]
1225
+
1226
+ def trends_platforms(
1227
+ self,
1228
+ *,
1229
+ timeout: Optional[float] = None,
1230
+ ) -> Response[TrendsPlatformsData]:
1231
+ """Which platforms can be ranked, and how fresh each is.
1232
+
1233
+ `GET /trends/platforms`. 1 credit.
1234
+ """
1235
+ return self._op("trends_platforms", {}, timeout) # type: ignore[no-any-return]
1236
+
1237
+ def identity_graph(
1238
+ self,
1239
+ *,
1240
+ platform: Optional[Literal["linkedin", "instagram", "facebook", "x", "youtube", "tiktok", "github", "bluesky", "telegram"]] = None,
1241
+ handle: Optional[str] = None,
1242
+ domain: Optional[str] = None,
1243
+ company: Optional[str] = None,
1244
+ timeout: Optional[float] = None,
1245
+ ) -> Response[IdentityGraphData]:
1246
+ """One organisation's accounts across every network, from any one of them.
1247
+
1248
+ `GET /identity/graph`. 1 credit.
1249
+
1250
+ Args:
1251
+ platform: Network the handle belongs to. Required with handle, ignored otherwise.
1252
+ handle: Account handle, an @handle, or a full profile URL. Normalised before lookup.
1253
+ domain: Company website domain. A bare host, a full URL or an email address all work.
1254
+ company: LinkedIn company slug, as it appears in the company page URL.
1255
+ """
1256
+ return self._op("identity_graph", {"platform": platform, "handle": handle, "domain": domain, "company": company}, timeout) # type: ignore[no-any-return]
1257
+
1258
+ def identity_graph_bulk(
1259
+ self,
1260
+ accounts: Sequence[Any],
1261
+ *,
1262
+ timeout: Optional[float] = None,
1263
+ ) -> Response[IdentityGraphBulkData]:
1264
+ """Resolve up to 100 handles to their companies in one call.
1265
+
1266
+ `POST /identity/graph/bulk`. 1 credit.
1267
+
1268
+ Args:
1269
+ accounts: Up to 100 objects with platform and handle. Handles are normalised the same way the single lookup normalises them.
1270
+ """
1271
+ return self._op("identity_graph_bulk", {"accounts": accounts}, timeout) # type: ignore[no-any-return]
1272
+
1273
+ def identity_company(
1274
+ self,
1275
+ slug: str,
1276
+ *,
1277
+ timeout: Optional[float] = None,
1278
+ ) -> Response[IdentityCompanyData]:
1279
+ """Every social account a company publishes.
1280
+
1281
+ `GET /identity/company/{slug}`. 1 credit.
1282
+
1283
+ Args:
1284
+ slug: The company slug, as it appears on its LinkedIn company page URL.
1285
+ """
1286
+ return self._op("identity_company", {"slug": slug}, timeout) # type: ignore[no-any-return]
1287
+
1288
+ def identity_resolve(
1289
+ self,
1290
+ platform: Literal["linkedin", "instagram", "facebook", "x", "youtube", "tiktok", "github", "bluesky", "telegram"],
1291
+ handle: str,
1292
+ *,
1293
+ timeout: Optional[float] = None,
1294
+ ) -> Response[IdentityResolveData]:
1295
+ """Which company publishes this handle.
1296
+
1297
+ `GET /identity/resolve`. 1 credit.
1298
+
1299
+ Args:
1300
+ platform: Network the handle belongs to.
1301
+ handle: The account handle. An @handle or a full profile URL is accepted and normalised to the stored form before lookup.
1302
+ """
1303
+ return self._op("identity_resolve", {"platform": platform, "handle": handle}, timeout) # type: ignore[no-any-return]
1304
+
1305
+ def identity_telegram_aliases(
1306
+ self,
1307
+ username: str,
1308
+ *,
1309
+ timeout: Optional[float] = None,
1310
+ ) -> Response[IdentityTelegramAliasesData]:
1311
+ """Every username a Telegram channel holds.
1312
+
1313
+ `GET /identity/telegram/{username}/aliases`. 1 credit.
1314
+
1315
+ Args:
1316
+ username: Any username the channel holds, without the @.
1317
+ """
1318
+ return self._op("identity_telegram_aliases", {"username": username}, timeout) # type: ignore[no-any-return]
1319
+
1320
+ def insights_telegram_audience_quality(
1321
+ self,
1322
+ username: str,
1323
+ *,
1324
+ days: Optional[int] = None,
1325
+ timeout: Optional[float] = None,
1326
+ ) -> Response[InsightsTelegramAudienceQualityData]:
1327
+ """Whether a channel's subscribers and its post views moved together.
1328
+
1329
+ `GET /insights/telegram/{username}/audience-quality`. 1 credit.
1330
+
1331
+ Args:
1332
+ username: Public @username or a t.me link.
1333
+ days: Calendar days of history to read back from today, 1 to 90. The rollup begins 2026-06-09, so no channel can answer for more than that.
1334
+ """
1335
+ return self._op("insights_telegram_audience_quality", {"username": username, "days": days}, timeout) # type: ignore[no-any-return]
1336
+
1337
+ def insights_telegram_name_history(
1338
+ self,
1339
+ username: str,
1340
+ *,
1341
+ timeout: Optional[float] = None,
1342
+ ) -> Response[InsightsTelegramNameHistoryData]:
1343
+ """Every username a channel has held, and which ones it gave up.
1344
+
1345
+ `GET /insights/telegram/{username}/name-history`. 1 credit.
1346
+
1347
+ Args:
1348
+ username: Public @username or a t.me link. The channel's CURRENT username.
1349
+ """
1350
+ return self._op("insights_telegram_name_history", {"username": username}, timeout) # type: ignore[no-any-return]
1351
+
1352
+ def insights_youtube_benchmark(
1353
+ self,
1354
+ handle: str,
1355
+ *,
1356
+ timeout: Optional[float] = None,
1357
+ ) -> Response[InsightsYoutubeBenchmarkData]:
1358
+ """A channel's view velocity, ranked against channels its own size.
1359
+
1360
+ `GET /insights/youtube/{handle}/benchmark`. 1 credit.
1361
+
1362
+ Args:
1363
+ handle: YouTube handle without the @, or a UC... channel id.
1364
+ """
1365
+ return self._op("insights_youtube_benchmark", {"handle": handle}, timeout) # type: ignore[no-any-return]
1366
+
1367
+ def insights_youtube_velocity_bands(
1368
+ self,
1369
+ *,
1370
+ timeout: Optional[float] = None,
1371
+ ) -> Response[InsightsYoutubeVelocityBandsData]:
1372
+ """The view-velocity ladders every YouTube benchmark is read against.
1373
+
1374
+ `GET /insights/youtube/view-velocity-bands`. 1 credit.
1375
+ """
1376
+ return self._op("insights_youtube_velocity_bands", {}, timeout) # type: ignore[no-any-return]
1377
+
1378
+ def insights_bluesky_posting_impact(
1379
+ self,
1380
+ handle: str,
1381
+ *,
1382
+ days: Optional[int] = None,
1383
+ timeout: Optional[float] = None,
1384
+ ) -> Response[InsightsBlueskyPostingImpactData]:
1385
+ """What an account gains on the days it posts against the days it does not.
1386
+
1387
+ `GET /insights/bluesky/{handle}/posting-impact`. 1 credit.
1388
+
1389
+ Args:
1390
+ handle: Bluesky handle such as nytimes.com, or a did:plc: identifier.
1391
+ days: Calendar days of history to read back from today, 1 to 90. The rollup begins 2026-06-09, so no account can answer for more than that.
1392
+ """
1393
+ return self._op("insights_bluesky_posting_impact", {"handle": handle, "days": days}, timeout) # type: ignore[no-any-return]
1394
+
1395
+ def insights_instagram_engagement(
1396
+ self,
1397
+ handle: str,
1398
+ *,
1399
+ timeout: Optional[float] = None,
1400
+ ) -> Response[InsightsInstagramEngagementData]:
1401
+ """Measured Instagram engagement, placed against its cohort.
1402
+
1403
+ `GET /insights/instagram/{handle}`. 1 credit.
1404
+
1405
+ Args:
1406
+ handle: Instagram handle, with or without the @.
1407
+ """
1408
+ return self._op("insights_instagram_engagement", {"handle": handle}, timeout) # type: ignore[no-any-return]
1409
+
1410
+ def insights_telegram_reach(
1411
+ self,
1412
+ username: str,
1413
+ *,
1414
+ timeout: Optional[float] = None,
1415
+ ) -> Response[InsightsTelegramReachData]:
1416
+ """How many subscribers actually see a Telegram post.
1417
+
1418
+ `GET /insights/telegram/{username}/reach`. 1 credit.
1419
+
1420
+ Args:
1421
+ username: Public @username or a t.me link.
1422
+ """
1423
+ return self._op("insights_telegram_reach", {"username": username}, timeout) # type: ignore[no-any-return]
1424
+
1425
+ def insights_telegram_reach_bands(
1426
+ self,
1427
+ *,
1428
+ timeout: Optional[float] = None,
1429
+ ) -> Response[InsightsTelegramReachBandsData]:
1430
+ """The reach percentile ladders every Telegram score is read against.
1431
+
1432
+ `GET /insights/telegram/reach-bands`. 1 credit.
1433
+ """
1434
+ return self._op("insights_telegram_reach_bands", {}, timeout) # type: ignore[no-any-return]
1435
+
1436
+ def insights_youtube_activity(
1437
+ self,
1438
+ handle: str,
1439
+ *,
1440
+ days: Optional[int] = None,
1441
+ timeout: Optional[float] = None,
1442
+ ) -> Response[InsightsYoutubeActivityData]:
1443
+ """Daily views earned by one account.
1444
+
1445
+ `GET /insights/youtube/{handle}/activity`. 1 credit.
1446
+
1447
+ Args:
1448
+ handle: YouTube handle without the @, or a UC... channel id.
1449
+ days: Calendar days of history to read back from today, 1 to 90. The rollup begins 2026-06-09, so no account can answer for more than that.
1450
+ """
1451
+ return self._op("insights_youtube_activity", {"handle": handle, "days": days}, timeout) # type: ignore[no-any-return]
1452
+
1453
+ def insights_tiktok_activity(
1454
+ self,
1455
+ handle: str,
1456
+ *,
1457
+ days: Optional[int] = None,
1458
+ timeout: Optional[float] = None,
1459
+ ) -> Response[InsightsTiktokActivityData]:
1460
+ """Daily likes earned by one account.
1461
+
1462
+ `GET /insights/tiktok/{handle}/activity`. 1 credit.
1463
+
1464
+ Args:
1465
+ handle: TikTok handle, without the @.
1466
+ days: Calendar days of history to read back from today, 1 to 90. The rollup begins 2026-06-09, so no account can answer for more than that.
1467
+ """
1468
+ return self._op("insights_tiktok_activity", {"handle": handle, "days": days}, timeout) # type: ignore[no-any-return]
1469
+
1470
+ def insights_bluesky_activity(
1471
+ self,
1472
+ handle: str,
1473
+ *,
1474
+ days: Optional[int] = None,
1475
+ timeout: Optional[float] = None,
1476
+ ) -> Response[InsightsBlueskyActivityData]:
1477
+ """Daily posts earned by one account.
1478
+
1479
+ `GET /insights/bluesky/{handle}/activity`. 1 credit.
1480
+
1481
+ Args:
1482
+ handle: Bluesky handle such as nytimes.com, or a did:plc: identifier.
1483
+ days: Calendar days of history to read back from today, 1 to 90. The rollup begins 2026-06-09, so no account can answer for more than that.
1484
+ """
1485
+ return self._op("insights_bluesky_activity", {"handle": handle, "days": days}, timeout) # type: ignore[no-any-return]
1486
+
1487
+ def insights_telegram_activity(
1488
+ self,
1489
+ username: str,
1490
+ *,
1491
+ days: Optional[int] = None,
1492
+ timeout: Optional[float] = None,
1493
+ ) -> Response[InsightsTelegramActivityData]:
1494
+ """How a channel's per-post reach has moved, day by day.
1495
+
1496
+ `GET /insights/telegram/{username}/activity`. 1 credit.
1497
+
1498
+ Args:
1499
+ username: Public Telegram username, with or without the @. A t.me link is accepted.
1500
+ days: Calendar days of history to read back from today, 1 to 90. The rollup begins 2026-06-09, so no account can answer for more than that.
1501
+ """
1502
+ return self._op("insights_telegram_activity", {"username": username, "days": days}, timeout) # type: ignore[no-any-return]
1503
+
1504
+ def insights_telegram_growth_quality(
1505
+ self,
1506
+ username: str,
1507
+ *,
1508
+ days: Optional[int] = None,
1509
+ timeout: Optional[float] = None,
1510
+ ) -> Response[InsightsTelegramGrowthQualityData]:
1511
+ """The shape of a channel's subscriber growth.
1512
+
1513
+ `GET /insights/telegram/{username}/growth-quality`. 1 credit.
1514
+
1515
+ Args:
1516
+ username: Public Telegram username, with or without the @. A t.me link is accepted.
1517
+ days: Calendar days of history to read back from today, 1 to 90. The rollup begins 2026-06-09, so no account can answer for more than that.
1518
+ """
1519
+ return self._op("insights_telegram_growth_quality", {"username": username, "days": days}, timeout) # type: ignore[no-any-return]
1520
+
1521
+ def insights_bluesky_growth_quality(
1522
+ self,
1523
+ handle: str,
1524
+ *,
1525
+ days: Optional[int] = None,
1526
+ timeout: Optional[float] = None,
1527
+ ) -> Response[InsightsBlueskyGrowthQualityData]:
1528
+ """The shape of an account's follower growth.
1529
+
1530
+ `GET /insights/bluesky/{handle}/growth-quality`. 1 credit.
1531
+
1532
+ Args:
1533
+ handle: Bluesky handle such as nytimes.com, or a did:plc: identifier.
1534
+ days: Calendar days of history to read back from today, 1 to 90. The rollup begins 2026-06-09, so no account can answer for more than that.
1535
+ """
1536
+ return self._op("insights_bluesky_growth_quality", {"handle": handle, "days": days}, timeout) # type: ignore[no-any-return]
1537
+
1538
+ def insights_activity_platforms(
1539
+ self,
1540
+ *,
1541
+ timeout: Optional[float] = None,
1542
+ ) -> Response[InsightsActivityPlatformsData]:
1543
+ """What each platform measures, how precise it is, and how deep.
1544
+
1545
+ `GET /insights/activity/platforms`. 1 credit.
1546
+ """
1547
+ return self._op("insights_activity_platforms", {}, timeout) # type: ignore[no-any-return]
1548
+
1549
+ def graph_x_overlap(
1550
+ self,
1551
+ a: str,
1552
+ b: str,
1553
+ *,
1554
+ limit: Optional[int] = None,
1555
+ timeout: Optional[float] = None,
1556
+ ) -> Response[GraphXOverlapData]:
1557
+ """Audience overlap between two X accounts.
1558
+
1559
+ `GET /graph/x/overlap`. 1 credit.
1560
+
1561
+ Args:
1562
+ a: First X handle, without the @.
1563
+ b: Second X handle, without the @.
1564
+ limit: How many shared accounts to return, 0 to 100.
1565
+ """
1566
+ return self._op("graph_x_overlap", {"a": a, "b": b, "limit": limit}, timeout) # type: ignore[no-any-return]
1567
+
1568
+ def graph_x_similar(
1569
+ self,
1570
+ handle: str,
1571
+ *,
1572
+ limit: Optional[int] = None,
1573
+ min_shared: Optional[int] = None,
1574
+ timeout: Optional[float] = None,
1575
+ ) -> Response[GraphXSimilarData]:
1576
+ """Lookalike X accounts by shared audience.
1577
+
1578
+ `GET /graph/x/{handle}/similar`. 1 credit.
1579
+
1580
+ Args:
1581
+ handle: X handle without the @. 1-15 characters.
1582
+ limit: How many lookalikes to return, 1 to 100.
1583
+ min_shared: Minimum shared followers inside the sample before a candidate is scored, 2 to 100. Higher is stricter and returns fewer, more confident rows.
1584
+ """
1585
+ return self._op("graph_x_similar", {"handle": handle, "limit": limit, "min_shared": min_shared}, timeout) # type: ignore[no-any-return]
1586
+
1587
+ def graph_x_notable_followers(
1588
+ self,
1589
+ handle: str,
1590
+ *,
1591
+ sort: Optional[Literal["influence", "followers", "recent"]] = None,
1592
+ limit: Optional[int] = None,
1593
+ cursor: Optional[str] = None,
1594
+ timeout: Optional[float] = None,
1595
+ ) -> Response[GraphXNotableFollowersData]:
1596
+ """Followers of an X account ranked by their own influence.
1597
+
1598
+ `GET /graph/x/{handle}/notable-followers`. 1 credit.
1599
+
1600
+ Args:
1601
+ handle: X handle without the @. 1-15 characters.
1602
+ sort: influence ranks by graph citation, followers by the count X reports, recent by when the edge was last confirmed.
1603
+ limit: Rows per page, 1 to 500.
1604
+ cursor: Opaque cursor from meta.page.next_cursor.
1605
+ """
1606
+ return self._op("graph_x_notable_followers", {"handle": handle, "sort": sort, "limit": limit, "cursor": cursor}, timeout) # type: ignore[no-any-return]
1607
+
1608
+ def graph_x_card(
1609
+ self,
1610
+ handle: str,
1611
+ *,
1612
+ timeout: Optional[float] = None,
1613
+ ) -> Response[GraphXCardData]:
1614
+ """Follow-graph coverage for one X account.
1615
+
1616
+ `GET /graph/x/{handle}`. 1 credit.
1617
+
1618
+ Args:
1619
+ handle: X handle without the @. 1-15 characters.
1620
+ """
1621
+ return self._op("graph_x_card", {"handle": handle}, timeout) # type: ignore[no-any-return]
1622
+
1623
+ def tools_catalog(
1624
+ self,
1625
+ *,
1626
+ timeout: Optional[float] = None,
1627
+ ) -> Response[ToolsCatalogData]:
1628
+ """List every analysis tool.
1629
+
1630
+ `GET /tools`. 1 credit.
1631
+ """
1632
+ return self._op("tools_catalog", {}, timeout) # type: ignore[no-any-return]
1633
+
1634
+ def tools_valuation(
1635
+ self,
1636
+ handle: str,
1637
+ *,
1638
+ timeout: Optional[float] = None,
1639
+ ) -> Response[ToolsValuationData]:
1640
+ """Value an X account.
1641
+
1642
+ `POST /tools/valuation`. 2 credits, live read.
1643
+
1644
+ Args:
1645
+ handle: X handle. Accepts a bare name, @name, or a profile URL. Also accepted as `username`.
1646
+ """
1647
+ return self._op("tools_valuation", {"handle": handle}, timeout) # type: ignore[no-any-return]
1648
+
1649
+ def tools_shadowban_check(
1650
+ self,
1651
+ handle: str,
1652
+ *,
1653
+ timeout: Optional[float] = None,
1654
+ ) -> Response[ToolsShadowbanCheckData]:
1655
+ """Check an X account for visibility filtering.
1656
+
1657
+ `POST /tools/shadowban-check`. 2 credits, live read.
1658
+
1659
+ Args:
1660
+ handle: X handle. Accepts a bare name, @name, or a profile URL. Also accepted as `username`.
1661
+ """
1662
+ return self._op("tools_shadowban_check", {"handle": handle}, timeout) # type: ignore[no-any-return]
1663
+
1664
+ def tools_follower_audit(
1665
+ self,
1666
+ handle: str,
1667
+ *,
1668
+ timeout: Optional[float] = None,
1669
+ ) -> Response[ToolsFollowerAuditData]:
1670
+ """Audit an X account's followers for fakes.
1671
+
1672
+ `POST /tools/follower-audit`. 2 credits, live read.
1673
+
1674
+ Args:
1675
+ handle: X handle. Accepts a bare name, @name, or a profile URL. Also accepted as `username`.
1676
+ """
1677
+ return self._op("tools_follower_audit", {"handle": handle}, timeout) # type: ignore[no-any-return]
1678
+
1679
+ def tools_engagement_calculator(
1680
+ self,
1681
+ handle: str,
1682
+ *,
1683
+ timeout: Optional[float] = None,
1684
+ ) -> Response[ToolsEngagementCalculatorData]:
1685
+ """Measure an X account's engagement rate.
1686
+
1687
+ `POST /tools/engagement-calculator`. 2 credits, live read.
1688
+
1689
+ Args:
1690
+ handle: X handle. Accepts a bare name, @name, or a profile URL. Also accepted as `username`.
1691
+ """
1692
+ return self._op("tools_engagement_calculator", {"handle": handle}, timeout) # type: ignore[no-any-return]
1693
+
1694
+ def tools_best_posting_time(
1695
+ self,
1696
+ handle: str,
1697
+ *,
1698
+ timeout: Optional[float] = None,
1699
+ ) -> Response[ToolsBestPostingTimeData]:
1700
+ """Find when an X account should post.
1701
+
1702
+ `POST /tools/best-posting-time`. 2 credits, live read.
1703
+
1704
+ Args:
1705
+ handle: X handle. Accepts a bare name, @name, or a profile URL. Also accepted as `username`.
1706
+ """
1707
+ return self._op("tools_best_posting_time", {"handle": handle}, timeout) # type: ignore[no-any-return]
1708
+
1709
+ def tools_algorithm_score(
1710
+ self,
1711
+ handle: str,
1712
+ *,
1713
+ timeout: Optional[float] = None,
1714
+ ) -> Response[ToolsAlgorithmScoreData]:
1715
+ """Score an X account against the ranking signals.
1716
+
1717
+ `POST /tools/algorithm-score`. 2 credits, live read.
1718
+
1719
+ Args:
1720
+ handle: X handle. Accepts a bare name, @name, or a profile URL. Also accepted as `username`.
1721
+ """
1722
+ return self._op("tools_algorithm_score", {"handle": handle}, timeout) # type: ignore[no-any-return]
1723
+
1724
+ def tools_tweet_analyzer(
1725
+ self,
1726
+ tweet: str,
1727
+ *,
1728
+ timeout: Optional[float] = None,
1729
+ ) -> Response[ToolsTweetAnalyzerData]:
1730
+ """Analyze a single X post.
1731
+
1732
+ `POST /tools/tweet-analyzer`. 2 credits, live read.
1733
+
1734
+ Args:
1735
+ tweet: Numeric post id or a full x.com/<user>/status/<id> URL. Also accepted as `tweet_url` or `tweet_id`.
1736
+ """
1737
+ return self._op("tools_tweet_analyzer", {"tweet": tweet}, timeout) # type: ignore[no-any-return]
1738
+
1739
+ def tools_mention_checker(
1740
+ self,
1741
+ handle: str,
1742
+ *,
1743
+ timeout: Optional[float] = None,
1744
+ ) -> Response[ToolsMentionCheckerData]:
1745
+ """See who is mentioning an X account.
1746
+
1747
+ `POST /tools/mention-checker`. 2 credits, live read.
1748
+
1749
+ Args:
1750
+ handle: X handle. Accepts a bare name, @name, or a profile URL. Also accepted as `username`.
1751
+ """
1752
+ return self._op("tools_mention_checker", {"handle": handle}, timeout) # type: ignore[no-any-return]
1753
+
1754
+ def tools_growth_simulator(
1755
+ self,
1756
+ current_followers: int,
1757
+ target_followers: int,
1758
+ *,
1759
+ niche: Optional[Literal["tech", "finance", "crypto", "entertainment", "sports", "politics", "general"]] = None,
1760
+ quality: Optional[Literal["casual", "good", "professional"]] = None,
1761
+ posts_per_day: Optional[int] = None,
1762
+ timeout: Optional[float] = None,
1763
+ ) -> Response[ToolsGrowthSimulatorData]:
1764
+ """Project how long a follower target takes.
1765
+
1766
+ `POST /tools/growth-simulator`. 1 credit.
1767
+
1768
+ Args:
1769
+ current_followers: Follower count today. 0 to 100000000.
1770
+ target_followers: Follower goal. Must be greater than current_followers.
1771
+ niche: Topic weighting applied to daily growth.
1772
+ quality: Content quality tier. Sets the baseline daily gain and the minutes spent per post.
1773
+ posts_per_day: Posting cadence, 1 to 100. Applied as a log2 bonus, so doubling output is worth less each time.
1774
+ """
1775
+ return self._op("tools_growth_simulator", {"current_followers": current_followers, "target_followers": target_followers, "niche": niche, "quality": quality, "posts_per_day": posts_per_day}, timeout) # type: ignore[no-any-return]
1776
+
1777
+ def tools_profile_pic(
1778
+ self,
1779
+ handle: str,
1780
+ *,
1781
+ timeout: Optional[float] = None,
1782
+ ) -> Response[ToolsProfilePicData]:
1783
+ """Fetch an X profile picture URL.
1784
+
1785
+ `GET /tools/profile-pic`. 2 credits, live read.
1786
+
1787
+ Args:
1788
+ handle: X handle. Accepts a bare name, @name, or a profile URL.
1789
+ """
1790
+ return self._op("tools_profile_pic", {"handle": handle}, timeout) # type: ignore[no-any-return]
1791
+
1792
+ def tools_audience_finder(
1793
+ self,
1794
+ platform: Literal["telegram", "tiktok", "x"],
1795
+ *,
1796
+ q: Optional[str] = None,
1797
+ min_audience: Optional[int] = None,
1798
+ max_audience: Optional[int] = None,
1799
+ language: Optional[str] = None,
1800
+ category: Optional[str] = None,
1801
+ sort: Optional[str] = None,
1802
+ page: Optional[int] = None,
1803
+ age: Optional[Literal["all", "pre2013", "pre2016", "pre2020", "post2023"]] = None,
1804
+ ratio: Optional[Literal["all", "r1", "r10", "r100"]] = None,
1805
+ activity: Optional[Literal["all", "low", "normal", "high"]] = None,
1806
+ timeout: Optional[float] = None,
1807
+ ) -> Response[ToolsAudienceFinderData]:
1808
+ """Search the Telegram, TikTok and X catalog.
1809
+
1810
+ `GET /tools/audience-finder`. 1 credit.
1811
+
1812
+ Args:
1813
+ platform: Which catalog to search.
1814
+ q: Full-text search over name and bio. Capped at 80 characters.
1815
+ min_audience: Minimum followers (X, TikTok) or members (Telegram).
1816
+ max_audience: Maximum followers or members.
1817
+ language: ISO language code as classified by our engine, e.g. en, tr, es.
1818
+ category: Category slug as classified by our engine, e.g. ai, crypto, news.
1819
+ sort: Ordering. X supports followers only. Telegram supports subscribers, reach, posts. TikTok supports followers, likes, videos.
1820
+ page: 1-based page. 50 rows per page, 20 pages maximum.
1821
+ age: X only. Account creation window.
1822
+ ratio: X only. Minimum follower-to-following ratio.
1823
+ activity: X only. Posts per day band.
1824
+ """
1825
+ return self._op("tools_audience_finder", {"platform": platform, "q": q, "min_audience": min_audience, "max_audience": max_audience, "language": language, "category": category, "sort": sort, "page": page, "age": age, "ratio": ratio, "activity": activity}, timeout) # type: ignore[no-any-return]
1826
+
1827
+ def tools_tiktok_engagement(
1828
+ self,
1829
+ handle: str,
1830
+ *,
1831
+ timeout: Optional[float] = None,
1832
+ ) -> Response[ToolsTiktokEngagementData]:
1833
+ """Measure a TikTok account's engagement.
1834
+
1835
+ `POST /tools/tiktok/engagement`. 2 credits, live read.
1836
+
1837
+ Args:
1838
+ handle: TikTok username. Accepts @name or a profile URL. Also accepted as `username`.
1839
+ """
1840
+ return self._op("tools_tiktok_engagement", {"handle": handle}, timeout) # type: ignore[no-any-return]
1841
+
1842
+ def tools_tiktok_money(
1843
+ self,
1844
+ handle: str,
1845
+ *,
1846
+ timeout: Optional[float] = None,
1847
+ ) -> Response[ToolsTiktokMoneyData]:
1848
+ """Estimate TikTok brand-deal earnings.
1849
+
1850
+ `POST /tools/tiktok/money`. 2 credits, live read.
1851
+
1852
+ Args:
1853
+ handle: TikTok username. Accepts @name or a profile URL. Also accepted as `username`.
1854
+ """
1855
+ return self._op("tools_tiktok_money", {"handle": handle}, timeout) # type: ignore[no-any-return]
1856
+
1857
+ def tools_youtube_money(
1858
+ self,
1859
+ handle: str,
1860
+ *,
1861
+ timeout: Optional[float] = None,
1862
+ ) -> Response[ToolsYoutubeMoneyData]:
1863
+ """Estimate YouTube ad earnings.
1864
+
1865
+ `POST /tools/youtube/money`. 2 credits, live read.
1866
+
1867
+ Args:
1868
+ handle: YouTube @handle, UC… channel id, or channel URL. Also accepted as `channel` or `url`.
1869
+ """
1870
+ return self._op("tools_youtube_money", {"handle": handle}, timeout) # type: ignore[no-any-return]
1871
+
1872
+ def tools_youtube_channel_value(
1873
+ self,
1874
+ handle: str,
1875
+ *,
1876
+ timeout: Optional[float] = None,
1877
+ ) -> Response[ToolsYoutubeChannelValueData]:
1878
+ """Estimate what a YouTube channel is worth.
1879
+
1880
+ `POST /tools/youtube/channel-value`. 2 credits, live read.
1881
+
1882
+ Args:
1883
+ handle: YouTube @handle, UC… channel id, or channel URL. Also accepted as `channel` or `url`.
1884
+ """
1885
+ return self._op("tools_youtube_channel_value", {"handle": handle}, timeout) # type: ignore[no-any-return]
1886
+
1887
+ def tools_kick_money(
1888
+ self,
1889
+ *,
1890
+ handle: Optional[str] = None,
1891
+ avg_ccv: Optional[float] = None,
1892
+ hours_streamed: Optional[float] = None,
1893
+ followers: Optional[int] = None,
1894
+ hours_watched: Optional[float] = None,
1895
+ timeout: Optional[float] = None,
1896
+ ) -> Response[ToolsKickMoneyData]:
1897
+ """Estimate Kick streamer earnings.
1898
+
1899
+ `POST /tools/kick/money`. 2 credits, live read.
1900
+
1901
+ Args:
1902
+ handle: Kick channel name. Accepts a bare name, @name, or a channel URL. Required unless avg_ccv and hours_streamed are supplied. Also accepted as `channel` or...
1903
+ avg_ccv: Average concurrent viewers over the month. Supplying this together with hours_streamed answers from the numbers and spends no live read.
1904
+ hours_streamed: HOURS PER MONTH on air, 0 to 744 - not per week and not per stream. Required alongside avg_ccv. When the channel is looked up instead, we derive this from the...
1905
+ followers: Follower count. Used only for the audience signal and the turnout line - it contributes nothing to the earnings maths, because a follower who does not watch...
1906
+ hours_watched: Viewer-hours in the same month. Defaults to avg_ccv x hours_streamed, which is the identity our rollup uses.
1907
+ """
1908
+ return self._op("tools_kick_money", {"handle": handle, "avg_ccv": avg_ccv, "hours_streamed": hours_streamed, "followers": followers, "hours_watched": hours_watched}, timeout) # type: ignore[no-any-return]
1909
+
1910
+ def tools_kick_channel_value(
1911
+ self,
1912
+ *,
1913
+ handle: Optional[str] = None,
1914
+ avg_ccv: Optional[float] = None,
1915
+ hours_streamed: Optional[float] = None,
1916
+ followers: Optional[int] = None,
1917
+ hours_watched: Optional[float] = None,
1918
+ peak_ccv: Optional[float] = None,
1919
+ timeout: Optional[float] = None,
1920
+ ) -> Response[ToolsKickChannelValueData]:
1921
+ """Estimate what a Kick channel is worth.
1922
+
1923
+ `POST /tools/kick/channel-value`. 2 credits, live read.
1924
+
1925
+ Args:
1926
+ handle: Kick channel name. Accepts a bare name, @name, or a channel URL. Required unless avg_ccv and hours_streamed are supplied. Also accepted as `channel` or...
1927
+ avg_ccv: Average concurrent viewers over the month. Supplying this together with hours_streamed answers from the numbers and spends no live read.
1928
+ hours_streamed: HOURS PER MONTH on air, 0 to 744 - not per week and not per stream. Required alongside avg_ccv. When the channel is looked up instead, we derive this from the...
1929
+ followers: Follower count. Used only for the audience signal and the turnout line - it contributes nothing to the earnings maths, because a follower who does not watch...
1930
+ hours_watched: Viewer-hours in the same month. Defaults to avg_ccv x hours_streamed, which is the identity our rollup uses.
1931
+ peak_ccv: Peak concurrent viewers in the window. Used to flag an event-driven audience; it does not move the valuation.
1932
+ """
1933
+ return self._op("tools_kick_channel_value", {"handle": handle, "avg_ccv": avg_ccv, "hours_streamed": hours_streamed, "followers": followers, "hours_watched": hours_watched, "peak_ccv": peak_ccv}, timeout) # type: ignore[no-any-return]
1934
+
1935
+ def tools_kick_rank(
1936
+ self,
1937
+ *,
1938
+ handle: Optional[str] = None,
1939
+ followers: Optional[int] = None,
1940
+ avg_ccv: Optional[float] = None,
1941
+ timeout: Optional[float] = None,
1942
+ ) -> Response[ToolsKickRankData]:
1943
+ """Rank a Kick channel by followers and viewership.
1944
+
1945
+ `POST /tools/kick/rank`. 2 credits, live read.
1946
+
1947
+ Args:
1948
+ handle: Kick channel name. Required unless followers is supplied. Also accepted as `channel` or `username`.
1949
+ followers: A bare follower count to place on the ladder. Answers without any lookup at all.
1950
+ avg_ccv: Optional average concurrent viewers, placed on the viewership ladder at the same time. Also free.
1951
+ """
1952
+ return self._op("tools_kick_rank", {"handle": handle, "followers": followers, "avg_ccv": avg_ccv}, timeout) # type: ignore[no-any-return]
1953
+
1954
+ def tools_twitch_money(
1955
+ self,
1956
+ *,
1957
+ handle: Optional[str] = None,
1958
+ avg_ccv: Optional[float] = None,
1959
+ hours_streamed: Optional[float] = None,
1960
+ followers: Optional[int] = None,
1961
+ hours_watched: Optional[float] = None,
1962
+ timeout: Optional[float] = None,
1963
+ ) -> Response[ToolsTwitchMoneyData]:
1964
+ """Estimate Twitch streamer earnings.
1965
+
1966
+ `POST /tools/twitch/money`. 2 credits, live read.
1967
+
1968
+ Args:
1969
+ handle: Twitch channel name. Accepts a bare name, @name, or a channel URL. Required unless avg_ccv and hours_streamed are supplied. Also accepted as `channel` or...
1970
+ avg_ccv: Average concurrent viewers over the month. Supplying this together with hours_streamed answers from the numbers and spends no live read.
1971
+ hours_streamed: HOURS PER MONTH on air, 0 to 744 - not per week and not per stream. Required alongside avg_ccv. When the channel is looked up instead, we derive this from the...
1972
+ followers: Follower count. Used only for the audience signal and the turnout line - it contributes nothing to the earnings maths, because a follower who does not watch...
1973
+ hours_watched: Viewer-hours in the same month. Defaults to avg_ccv x hours_streamed, which is the identity our rollup uses.
1974
+ """
1975
+ return self._op("tools_twitch_money", {"handle": handle, "avg_ccv": avg_ccv, "hours_streamed": hours_streamed, "followers": followers, "hours_watched": hours_watched}, timeout) # type: ignore[no-any-return]
1976
+
1977
+ def tools_twitch_channel_value(
1978
+ self,
1979
+ *,
1980
+ handle: Optional[str] = None,
1981
+ avg_ccv: Optional[float] = None,
1982
+ hours_streamed: Optional[float] = None,
1983
+ followers: Optional[int] = None,
1984
+ hours_watched: Optional[float] = None,
1985
+ peak_ccv: Optional[float] = None,
1986
+ timeout: Optional[float] = None,
1987
+ ) -> Response[ToolsTwitchChannelValueData]:
1988
+ """Estimate what a Twitch channel is worth.
1989
+
1990
+ `POST /tools/twitch/channel-value`. 2 credits, live read.
1991
+
1992
+ Args:
1993
+ handle: Twitch channel name. Accepts a bare name, @name, or a channel URL. Required unless avg_ccv and hours_streamed are supplied. Also accepted as `channel` or...
1994
+ avg_ccv: Average concurrent viewers over the month. Supplying this together with hours_streamed answers from the numbers and spends no live read.
1995
+ hours_streamed: HOURS PER MONTH on air, 0 to 744 - not per week and not per stream. Required alongside avg_ccv. When the channel is looked up instead, we derive this from the...
1996
+ followers: Follower count. Used only for the audience signal and the turnout line - it contributes nothing to the earnings maths, because a follower who does not watch...
1997
+ hours_watched: Viewer-hours in the same month. Defaults to avg_ccv x hours_streamed, which is the identity our rollup uses.
1998
+ peak_ccv: Peak concurrent viewers in the window. Used to flag an event-driven audience; it does not move the valuation.
1999
+ """
2000
+ return self._op("tools_twitch_channel_value", {"handle": handle, "avg_ccv": avg_ccv, "hours_streamed": hours_streamed, "followers": followers, "hours_watched": hours_watched, "peak_ccv": peak_ccv}, timeout) # type: ignore[no-any-return]
2001
+
2002
+ def tools_twitch_rank(
2003
+ self,
2004
+ *,
2005
+ handle: Optional[str] = None,
2006
+ followers: Optional[int] = None,
2007
+ avg_ccv: Optional[float] = None,
2008
+ timeout: Optional[float] = None,
2009
+ ) -> Response[ToolsTwitchRankData]:
2010
+ """Rank a Twitch channel by followers and viewership.
2011
+
2012
+ `POST /tools/twitch/rank`. 2 credits, live read.
2013
+
2014
+ Args:
2015
+ handle: Twitch channel name. Required unless followers is supplied. Also accepted as `channel` or `username`.
2016
+ followers: A bare follower count to place on the ladder. Answers without any lookup at all.
2017
+ avg_ccv: Optional average concurrent viewers, placed on the viewership ladder at the same time. Also free.
2018
+ """
2019
+ return self._op("tools_twitch_rank", {"handle": handle, "followers": followers, "avg_ccv": avg_ccv}, timeout) # type: ignore[no-any-return]
2020
+
2021
+ def leads_linkedin_domain(
2022
+ self,
2023
+ domain: str,
2024
+ *,
2025
+ timeout: Optional[float] = None,
2026
+ ) -> Response[LeadsLinkedinDomainData]:
2027
+ """Enrich a company from its website domain.
2028
+
2029
+ `GET /leads/linkedin/domains/{domain}`. 1 credit.
2030
+
2031
+ Args:
2032
+ domain: Company website domain. A bare host, a full URL or an email address are all accepted and normalised the same way.
2033
+ """
2034
+ return self._op("leads_linkedin_domain", {"domain": domain}, timeout) # type: ignore[no-any-return]
2035
+
2036
+ def leads_linkedin_segments(
2037
+ self,
2038
+ *,
2039
+ by: Optional[Literal["industry", "country", "size_band", "founded_decade"]] = None,
2040
+ industry: Optional[str] = None,
2041
+ country: Optional[str] = None,
2042
+ size_band: Optional[str] = None,
2043
+ min_staff: Optional[int] = None,
2044
+ max_staff: Optional[int] = None,
2045
+ timeout: Optional[float] = None,
2046
+ ) -> Response[LeadsLinkedinSegmentsData]:
2047
+ """Firmographic market sizing with real counts.
2048
+
2049
+ `GET /leads/linkedin/segments`. 1 credit.
2050
+
2051
+ Args:
2052
+ by: Dimension to group on.
2053
+ industry: Restrict to one industry, exactly as LinkedIn writes it.
2054
+ country: ISO 3166-1 alpha-2. Matched against country_code, never the free text.
2055
+ size_band: LinkedIn size band, e.g. '51-200 employees'.
2056
+ min_staff: Lower bound on exact headcount. Companies with no headcount are excluded.
2057
+ max_staff: Upper bound on exact headcount. Companies with no headcount are excluded.
2058
+ """
2059
+ return self._op("leads_linkedin_segments", {"by": by, "industry": industry, "country": country, "size_band": size_band, "min_staff": min_staff, "max_staff": max_staff}, timeout) # type: ignore[no-any-return]
2060
+
2061
+ def leads_linkedin_companies_list(
2062
+ self,
2063
+ *,
2064
+ country: Optional[str] = None,
2065
+ industry: Optional[str] = None,
2066
+ size: Optional[str] = None,
2067
+ has_email: Optional[bool] = None,
2068
+ has_website: Optional[bool] = None,
2069
+ has_decision_maker: Optional[bool] = None,
2070
+ has_social: Optional[bool] = None,
2071
+ min_followers: Optional[int] = None,
2072
+ active_days: Optional[int] = None,
2073
+ q: Optional[str] = None,
2074
+ sort: Optional[Literal["followers", "readiness", "recent", "staff"]] = None,
2075
+ limit: Optional[int] = None,
2076
+ cursor: Optional[str] = None,
2077
+ timeout: Optional[float] = None,
2078
+ ) -> Response[LeadsLinkedinCompaniesListData]:
2079
+ """LinkedIn company records, filterable.
2080
+
2081
+ `GET /leads/linkedin/companies`. 1 credit.
2082
+
2083
+ Args:
2084
+ country: ISO 3166-1 alpha-2, derived by the engine from the free-text location. LinkedIn writes 'City, Region' and rarely names a country, so filter on this rather than...
2085
+ industry: Industry exactly as LinkedIn labels it.
2086
+ size: Employee band exactly as LinkedIn labels it. Applied inside the scan window - see the pagination note.
2087
+ has_email: Only companies with at least one non-suppressed contact address.
2088
+ has_website: Only companies with a resolved website domain. Applied inside the scan window.
2089
+ has_decision_maker: Only companies where we can name a founder, C-level, VP or director.
2090
+ has_social: Only companies with a social handle that matched a row in one of our catalogs.
2091
+ min_followers: LinkedIn follower floor.
2092
+ active_days: Only companies that posted within this many days.
2093
+ q: Substring match on company name, slug or website domain.
2094
+ sort: readiness orders by the columns the contactability score is built from, then applies the exact score to the page.
2095
+ limit: Rows per page, 1-200.
2096
+ cursor: Opaque cursor from meta.page.next_cursor.
2097
+ """
2098
+ return self._op("leads_linkedin_companies_list", {"country": country, "industry": industry, "size": size, "has_email": has_email, "has_website": has_website, "has_decision_maker": has_decision_maker, "has_social": has_social, "min_followers": min_followers, "active_days": active_days, "q": q, "sort": sort, "limit": limit, "cursor": cursor}, timeout) # type: ignore[no-any-return]
2099
+
2100
+ def leads_linkedin_companies_get(
2101
+ self,
2102
+ id: str,
2103
+ *,
2104
+ timeout: Optional[float] = None,
2105
+ ) -> Response[LeadsLinkedinCompaniesGetData]:
2106
+ """One company with socials, contacts and decision makers.
2107
+
2108
+ `GET /leads/linkedin/companies/{id}`. 1 credit.
2109
+
2110
+ Args:
2111
+ id: Company slug, the last path segment of its linkedin.com/company/ URL.
2112
+ """
2113
+ return self._op("leads_linkedin_companies_get", {"id": id}, timeout) # type: ignore[no-any-return]
2114
+
2115
+ def leads_linkedin_people_list(
2116
+ self,
2117
+ *,
2118
+ company: Optional[str] = None,
2119
+ seniority: Optional[Literal["founder", "c_level", "vp", "director", "manager", "staff", "unknown"]] = None,
2120
+ decision_makers: Optional[bool] = None,
2121
+ title: Optional[str] = None,
2122
+ country: Optional[str] = None,
2123
+ industry: Optional[str] = None,
2124
+ limit: Optional[int] = None,
2125
+ cursor: Optional[str] = None,
2126
+ timeout: Optional[float] = None,
2127
+ ) -> Response[LeadsLinkedinPeopleListData]:
2128
+ """Named people and decision makers.
2129
+
2130
+ `GET /leads/linkedin/people`. 1 credit.
2131
+
2132
+ Args:
2133
+ company: Company slug.
2134
+ seniority: Exact seniority band.
2135
+ decision_makers: Shortcut for founder, c_level, vp and director together. Overrides seniority when both are given.
2136
+ title: Case-insensitive substring match against job title and LinkedIn headline.
2137
+ country: ISO 3166-1 alpha-2 of the person's company.
2138
+ industry: Industry of the person's company.
2139
+ limit: Rows per page, 1-200.
2140
+ cursor: Opaque cursor from meta.page.next_cursor.
2141
+ """
2142
+ return self._op("leads_linkedin_people_list", {"company": company, "seniority": seniority, "decision_makers": decision_makers, "title": title, "country": country, "industry": industry, "limit": limit, "cursor": cursor}, timeout) # type: ignore[no-any-return]
2143
+
2144
+
2145
+ class AsyncOperations:
2146
+ """One typed method per endpoint. Mixed into the client; see `AsyncHandlesApi`."""
2147
+
2148
+ async def _op(self, name: str, args: Mapping[str, Any], timeout: Optional[float] = None) -> Any:
2149
+ raise NotImplementedError
2150
+
2151
+ async def accounts_platforms(
2152
+ self,
2153
+ *,
2154
+ timeout: Optional[float] = None,
2155
+ ) -> Response[AccountsPlatformsData]:
2156
+ """What a check can answer, per platform.
2157
+
2158
+ `GET /accounts/platforms`. 1 credit.
2159
+ """
2160
+ return await self._op("accounts_platforms", {}, timeout) # type: ignore[no-any-return]
2161
+
2162
+ async def accounts_check(
2163
+ self,
2164
+ platform: Literal["x", "instagram", "tiktok", "youtube", "telegram", "bluesky", "kick", "twitch", "linkedin"],
2165
+ handle: str,
2166
+ *,
2167
+ timeout: Optional[float] = None,
2168
+ ) -> Response[AccountsCheckData]:
2169
+ """Check one account against our catalog.
2170
+
2171
+ `GET /accounts/{platform}/{handle}`. 1 credit.
2172
+
2173
+ Args:
2174
+ platform: Which platform the handle belongs to.
2175
+ handle: The account handle, with or without the @. Bluesky handles are domains and a bare name is completed to <name>.bsky.social. LinkedIn takes the company slug.
2176
+ """
2177
+ return await self._op("accounts_check", {"platform": platform, "handle": handle}, timeout) # type: ignore[no-any-return]
2178
+
2179
+ async def accounts_live(
2180
+ self,
2181
+ platform: Literal["x", "instagram", "tiktok", "youtube", "telegram", "bluesky", "kick", "twitch", "linkedin"],
2182
+ handle: str,
2183
+ *,
2184
+ catalog: Optional[bool] = None,
2185
+ timeout: Optional[float] = None,
2186
+ ) -> Response[AccountsLiveData]:
2187
+ """Check one account live, at the source.
2188
+
2189
+ `GET /accounts/{platform}/{handle}/live`. 2 credits, live read.
2190
+
2191
+ Args:
2192
+ platform: Which platform the handle belongs to.
2193
+ handle: The account handle, with or without the @. LinkedIn takes the company slug.
2194
+ catalog: Include what our catalog knows alongside the live reading. Costs one index probe. Turn it off if you only want the live number.
2195
+ """
2196
+ return await self._op("accounts_live", {"platform": platform, "handle": handle, "catalog": catalog}, timeout) # type: ignore[no-any-return]
2197
+
2198
+ async def accounts_bulk(
2199
+ self,
2200
+ targets: Sequence[Any],
2201
+ *,
2202
+ timeout: Optional[float] = None,
2203
+ ) -> Response[AccountsBulkData]:
2204
+ """Check up to 50 accounts at once.
2205
+
2206
+ `POST /accounts/check`. 1 credit.
2207
+
2208
+ Args:
2209
+ targets: Array of { platform, handle } objects, at most 50. Duplicate pairs are collapsed.
2210
+ """
2211
+ return await self._op("accounts_bulk", {"targets": targets}, timeout) # type: ignore[no-any-return]
2212
+
2213
+ async def accounts_resolve(
2214
+ self,
2215
+ handle: str,
2216
+ *,
2217
+ platforms: Optional[Literal["x", "instagram", "tiktok", "youtube", "telegram", "bluesky", "kick", "twitch", "linkedin"]] = None,
2218
+ timeout: Optional[float] = None,
2219
+ ) -> Response[AccountsResolveData]:
2220
+ """Find one handle on every platform at once.
2221
+
2222
+ `GET /accounts/resolve`. 1 credit.
2223
+
2224
+ Args:
2225
+ handle: One handle, with or without the @.
2226
+ platforms: Comma-separated subset to check. Defaults to all seven.
2227
+ """
2228
+ return await self._op("accounts_resolve", {"handle": handle, "platforms": platforms}, timeout) # type: ignore[no-any-return]
2229
+
2230
+ async def directory_index(
2231
+ self,
2232
+ *,
2233
+ timeout: Optional[float] = None,
2234
+ ) -> Response[DirectoryIndexData]:
2235
+ """Catalog capability map.
2236
+
2237
+ `GET /directory`. 1 credit.
2238
+ """
2239
+ return await self._op("directory_index", {}, timeout) # type: ignore[no-any-return]
2240
+
2241
+ async def directory_list(
2242
+ self,
2243
+ platform: Literal["x", "telegram", "bluesky", "youtube", "tiktok", "instagram", "kick", "twitch"],
2244
+ *,
2245
+ limit: Optional[int] = None,
2246
+ cursor: Optional[str] = None,
2247
+ sort: Optional[str] = None,
2248
+ order: Optional[Literal["asc", "desc"]] = None,
2249
+ q: Optional[str] = None,
2250
+ search: Optional[str] = None,
2251
+ fields: Optional[str] = None,
2252
+ scope: Optional[Literal["addressable", "all"]] = None,
2253
+ min_followers: Optional[int] = None,
2254
+ country: Optional[str] = None,
2255
+ language: Optional[str] = None,
2256
+ category: Optional[str] = None,
2257
+ timeout: Optional[float] = None,
2258
+ ) -> Response[DirectoryListData]:
2259
+ """List and filter a catalog.
2260
+
2261
+ `GET /directory/{platform}`. 1 credit.
2262
+
2263
+ Args:
2264
+ platform: Which catalog to read.
2265
+ limit: Rows per page, 1 to 500.
2266
+ cursor: Opaque keyset position from meta.page.next_cursor. Signed; a hand-written cursor is rejected.
2267
+ sort: Sort key. `id` walks the primary key and is the cheapest full-corpus order; the platform's audience metric (followers / subscribers) is the default and is...
2268
+ order: Sort direction.
2269
+ q: Full-text search over name and bio, served by the catalog's GIN index. Available on X, Instagram, TikTok, YouTube and Telegram; Bluesky has no such index and...
2270
+ search: Substring match on handle and display name. Unindexed by construction, so it is applied inside the audience-ordered candidate window rather than to the whole...
2271
+ fields: Comma-separated projection. Any field listed by GET /directory for that platform, plus weekly_growth. Omitting weekly_growth skips a per-row snapshot lookup.
2272
+ scope: `addressable` (default) is the active, non-NSFW, handled catalog - the rows a public page can link to, and the only scope the ranked indexes cover. `all` is...
2273
+ min_followers: Audience floor. Every platform has a min/max pair on its own metric: min_followers (X, Bluesky, TikTok), min_participants (Telegram), min_subscribers (YouTube).
2274
+ country: ISO 3166-1 alpha-2, as inferred by the engine's geo classifier. Not available on TikTok.
2275
+ language: ISO 639-1, as inferred by the engine's language classifier.
2276
+ category: Topic category slug.
2277
+ """
2278
+ return await self._op("directory_list", {"platform": platform, "limit": limit, "cursor": cursor, "sort": sort, "order": order, "q": q, "search": search, "fields": fields, "scope": scope, "min_followers": min_followers, "country": country, "language": language, "category": category}, timeout) # type: ignore[no-any-return]
2279
+
2280
+ async def directory_get(
2281
+ self,
2282
+ platform: Literal["x", "telegram", "bluesky", "youtube", "tiktok", "instagram", "kick", "twitch"],
2283
+ id: str,
2284
+ *,
2285
+ include: Optional[Literal["growth", "followers", "engagement", "similar"]] = None,
2286
+ timeout: Optional[float] = None,
2287
+ ) -> Response[DirectoryGetData]:
2288
+ """One account or channel.
2289
+
2290
+ `GET /directory/{platform}/{id}`. 1 credit.
2291
+
2292
+ Args:
2293
+ platform: Which catalog to read.
2294
+ id: Handle (case-insensitive, with or without @) or platform id. X, Instagram and TikTok accept the numeric user id, YouTube accepts the channel id, Bluesky...
2295
+ include: Comma-separated extras. growth = last 30 daily points. followers = the largest accounts within a sample of the inbound edges we hold, up to 10. engagement =...
2296
+ """
2297
+ return await self._op("directory_get", {"platform": platform, "id": id, "include": include}, timeout) # type: ignore[no-any-return]
2298
+
2299
+ async def directory_growth(
2300
+ self,
2301
+ platform: Literal["x", "telegram", "bluesky", "youtube", "tiktok", "instagram", "kick", "twitch"],
2302
+ id: str,
2303
+ *,
2304
+ days: Optional[int] = None,
2305
+ timeout: Optional[float] = None,
2306
+ ) -> Response[DirectoryGrowthData]:
2307
+ """Daily audience history.
2308
+
2309
+ `GET /directory/{platform}/{id}/growth`. 1 credit.
2310
+
2311
+ Args:
2312
+ platform: Which catalog to read.
2313
+ id: Handle (case-insensitive, with or without @) or platform id. X, Instagram and TikTok accept the numeric user id, YouTube accepts the channel id, Bluesky...
2314
+ days: How far back to read, 1 to 365 days.
2315
+ """
2316
+ return await self._op("directory_growth", {"platform": platform, "id": id, "days": days}, timeout) # type: ignore[no-any-return]
2317
+
2318
+ async def directory_followers(
2319
+ self,
2320
+ platform: Literal["x", "telegram", "bluesky", "youtube", "tiktok", "instagram", "kick", "twitch"],
2321
+ id: str,
2322
+ *,
2323
+ limit: Optional[int] = None,
2324
+ cursor: Optional[str] = None,
2325
+ timeout: Optional[float] = None,
2326
+ ) -> Response[DirectoryFollowersData]:
2327
+ """Inbound graph edges.
2328
+
2329
+ `GET /directory/{platform}/{id}/followers`. 1 credit.
2330
+
2331
+ Args:
2332
+ platform: Which catalog to read.
2333
+ id: Handle (case-insensitive, with or without @) or platform id. X, Instagram and TikTok accept the numeric user id, YouTube accepts the channel id, Bluesky...
2334
+ limit: Edges per page, 1 to 500.
2335
+ cursor: Keyset position from meta.page.next_cursor.
2336
+ """
2337
+ return await self._op("directory_followers", {"platform": platform, "id": id, "limit": limit, "cursor": cursor}, timeout) # type: ignore[no-any-return]
2338
+
2339
+ async def directory_following(
2340
+ self,
2341
+ platform: Literal["x", "telegram", "bluesky", "youtube", "tiktok", "instagram", "kick", "twitch"],
2342
+ id: str,
2343
+ *,
2344
+ limit: Optional[int] = None,
2345
+ cursor: Optional[str] = None,
2346
+ timeout: Optional[float] = None,
2347
+ ) -> Response[DirectoryFollowingData]:
2348
+ """Outbound graph edges.
2349
+
2350
+ `GET /directory/{platform}/{id}/following`. 1 credit.
2351
+
2352
+ Args:
2353
+ platform: Which catalog to read.
2354
+ id: Handle (case-insensitive, with or without @) or platform id. X, Instagram and TikTok accept the numeric user id, YouTube accepts the channel id, Bluesky...
2355
+ limit: Edges per page, 1 to 500.
2356
+ cursor: Keyset position from meta.page.next_cursor.
2357
+ """
2358
+ return await self._op("directory_following", {"platform": platform, "id": id, "limit": limit, "cursor": cursor}, timeout) # type: ignore[no-any-return]
2359
+
2360
+ async def directory_bulk(
2361
+ self,
2362
+ platform: Literal["x", "telegram", "bluesky", "youtube", "tiktok", "instagram", "kick", "twitch"],
2363
+ *,
2364
+ handles: Optional[Sequence[Any]] = None,
2365
+ ids: Optional[Sequence[Any]] = None,
2366
+ timeout: Optional[float] = None,
2367
+ ) -> Response[DirectoryBulkData]:
2368
+ """Resolve up to 100 records at once.
2369
+
2370
+ `POST /directory/{platform}/bulk`. 1 credit.
2371
+
2372
+ Args:
2373
+ platform: Which catalog to read.
2374
+ handles: Up to 100 handles. Case-insensitive, a leading @ is stripped. Send this or 'ids', not both.
2375
+ ids: Up to 100 platform ids (numeric for X, Instagram, TikTok and Telegram, channel id for YouTube, DID for Bluesky).
2376
+ """
2377
+ return await self._op("directory_bulk", {"platform": platform, "handles": handles, "ids": ids}, timeout) # type: ignore[no-any-return]
2378
+
2379
+ async def directory_facets(
2380
+ self,
2381
+ platform: Literal["x", "telegram", "bluesky", "youtube", "tiktok", "instagram", "kick", "twitch"],
2382
+ *,
2383
+ axes: Optional[Literal["language", "country", "category", "followers"]] = None,
2384
+ timeout: Optional[float] = None,
2385
+ ) -> Response[DirectoryFacetsData]:
2386
+ """Distribution of the catalog.
2387
+
2388
+ `GET /directory/{platform}/facets`. 1 credit.
2389
+
2390
+ Args:
2391
+ platform: Which catalog to read.
2392
+ axes: Comma-separated axes to compute. Defaults to all four.
2393
+ """
2394
+ return await self._op("directory_facets", {"platform": platform, "axes": axes}, timeout) # type: ignore[no-any-return]
2395
+
2396
+ async def directory_search(
2397
+ self,
2398
+ q: str,
2399
+ *,
2400
+ limit: Optional[int] = None,
2401
+ platforms: Optional[Literal["x", "telegram", "bluesky", "youtube", "tiktok", "instagram", "kick", "twitch"]] = None,
2402
+ timeout: Optional[float] = None,
2403
+ ) -> Response[DirectorySearchData]:
2404
+ """Search every platform at once.
2405
+
2406
+ `GET /directory/search`. 1 credit.
2407
+
2408
+ Args:
2409
+ q: Search term, 2 to 120 characters.
2410
+ limit: Records per platform, 1 to 25.
2411
+ platforms: Comma-separated subset to search. Defaults to all six.
2412
+ """
2413
+ return await self._op("directory_search", {"q": q, "limit": limit, "platforms": platforms}, timeout) # type: ignore[no-any-return]
2414
+
2415
+ async def x_users_get(
2416
+ self,
2417
+ handle: str,
2418
+ *,
2419
+ fresh: Optional[bool] = None,
2420
+ timeout: Optional[float] = None,
2421
+ ) -> Response[XUsersGetData]:
2422
+ """One X profile, live.
2423
+
2424
+ `GET /x/users/{handle}`. 2 credits, live read.
2425
+
2426
+ Args:
2427
+ handle: X handle, with or without @. A full x.com URL is accepted and stripped.
2428
+ fresh: Bypass the upstream's 60-second burst cache. Only worth it when you are checking something that changed seconds ago - a bio the owner just edited - because it...
2429
+ """
2430
+ return await self._op("x_users_get", {"handle": handle, "fresh": fresh}, timeout) # type: ignore[no-any-return]
2431
+
2432
+ async def x_users_about(
2433
+ self,
2434
+ handle: str,
2435
+ *,
2436
+ timeout: Optional[float] = None,
2437
+ ) -> Response[XUsersAboutData]:
2438
+ """X's About this account panel.
2439
+
2440
+ `GET /x/users/{handle}/about`. 2 credits, live read.
2441
+
2442
+ Args:
2443
+ handle: X handle, with or without @. A full x.com URL is accepted and stripped.
2444
+ """
2445
+ return await self._op("x_users_about", {"handle": handle}, timeout) # type: ignore[no-any-return]
2446
+
2447
+ async def x_users_tweets(
2448
+ self,
2449
+ handle: str,
2450
+ *,
2451
+ limit: Optional[int] = None,
2452
+ cursor: Optional[str] = None,
2453
+ include_replies: Optional[bool] = None,
2454
+ timeout: Optional[float] = None,
2455
+ ) -> Response[XUsersTweetsData]:
2456
+ """An account's timeline.
2457
+
2458
+ `GET /x/users/{handle}/tweets`. 2 credits, live read.
2459
+
2460
+ Args:
2461
+ handle: X handle, with or without @. A full x.com URL is accepted and stripped.
2462
+ limit: Rows in this page, 1-100. The ceiling is the service's, not yours: asking for more returns the ceiling rather than an error.
2463
+ cursor: Opaque token from a previous response's next_cursor.
2464
+ include_replies: Widen to the replies timeline: everything the account posted, including replies to other people.
2465
+ """
2466
+ return await self._op("x_users_tweets", {"handle": handle, "limit": limit, "cursor": cursor, "include_replies": include_replies}, timeout) # type: ignore[no-any-return]
2467
+
2468
+ async def x_users_media(
2469
+ self,
2470
+ handle: str,
2471
+ *,
2472
+ limit: Optional[int] = None,
2473
+ cursor: Optional[str] = None,
2474
+ timeout: Optional[float] = None,
2475
+ ) -> Response[XUsersMediaData]:
2476
+ """An account's media timeline.
2477
+
2478
+ `GET /x/users/{handle}/media`. 2 credits, live read.
2479
+
2480
+ Args:
2481
+ handle: X handle, with or without @. A full x.com URL is accepted and stripped.
2482
+ limit: Rows in this page, 1-100. The ceiling is the service's, not yours: asking for more returns the ceiling rather than an error.
2483
+ cursor: Opaque token from a previous response's next_cursor.
2484
+ """
2485
+ return await self._op("x_users_media", {"handle": handle, "limit": limit, "cursor": cursor}, timeout) # type: ignore[no-any-return]
2486
+
2487
+ async def x_users_mentions(
2488
+ self,
2489
+ handle: str,
2490
+ *,
2491
+ limit: Optional[int] = None,
2492
+ cursor: Optional[str] = None,
2493
+ timeout: Optional[float] = None,
2494
+ ) -> Response[XUsersMentionsData]:
2495
+ """Posts mentioning an account.
2496
+
2497
+ `GET /x/users/{handle}/mentions`. 2 credits, live read.
2498
+
2499
+ Args:
2500
+ handle: X handle, with or without @. A full x.com URL is accepted and stripped.
2501
+ limit: Rows in this page, 1-100. The ceiling is the service's, not yours: asking for more returns the ceiling rather than an error.
2502
+ cursor: Opaque token from a previous response's next_cursor.
2503
+ """
2504
+ return await self._op("x_users_mentions", {"handle": handle, "limit": limit, "cursor": cursor}, timeout) # type: ignore[no-any-return]
2505
+
2506
+ async def x_users_followers(
2507
+ self,
2508
+ handle: str,
2509
+ *,
2510
+ limit: Optional[int] = None,
2511
+ cursor: Optional[str] = None,
2512
+ timeout: Optional[float] = None,
2513
+ ) -> Response[XUsersFollowersData]:
2514
+ """Followers, newest first.
2515
+
2516
+ `GET /x/users/{handle}/followers`. 2 credits, live read.
2517
+
2518
+ Args:
2519
+ handle: X handle, with or without @. A full x.com URL is accepted and stripped.
2520
+ limit: Rows in this page, 1-200. The ceiling is the service's, not yours: asking for more returns the ceiling rather than an error.
2521
+ cursor: Opaque token from a previous response's next_cursor.
2522
+ """
2523
+ return await self._op("x_users_followers", {"handle": handle, "limit": limit, "cursor": cursor}, timeout) # type: ignore[no-any-return]
2524
+
2525
+ async def x_users_verified_followers(
2526
+ self,
2527
+ handle: str,
2528
+ *,
2529
+ limit: Optional[int] = None,
2530
+ cursor: Optional[str] = None,
2531
+ timeout: Optional[float] = None,
2532
+ ) -> Response[XUsersVerifiedFollowersData]:
2533
+ """Verified followers only.
2534
+
2535
+ `GET /x/users/{handle}/verified-followers`. 2 credits, live read.
2536
+
2537
+ Args:
2538
+ handle: X handle, with or without @. A full x.com URL is accepted and stripped.
2539
+ limit: Rows in this page, 1-200. The ceiling is the service's, not yours: asking for more returns the ceiling rather than an error.
2540
+ cursor: Opaque token from a previous response's next_cursor.
2541
+ """
2542
+ return await self._op("x_users_verified_followers", {"handle": handle, "limit": limit, "cursor": cursor}, timeout) # type: ignore[no-any-return]
2543
+
2544
+ async def x_users_follower_ids(
2545
+ self,
2546
+ handle: str,
2547
+ *,
2548
+ limit: Optional[int] = None,
2549
+ cursor: Optional[str] = None,
2550
+ timeout: Optional[float] = None,
2551
+ ) -> Response[XUsersFollowerIdsData]:
2552
+ """Follower ids in bulk.
2553
+
2554
+ `GET /x/users/{handle}/followers/ids`. 2 credits, live read.
2555
+
2556
+ Args:
2557
+ handle: X handle, with or without @. A full x.com URL is accepted and stripped.
2558
+ limit: Rows in this page, 1-5000. The ceiling is the service's, not yours: asking for more returns the ceiling rather than an error.
2559
+ cursor: Opaque token from a previous response's next_cursor.
2560
+ """
2561
+ return await self._op("x_users_follower_ids", {"handle": handle, "limit": limit, "cursor": cursor}, timeout) # type: ignore[no-any-return]
2562
+
2563
+ async def x_users_following(
2564
+ self,
2565
+ handle: str,
2566
+ *,
2567
+ limit: Optional[int] = None,
2568
+ cursor: Optional[str] = None,
2569
+ timeout: Optional[float] = None,
2570
+ ) -> Response[XUsersFollowingData]:
2571
+ """Who an account follows.
2572
+
2573
+ `GET /x/users/{handle}/following`. 2 credits, live read.
2574
+
2575
+ Args:
2576
+ handle: X handle, with or without @. A full x.com URL is accepted and stripped.
2577
+ limit: Rows in this page, 1-200. The ceiling is the service's, not yours: asking for more returns the ceiling rather than an error.
2578
+ cursor: Opaque token from a previous response's next_cursor.
2579
+ """
2580
+ return await self._op("x_users_following", {"handle": handle, "limit": limit, "cursor": cursor}, timeout) # type: ignore[no-any-return]
2581
+
2582
+ async def x_users_relationship(
2583
+ self,
2584
+ handle: str,
2585
+ target: str,
2586
+ *,
2587
+ timeout: Optional[float] = None,
2588
+ ) -> Response[XUsersRelationshipData]:
2589
+ """Does one account follow another.
2590
+
2591
+ `GET /x/users/{handle}/relationship`. 2 credits, live read.
2592
+
2593
+ Args:
2594
+ handle: The account the question is asked from: does THIS account follow the target?
2595
+ target: The other account.
2596
+ """
2597
+ return await self._op("x_users_relationship", {"handle": handle, "target": target}, timeout) # type: ignore[no-any-return]
2598
+
2599
+ async def x_tweets_get(
2600
+ self,
2601
+ id: str,
2602
+ *,
2603
+ timeout: Optional[float] = None,
2604
+ ) -> Response[XTweetsGetData]:
2605
+ """One post.
2606
+
2607
+ `GET /x/tweets/{id}`. 2 credits, live read.
2608
+
2609
+ Args:
2610
+ id: Numeric post id - the digits at the end of an x.com/.../status/... link.
2611
+ """
2612
+ return await self._op("x_tweets_get", {"id": id}, timeout) # type: ignore[no-any-return]
2613
+
2614
+ async def x_tweets_batch(
2615
+ self,
2616
+ ids: str,
2617
+ *,
2618
+ timeout: Optional[float] = None,
2619
+ ) -> Response[XTweetsBatchData]:
2620
+ """Posts by id, batched.
2621
+
2622
+ `GET /x/tweets`. 2 credits, live read.
2623
+
2624
+ Args:
2625
+ ids: Comma-separated numeric post ids, at most 100.
2626
+ """
2627
+ return await self._op("x_tweets_batch", {"ids": ids}, timeout) # type: ignore[no-any-return]
2628
+
2629
+ async def x_tweets_replies(
2630
+ self,
2631
+ id: str,
2632
+ *,
2633
+ limit: Optional[int] = None,
2634
+ cursor: Optional[str] = None,
2635
+ timeout: Optional[float] = None,
2636
+ ) -> Response[XTweetsRepliesData]:
2637
+ """Direct replies to a post.
2638
+
2639
+ `GET /x/tweets/{id}/replies`. 2 credits, live read.
2640
+
2641
+ Args:
2642
+ id: Numeric post id - the digits at the end of an x.com/.../status/... link.
2643
+ limit: Rows in this page, 1-100. The ceiling is the service's, not yours: asking for more returns the ceiling rather than an error.
2644
+ cursor: Opaque token from a previous response's next_cursor.
2645
+ """
2646
+ return await self._op("x_tweets_replies", {"id": id, "limit": limit, "cursor": cursor}, timeout) # type: ignore[no-any-return]
2647
+
2648
+ async def x_tweets_thread(
2649
+ self,
2650
+ id: str,
2651
+ *,
2652
+ limit: Optional[int] = None,
2653
+ cursor: Optional[str] = None,
2654
+ timeout: Optional[float] = None,
2655
+ ) -> Response[XTweetsThreadData]:
2656
+ """The whole conversation.
2657
+
2658
+ `GET /x/tweets/{id}/thread`. 2 credits, live read.
2659
+
2660
+ Args:
2661
+ id: Numeric post id - the digits at the end of an x.com/.../status/... link.
2662
+ limit: Rows in this page, 1-100. The ceiling is the service's, not yours: asking for more returns the ceiling rather than an error.
2663
+ cursor: Opaque token from a previous response's next_cursor.
2664
+ """
2665
+ return await self._op("x_tweets_thread", {"id": id, "limit": limit, "cursor": cursor}, timeout) # type: ignore[no-any-return]
2666
+
2667
+ async def x_tweets_quotes(
2668
+ self,
2669
+ id: str,
2670
+ *,
2671
+ limit: Optional[int] = None,
2672
+ cursor: Optional[str] = None,
2673
+ timeout: Optional[float] = None,
2674
+ ) -> Response[XTweetsQuotesData]:
2675
+ """Quote posts of a post.
2676
+
2677
+ `GET /x/tweets/{id}/quotes`. 2 credits, live read.
2678
+
2679
+ Args:
2680
+ id: Numeric post id - the digits at the end of an x.com/.../status/... link.
2681
+ limit: Rows in this page, 1-100. The ceiling is the service's, not yours: asking for more returns the ceiling rather than an error.
2682
+ cursor: Opaque token from a previous response's next_cursor.
2683
+ """
2684
+ return await self._op("x_tweets_quotes", {"id": id, "limit": limit, "cursor": cursor}, timeout) # type: ignore[no-any-return]
2685
+
2686
+ async def x_tweets_retweeters(
2687
+ self,
2688
+ id: str,
2689
+ *,
2690
+ limit: Optional[int] = None,
2691
+ cursor: Optional[str] = None,
2692
+ timeout: Optional[float] = None,
2693
+ ) -> Response[XTweetsRetweetersData]:
2694
+ """Who reposted a post.
2695
+
2696
+ `GET /x/tweets/{id}/retweeters`. 2 credits, live read.
2697
+
2698
+ Args:
2699
+ id: Numeric post id - the digits at the end of an x.com/.../status/... link.
2700
+ limit: Rows in this page, 1-100. The ceiling is the service's, not yours: asking for more returns the ceiling rather than an error.
2701
+ cursor: Opaque token from a previous response's next_cursor.
2702
+ """
2703
+ return await self._op("x_tweets_retweeters", {"id": id, "limit": limit, "cursor": cursor}, timeout) # type: ignore[no-any-return]
2704
+
2705
+ async def x_search_tweets(
2706
+ self,
2707
+ query: str,
2708
+ *,
2709
+ limit: Optional[int] = None,
2710
+ cursor: Optional[str] = None,
2711
+ product: Optional[Literal["Latest", "Top", "Media"]] = None,
2712
+ timeout: Optional[float] = None,
2713
+ ) -> Response[XSearchTweetsData]:
2714
+ """Advanced post search.
2715
+
2716
+ `GET /x/search/tweets`. 2 credits, live read.
2717
+
2718
+ Args:
2719
+ query: X advanced-search syntax, at most 500 characters, single line. Passed through untouched.
2720
+ limit: Rows in this page, 1-100. The ceiling is the service's, not yours: asking for more returns the ceiling rather than an error.
2721
+ cursor: Opaque token from a previous response's next_cursor.
2722
+ product: Which search tab to read. Latest is chronological and complete; Top is X's own ranking and deliberately partial; Media returns only posts with attachments.
2723
+ """
2724
+ return await self._op("x_search_tweets", {"query": query, "limit": limit, "cursor": cursor, "product": product}, timeout) # type: ignore[no-any-return]
2725
+
2726
+ async def x_search_users(
2727
+ self,
2728
+ query: str,
2729
+ *,
2730
+ limit: Optional[int] = None,
2731
+ cursor: Optional[str] = None,
2732
+ timeout: Optional[float] = None,
2733
+ ) -> Response[XSearchUsersData]:
2734
+ """People search.
2735
+
2736
+ `GET /x/search/users`. 2 credits, live read.
2737
+
2738
+ Args:
2739
+ query: Search terms, at most 500 characters.
2740
+ limit: Rows in this page, 1-100. The ceiling is the service's, not yours: asking for more returns the ceiling rather than an error.
2741
+ cursor: Opaque token from a previous response's next_cursor.
2742
+ """
2743
+ return await self._op("x_search_users", {"query": query, "limit": limit, "cursor": cursor}, timeout) # type: ignore[no-any-return]
2744
+
2745
+ async def x_lists_tweets(
2746
+ self,
2747
+ id: str,
2748
+ *,
2749
+ limit: Optional[int] = None,
2750
+ cursor: Optional[str] = None,
2751
+ timeout: Optional[float] = None,
2752
+ ) -> Response[XListsTweetsData]:
2753
+ """A list's timeline.
2754
+
2755
+ `GET /x/lists/{id}/tweets`. 2 credits, live read.
2756
+
2757
+ Args:
2758
+ id: Numeric list id - the digits at the end of an x.com/i/lists/... link.
2759
+ limit: Rows in this page, 1-200. The ceiling is the service's, not yours: asking for more returns the ceiling rather than an error.
2760
+ cursor: Opaque token from a previous response's next_cursor.
2761
+ """
2762
+ return await self._op("x_lists_tweets", {"id": id, "limit": limit, "cursor": cursor}, timeout) # type: ignore[no-any-return]
2763
+
2764
+ async def x_lists_members(
2765
+ self,
2766
+ id: str,
2767
+ *,
2768
+ limit: Optional[int] = None,
2769
+ cursor: Optional[str] = None,
2770
+ timeout: Optional[float] = None,
2771
+ ) -> Response[XListsMembersData]:
2772
+ """Who is on a list.
2773
+
2774
+ `GET /x/lists/{id}/members`. 2 credits, live read.
2775
+
2776
+ Args:
2777
+ id: Numeric list id.
2778
+ limit: Rows in this page, 1-200. The ceiling is the service's, not yours: asking for more returns the ceiling rather than an error.
2779
+ cursor: Opaque token from a previous response's next_cursor.
2780
+ """
2781
+ return await self._op("x_lists_members", {"id": id, "limit": limit, "cursor": cursor}, timeout) # type: ignore[no-any-return]
2782
+
2783
+ async def x_communities_get(
2784
+ self,
2785
+ id: str,
2786
+ *,
2787
+ timeout: Optional[float] = None,
2788
+ ) -> Response[XCommunitiesGetData]:
2789
+ """One X community.
2790
+
2791
+ `GET /x/communities/{id}`. 2 credits, live read.
2792
+
2793
+ Args:
2794
+ id: Numeric community id - the digits at the end of an x.com/i/communities/... link.
2795
+ """
2796
+ return await self._op("x_communities_get", {"id": id}, timeout) # type: ignore[no-any-return]
2797
+
2798
+ async def x_communities_members(
2799
+ self,
2800
+ id: str,
2801
+ *,
2802
+ limit: Optional[int] = None,
2803
+ cursor: Optional[str] = None,
2804
+ timeout: Optional[float] = None,
2805
+ ) -> Response[XCommunitiesMembersData]:
2806
+ """A community's members.
2807
+
2808
+ `GET /x/communities/{id}/members`. 2 credits, live read.
2809
+
2810
+ Args:
2811
+ id: Numeric community id.
2812
+ limit: Rows in this page, 1-200. The ceiling is the service's, not yours: asking for more returns the ceiling rather than an error.
2813
+ cursor: Opaque token from a previous response's next_cursor.
2814
+ """
2815
+ return await self._op("x_communities_members", {"id": id, "limit": limit, "cursor": cursor}, timeout) # type: ignore[no-any-return]
2816
+
2817
+ async def x_communities_moderators(
2818
+ self,
2819
+ id: str,
2820
+ *,
2821
+ limit: Optional[int] = None,
2822
+ cursor: Optional[str] = None,
2823
+ timeout: Optional[float] = None,
2824
+ ) -> Response[XCommunitiesModeratorsData]:
2825
+ """A community's moderators.
2826
+
2827
+ `GET /x/communities/{id}/moderators`. 2 credits, live read.
2828
+
2829
+ Args:
2830
+ id: Numeric community id.
2831
+ limit: Rows in this page, 1-200. The ceiling is the service's, not yours: asking for more returns the ceiling rather than an error.
2832
+ cursor: Opaque token from a previous response's next_cursor.
2833
+ """
2834
+ return await self._op("x_communities_moderators", {"id": id, "limit": limit, "cursor": cursor}, timeout) # type: ignore[no-any-return]
2835
+
2836
+ async def x_communities_tweets(
2837
+ self,
2838
+ id: str,
2839
+ *,
2840
+ limit: Optional[int] = None,
2841
+ cursor: Optional[str] = None,
2842
+ timeout: Optional[float] = None,
2843
+ ) -> Response[XCommunitiesTweetsData]:
2844
+ """A community's posts.
2845
+
2846
+ `GET /x/communities/{id}/tweets`. 2 credits, live read.
2847
+
2848
+ Args:
2849
+ id: Numeric community id.
2850
+ limit: Rows in this page, 1-200. The ceiling is the service's, not yours: asking for more returns the ceiling rather than an error.
2851
+ cursor: Opaque token from a previous response's next_cursor.
2852
+ """
2853
+ return await self._op("x_communities_tweets", {"id": id, "limit": limit, "cursor": cursor}, timeout) # type: ignore[no-any-return]
2854
+
2855
+ async def x_trends(
2856
+ self,
2857
+ woeid: int,
2858
+ *,
2859
+ limit: Optional[int] = None,
2860
+ timeout: Optional[float] = None,
2861
+ ) -> Response[XTrendsData]:
2862
+ """What is trending, by location.
2863
+
2864
+ `GET /x/trends`. 2 credits, live read.
2865
+
2866
+ Args:
2867
+ woeid: Yahoo place id. 1 is worldwide; 23424969 is Turkey; 23424977 is the United States.
2868
+ limit: Trends to return, 1-50. X serves 30-50 per location.
2869
+ """
2870
+ return await self._op("x_trends", {"woeid": woeid, "limit": limit}, timeout) # type: ignore[no-any-return]
2871
+
2872
+ async def people_lookup(
2873
+ self,
2874
+ handle: str,
2875
+ *,
2876
+ platforms: Optional[Literal["x", "telegram", "bluesky", "youtube", "tiktok", "instagram", "kick", "twitch"]] = None,
2877
+ timeout: Optional[float] = None,
2878
+ ) -> Response[PeopleLookupData]:
2879
+ """Find one handle across every catalog.
2880
+
2881
+ `GET /people/lookup`. 1 credit.
2882
+
2883
+ Args:
2884
+ handle: Handle to resolve, with or without the @. Up to 10, comma-separated.
2885
+ platforms: Comma-separated subset to probe (x, telegram, bluesky, youtube, tiktok, instagram). Defaults to all six.
2886
+ """
2887
+ return await self._op("people_lookup", {"handle": handle, "platforms": platforms}, timeout) # type: ignore[no-any-return]
2888
+
2889
+ async def people_search(
2890
+ self,
2891
+ *,
2892
+ min_audience: Optional[int] = None,
2893
+ max_audience: Optional[int] = None,
2894
+ min_engagement: Optional[float] = None,
2895
+ language: Optional[str] = None,
2896
+ category: Optional[str] = None,
2897
+ verified: Optional[bool] = None,
2898
+ q: Optional[str] = None,
2899
+ platforms: Optional[Literal["x", "telegram", "bluesky", "youtube", "tiktok", "instagram", "kick", "twitch"]] = None,
2900
+ per_platform: Optional[int] = None,
2901
+ timeout: Optional[float] = None,
2902
+ ) -> Response[PeopleSearchData]:
2903
+ """Find accounts matching audience and engagement criteria.
2904
+
2905
+ `GET /people/search`. 1 credit.
2906
+
2907
+ Args:
2908
+ min_audience: Lower bound on followers / subscribers / participants.
2909
+ max_audience: Upper bound on the same metric.
2910
+ min_engagement: Minimum measured engagement rate, percent. Instagram only; reported as ignored elsewhere.
2911
+ language: ISO 639-1 language code, as classified from the profile text.
2912
+ category: Cross-platform category from the shared classifier.
2913
+ verified: Restrict to verified accounts.
2914
+ q: Full-text terms over name and bio. Skipped on catalogs with no full-text index.
2915
+ platforms: Comma-separated subset to search. Defaults to all six.
2916
+ per_platform: Rows per platform, 1-25. Default 10.
2917
+ """
2918
+ return await self._op("people_search", {"min_audience": min_audience, "max_audience": max_audience, "min_engagement": min_engagement, "language": language, "category": category, "verified": verified, "q": q, "platforms": platforms, "per_platform": per_platform}, timeout) # type: ignore[no-any-return]
2919
+
2920
+ async def scrape_x_user(
2921
+ self,
2922
+ handle: str,
2923
+ *,
2924
+ fresh: Optional[bool] = None,
2925
+ timeout: Optional[float] = None,
2926
+ ) -> Response[ScrapeXUserData]:
2927
+ """Live X profile.
2928
+
2929
+ `GET /scrape/x/user`. 2 credits, live read.
2930
+
2931
+ Args:
2932
+ handle: X handle, with or without @. A full x.com URL is accepted and stripped.
2933
+ fresh: Bypass the upstream's 60-second burst cache. Only worth it when you are checking something that changed seconds ago; it costs a real pool slot.
2934
+ """
2935
+ return await self._op("scrape_x_user", {"handle": handle, "fresh": fresh}, timeout) # type: ignore[no-any-return]
2936
+
2937
+ async def scrape_x_users(
2938
+ self,
2939
+ handles: Sequence[Any],
2940
+ *,
2941
+ timeout: Optional[float] = None,
2942
+ ) -> Response[ScrapeXUsersData]:
2943
+ """Live X profiles, batched.
2944
+
2945
+ `POST /scrape/x/users`. 2 credits, live read.
2946
+
2947
+ Args:
2948
+ handles: Array of X handles, at most 25. Duplicates are collapsed.
2949
+ """
2950
+ return await self._op("scrape_x_users", {"handles": handles}, timeout) # type: ignore[no-any-return]
2951
+
2952
+ async def scrape_telegram_channel(
2953
+ self,
2954
+ username: str,
2955
+ *,
2956
+ timeout: Optional[float] = None,
2957
+ ) -> Response[ScrapeTelegramChannelData]:
2958
+ """Live Telegram channel read.
2959
+
2960
+ `GET /scrape/telegram/channel`. 2 credits, live read.
2961
+
2962
+ Args:
2963
+ username: Public @username or a t.me link.
2964
+ """
2965
+ return await self._op("scrape_telegram_channel", {"username": username}, timeout) # type: ignore[no-any-return]
2966
+
2967
+ async def insights_x_dossier(
2968
+ self,
2969
+ handle: str,
2970
+ *,
2971
+ include: Optional[str] = None,
2972
+ metric: Optional[Literal["engagement", "views", "engagement_per_view", "bookmarks"]] = None,
2973
+ timeout: Optional[float] = None,
2974
+ ) -> Response[InsightsXDossierData]:
2975
+ """Complete intelligence dossier for one X account.
2976
+
2977
+ `GET /insights/x/{handle}`. 1 credit.
2978
+
2979
+ Args:
2980
+ handle: X handle without the @. 1-15 characters, letters, digits and underscore.
2981
+ include: Comma-separated sections to return, from: engagement, volume, top_tweets, viral_patterns, benchmark, narrative. Omit for all of them. account and coverage are...
2982
+ metric: Which question the viral_patterns section answers.
2983
+ """
2984
+ return await self._op("insights_x_dossier", {"handle": handle, "include": include, "metric": metric}, timeout) # type: ignore[no-any-return]
2985
+
2986
+ async def insights_x_engagement(
2987
+ self,
2988
+ handle: str,
2989
+ *,
2990
+ timeout: Optional[float] = None,
2991
+ ) -> Response[InsightsXEngagementData]:
2992
+ """Engagement metrics for one X account.
2993
+
2994
+ `GET /insights/x/{handle}/engagement`. 1 credit.
2995
+
2996
+ Args:
2997
+ handle: X handle without the @.
2998
+ """
2999
+ return await self._op("insights_x_engagement", {"handle": handle}, timeout) # type: ignore[no-any-return]
3000
+
3001
+ async def insights_x_top_tweets(
3002
+ self,
3003
+ handle: str,
3004
+ *,
3005
+ limit: Optional[int] = None,
3006
+ sort: Optional[Literal["engagement", "likes", "retweets", "replies", "recent"]] = None,
3007
+ timeout: Optional[float] = None,
3008
+ ) -> Response[InsightsXTopTweetsData]:
3009
+ """The account's permanently kept best posts.
3010
+
3011
+ `GET /insights/x/{handle}/top-tweets`. 1 credit.
3012
+
3013
+ Args:
3014
+ handle: X handle without the @.
3015
+ limit: Rows to return, 1-100. The engine keeps at most 20 posts per account, so a higher limit simply returns everything there is.
3016
+ sort: Order within the kept set. engagement is the engine's own ranking; the others reorder the same rows.
3017
+ """
3018
+ return await self._op("insights_x_top_tweets", {"handle": handle, "limit": limit, "sort": sort}, timeout) # type: ignore[no-any-return]
3019
+
3020
+ async def insights_x_viral_patterns(
3021
+ self,
3022
+ handle: str,
3023
+ *,
3024
+ metric: Optional[Literal["engagement", "views", "engagement_per_view", "bookmarks"]] = None,
3025
+ peer_group: Optional[str] = None,
3026
+ timeout: Optional[float] = None,
3027
+ ) -> Response[InsightsXViralPatternsData]:
3028
+ """What makes this account's posts perform.
3029
+
3030
+ `GET /insights/x/{handle}/viral-patterns`. 1 credit.
3031
+
3032
+ Args:
3033
+ handle: X handle without the @.
3034
+ metric: Which question the buckets answer. Media moves engagement by roughly +53% while leaving reach flat, so the metric matters.
3035
+ peer_group: Override the decile the patterns are cut inside. d01 (smallest) to d10, or * for every tracked account. Defaults to the account's own decile.
3036
+ """
3037
+ return await self._op("insights_x_viral_patterns", {"handle": handle, "metric": metric, "peer_group": peer_group}, timeout) # type: ignore[no-any-return]
3038
+
3039
+ async def insights_x_benchmark(
3040
+ self,
3041
+ handle: str,
3042
+ *,
3043
+ timeout: Optional[float] = None,
3044
+ ) -> Response[InsightsXBenchmarkData]:
3045
+ """This account against its follower cohort.
3046
+
3047
+ `GET /insights/x/{handle}/benchmark`. 1 credit.
3048
+
3049
+ Args:
3050
+ handle: X handle without the @.
3051
+ """
3052
+ return await self._op("insights_x_benchmark", {"handle": handle}, timeout) # type: ignore[no-any-return]
3053
+
3054
+ async def insights_x_leaders(
3055
+ self,
3056
+ *,
3057
+ sort: Optional[Literal["authenticity", "rate", "engagement", "views"]] = None,
3058
+ tier: Optional[Literal["S", "A", "B", "C"]] = None,
3059
+ category: Optional[str] = None,
3060
+ min_followers: Optional[int] = None,
3061
+ limit: Optional[int] = None,
3062
+ cursor: Optional[str] = None,
3063
+ timeout: Optional[float] = None,
3064
+ ) -> Response[InsightsXLeadersData]:
3065
+ """Accounts ranked by how well they engage.
3066
+
3067
+ `GET /insights/x/leaders`. 1 credit.
3068
+
3069
+ Args:
3070
+ sort: authenticity ranks by percentile against same-size accounts, rate by raw engagement rate, views by engagement per impression, engagement by absolute median...
3071
+ tier: Follower band from the catalog. S is the largest.
3072
+ category: Catalog category slug. Empty on most rows, so a filter here narrows hard.
3073
+ min_followers: Follower floor.
3074
+ limit: Rows per page, 1-200.
3075
+ cursor: Opaque cursor from meta.page.next_cursor.
3076
+ """
3077
+ return await self._op("insights_x_leaders", {"sort": sort, "tier": tier, "category": category, "min_followers": min_followers, "limit": limit, "cursor": cursor}, timeout) # type: ignore[no-any-return]
3078
+
3079
+ async def insights_x_coverage(
3080
+ self,
3081
+ *,
3082
+ timeout: Optional[float] = None,
3083
+ ) -> Response[InsightsXCoverageData]:
3084
+ """How much of the catalog has tweet-level coverage.
3085
+
3086
+ `GET /insights/x/coverage`. 1 credit.
3087
+ """
3088
+ return await self._op("insights_x_coverage", {}, timeout) # type: ignore[no-any-return]
3089
+
3090
+ async def insights_x_compare(
3091
+ self,
3092
+ handles: Sequence[Any],
3093
+ *,
3094
+ metric: Optional[Literal["engagement", "views", "engagement_per_view", "bookmarks"]] = None,
3095
+ timeout: Optional[float] = None,
3096
+ ) -> Response[InsightsXCompareData]:
3097
+ """Side-by-side metrics for up to ten accounts.
3098
+
3099
+ `POST /insights/x/compare`. 1 credit.
3100
+
3101
+ Args:
3102
+ handles: Array of X handles without the @, 1-10 of them, for example ["elonmusk","BillGates","NASA"]. Duplicates are collapsed case-insensitively before they take a...
3103
+ metric: Echoed onto the response for clients that batch several metrics.
3104
+ """
3105
+ return await self._op("insights_x_compare", {"handles": handles, "metric": metric}, timeout) # type: ignore[no-any-return]
3106
+
3107
+ async def insights_instagram_top_posts(
3108
+ self,
3109
+ handle: str,
3110
+ *,
3111
+ limit: Optional[int] = None,
3112
+ timeout: Optional[float] = None,
3113
+ ) -> Response[InsightsInstagramTopPostsData]:
3114
+ """An account's best performing posts.
3115
+
3116
+ `GET /insights/instagram/{handle}/top-posts`. 1 credit.
3117
+
3118
+ Args:
3119
+ handle: Instagram handle, without the @.
3120
+ limit: Posts to return, 1 to 50.
3121
+ """
3122
+ return await self._op("insights_instagram_top_posts", {"handle": handle, "limit": limit}, timeout) # type: ignore[no-any-return]
3123
+
3124
+ async def insights_instagram_content_mix(
3125
+ self,
3126
+ handle: str,
3127
+ *,
3128
+ timeout: Optional[float] = None,
3129
+ ) -> Response[InsightsInstagramContentMixData]:
3130
+ """Which post format actually works on this account.
3131
+
3132
+ `GET /insights/instagram/{handle}/content-mix`. 1 credit.
3133
+
3134
+ Args:
3135
+ handle: Instagram handle, without the @.
3136
+ """
3137
+ return await self._op("insights_instagram_content_mix", {"handle": handle}, timeout) # type: ignore[no-any-return]
3138
+
3139
+ async def insights_instagram_cadence(
3140
+ self,
3141
+ handle: str,
3142
+ *,
3143
+ timeout: Optional[float] = None,
3144
+ ) -> Response[InsightsInstagramCadenceData]:
3145
+ """How often an account posts, and whether it has gone quiet.
3146
+
3147
+ `GET /insights/instagram/{handle}/cadence`. 1 credit.
3148
+
3149
+ Args:
3150
+ handle: Instagram handle, without the @.
3151
+ """
3152
+ return await self._op("insights_instagram_cadence", {"handle": handle}, timeout) # type: ignore[no-any-return]
3153
+
3154
+ async def insights_instagram_benchmarks(
3155
+ self,
3156
+ *,
3157
+ followers: Optional[int] = None,
3158
+ timeout: Optional[float] = None,
3159
+ ) -> Response[InsightsInstagramBenchmarksData]:
3160
+ """Measured engagement rates by follower band.
3161
+
3162
+ `GET /insights/instagram/benchmarks`. 1 credit.
3163
+
3164
+ Args:
3165
+ followers: Optional. A follower count to locate in the bands; the response then names which band it falls in.
3166
+ """
3167
+ return await self._op("insights_instagram_benchmarks", {"followers": followers}, timeout) # type: ignore[no-any-return]
3168
+
3169
+ async def insights_instagram_coverage(
3170
+ self,
3171
+ handle: str,
3172
+ *,
3173
+ timeout: Optional[float] = None,
3174
+ ) -> Response[InsightsInstagramCoverageData]:
3175
+ """What we hold on a handle, before you pay for a lookup.
3176
+
3177
+ `GET /insights/instagram/{handle}/coverage`. 1 credit.
3178
+
3179
+ Args:
3180
+ handle: Instagram handle, without the @.
3181
+ """
3182
+ return await self._op("insights_instagram_coverage", {"handle": handle}, timeout) # type: ignore[no-any-return]
3183
+
3184
+ async def insights_tiktok_growth(
3185
+ self,
3186
+ handle: str,
3187
+ *,
3188
+ days: Optional[int] = None,
3189
+ timeout: Optional[float] = None,
3190
+ ) -> Response[InsightsTiktokGrowthData]:
3191
+ """Follower, like and posting velocity from the snapshot series.
3192
+
3193
+ `GET /insights/tiktok/{handle}/growth`. 1 credit.
3194
+
3195
+ Args:
3196
+ handle: TikTok handle, without the @.
3197
+ days: Window to read, 1 to 365 days.
3198
+ """
3199
+ return await self._op("insights_tiktok_growth", {"handle": handle, "days": days}, timeout) # type: ignore[no-any-return]
3200
+
3201
+ async def insights_tiktok_benchmarks(
3202
+ self,
3203
+ *,
3204
+ timeout: Optional[float] = None,
3205
+ ) -> Response[InsightsTiktokBenchmarksData]:
3206
+ """Measured likes per video by follower band.
3207
+
3208
+ `GET /insights/tiktok/benchmarks`. 1 credit.
3209
+ """
3210
+ return await self._op("insights_tiktok_benchmarks", {}, timeout) # type: ignore[no-any-return]
3211
+
3212
+ async def insights_tiktok_coverage(
3213
+ self,
3214
+ handle: str,
3215
+ *,
3216
+ timeout: Optional[float] = None,
3217
+ ) -> Response[InsightsTiktokCoverageData]:
3218
+ """What we hold on a handle, before you pay for a lookup.
3219
+
3220
+ `GET /insights/tiktok/{handle}/coverage`. 1 credit.
3221
+
3222
+ Args:
3223
+ handle: TikTok handle, without the @.
3224
+ """
3225
+ return await self._op("insights_tiktok_coverage", {"handle": handle}, timeout) # type: ignore[no-any-return]
3226
+
3227
+ async def trends_movers(
3228
+ self,
3229
+ platform: Literal["x", "instagram", "tiktok", "youtube", "telegram"],
3230
+ *,
3231
+ direction: Optional[Literal["rising", "falling"]] = None,
3232
+ limit: Optional[int] = None,
3233
+ timeout: Optional[float] = None,
3234
+ ) -> Response[TrendsMoversData]:
3235
+ """Biggest audience gains and losses for a day.
3236
+
3237
+ `GET /trends/{platform}/movers`. 1 credit.
3238
+
3239
+ Args:
3240
+ platform: Which catalog to rank. Bluesky and LinkedIn are not available here; GET /trends/platforms says why.
3241
+ direction: rising returns the biggest gains, falling the biggest losses.
3242
+ limit: Rows to return, 1 to 100.
3243
+ """
3244
+ return await self._op("trends_movers", {"platform": platform, "direction": direction, "limit": limit}, timeout) # type: ignore[no-any-return]
3245
+
3246
+ async def trends_platforms(
3247
+ self,
3248
+ *,
3249
+ timeout: Optional[float] = None,
3250
+ ) -> Response[TrendsPlatformsData]:
3251
+ """Which platforms can be ranked, and how fresh each is.
3252
+
3253
+ `GET /trends/platforms`. 1 credit.
3254
+ """
3255
+ return await self._op("trends_platforms", {}, timeout) # type: ignore[no-any-return]
3256
+
3257
+ async def identity_graph(
3258
+ self,
3259
+ *,
3260
+ platform: Optional[Literal["linkedin", "instagram", "facebook", "x", "youtube", "tiktok", "github", "bluesky", "telegram"]] = None,
3261
+ handle: Optional[str] = None,
3262
+ domain: Optional[str] = None,
3263
+ company: Optional[str] = None,
3264
+ timeout: Optional[float] = None,
3265
+ ) -> Response[IdentityGraphData]:
3266
+ """One organisation's accounts across every network, from any one of them.
3267
+
3268
+ `GET /identity/graph`. 1 credit.
3269
+
3270
+ Args:
3271
+ platform: Network the handle belongs to. Required with handle, ignored otherwise.
3272
+ handle: Account handle, an @handle, or a full profile URL. Normalised before lookup.
3273
+ domain: Company website domain. A bare host, a full URL or an email address all work.
3274
+ company: LinkedIn company slug, as it appears in the company page URL.
3275
+ """
3276
+ return await self._op("identity_graph", {"platform": platform, "handle": handle, "domain": domain, "company": company}, timeout) # type: ignore[no-any-return]
3277
+
3278
+ async def identity_graph_bulk(
3279
+ self,
3280
+ accounts: Sequence[Any],
3281
+ *,
3282
+ timeout: Optional[float] = None,
3283
+ ) -> Response[IdentityGraphBulkData]:
3284
+ """Resolve up to 100 handles to their companies in one call.
3285
+
3286
+ `POST /identity/graph/bulk`. 1 credit.
3287
+
3288
+ Args:
3289
+ accounts: Up to 100 objects with platform and handle. Handles are normalised the same way the single lookup normalises them.
3290
+ """
3291
+ return await self._op("identity_graph_bulk", {"accounts": accounts}, timeout) # type: ignore[no-any-return]
3292
+
3293
+ async def identity_company(
3294
+ self,
3295
+ slug: str,
3296
+ *,
3297
+ timeout: Optional[float] = None,
3298
+ ) -> Response[IdentityCompanyData]:
3299
+ """Every social account a company publishes.
3300
+
3301
+ `GET /identity/company/{slug}`. 1 credit.
3302
+
3303
+ Args:
3304
+ slug: The company slug, as it appears on its LinkedIn company page URL.
3305
+ """
3306
+ return await self._op("identity_company", {"slug": slug}, timeout) # type: ignore[no-any-return]
3307
+
3308
+ async def identity_resolve(
3309
+ self,
3310
+ platform: Literal["linkedin", "instagram", "facebook", "x", "youtube", "tiktok", "github", "bluesky", "telegram"],
3311
+ handle: str,
3312
+ *,
3313
+ timeout: Optional[float] = None,
3314
+ ) -> Response[IdentityResolveData]:
3315
+ """Which company publishes this handle.
3316
+
3317
+ `GET /identity/resolve`. 1 credit.
3318
+
3319
+ Args:
3320
+ platform: Network the handle belongs to.
3321
+ handle: The account handle. An @handle or a full profile URL is accepted and normalised to the stored form before lookup.
3322
+ """
3323
+ return await self._op("identity_resolve", {"platform": platform, "handle": handle}, timeout) # type: ignore[no-any-return]
3324
+
3325
+ async def identity_telegram_aliases(
3326
+ self,
3327
+ username: str,
3328
+ *,
3329
+ timeout: Optional[float] = None,
3330
+ ) -> Response[IdentityTelegramAliasesData]:
3331
+ """Every username a Telegram channel holds.
3332
+
3333
+ `GET /identity/telegram/{username}/aliases`. 1 credit.
3334
+
3335
+ Args:
3336
+ username: Any username the channel holds, without the @.
3337
+ """
3338
+ return await self._op("identity_telegram_aliases", {"username": username}, timeout) # type: ignore[no-any-return]
3339
+
3340
+ async def insights_telegram_audience_quality(
3341
+ self,
3342
+ username: str,
3343
+ *,
3344
+ days: Optional[int] = None,
3345
+ timeout: Optional[float] = None,
3346
+ ) -> Response[InsightsTelegramAudienceQualityData]:
3347
+ """Whether a channel's subscribers and its post views moved together.
3348
+
3349
+ `GET /insights/telegram/{username}/audience-quality`. 1 credit.
3350
+
3351
+ Args:
3352
+ username: Public @username or a t.me link.
3353
+ days: Calendar days of history to read back from today, 1 to 90. The rollup begins 2026-06-09, so no channel can answer for more than that.
3354
+ """
3355
+ return await self._op("insights_telegram_audience_quality", {"username": username, "days": days}, timeout) # type: ignore[no-any-return]
3356
+
3357
+ async def insights_telegram_name_history(
3358
+ self,
3359
+ username: str,
3360
+ *,
3361
+ timeout: Optional[float] = None,
3362
+ ) -> Response[InsightsTelegramNameHistoryData]:
3363
+ """Every username a channel has held, and which ones it gave up.
3364
+
3365
+ `GET /insights/telegram/{username}/name-history`. 1 credit.
3366
+
3367
+ Args:
3368
+ username: Public @username or a t.me link. The channel's CURRENT username.
3369
+ """
3370
+ return await self._op("insights_telegram_name_history", {"username": username}, timeout) # type: ignore[no-any-return]
3371
+
3372
+ async def insights_youtube_benchmark(
3373
+ self,
3374
+ handle: str,
3375
+ *,
3376
+ timeout: Optional[float] = None,
3377
+ ) -> Response[InsightsYoutubeBenchmarkData]:
3378
+ """A channel's view velocity, ranked against channels its own size.
3379
+
3380
+ `GET /insights/youtube/{handle}/benchmark`. 1 credit.
3381
+
3382
+ Args:
3383
+ handle: YouTube handle without the @, or a UC... channel id.
3384
+ """
3385
+ return await self._op("insights_youtube_benchmark", {"handle": handle}, timeout) # type: ignore[no-any-return]
3386
+
3387
+ async def insights_youtube_velocity_bands(
3388
+ self,
3389
+ *,
3390
+ timeout: Optional[float] = None,
3391
+ ) -> Response[InsightsYoutubeVelocityBandsData]:
3392
+ """The view-velocity ladders every YouTube benchmark is read against.
3393
+
3394
+ `GET /insights/youtube/view-velocity-bands`. 1 credit.
3395
+ """
3396
+ return await self._op("insights_youtube_velocity_bands", {}, timeout) # type: ignore[no-any-return]
3397
+
3398
+ async def insights_bluesky_posting_impact(
3399
+ self,
3400
+ handle: str,
3401
+ *,
3402
+ days: Optional[int] = None,
3403
+ timeout: Optional[float] = None,
3404
+ ) -> Response[InsightsBlueskyPostingImpactData]:
3405
+ """What an account gains on the days it posts against the days it does not.
3406
+
3407
+ `GET /insights/bluesky/{handle}/posting-impact`. 1 credit.
3408
+
3409
+ Args:
3410
+ handle: Bluesky handle such as nytimes.com, or a did:plc: identifier.
3411
+ days: Calendar days of history to read back from today, 1 to 90. The rollup begins 2026-06-09, so no account can answer for more than that.
3412
+ """
3413
+ return await self._op("insights_bluesky_posting_impact", {"handle": handle, "days": days}, timeout) # type: ignore[no-any-return]
3414
+
3415
+ async def insights_instagram_engagement(
3416
+ self,
3417
+ handle: str,
3418
+ *,
3419
+ timeout: Optional[float] = None,
3420
+ ) -> Response[InsightsInstagramEngagementData]:
3421
+ """Measured Instagram engagement, placed against its cohort.
3422
+
3423
+ `GET /insights/instagram/{handle}`. 1 credit.
3424
+
3425
+ Args:
3426
+ handle: Instagram handle, with or without the @.
3427
+ """
3428
+ return await self._op("insights_instagram_engagement", {"handle": handle}, timeout) # type: ignore[no-any-return]
3429
+
3430
+ async def insights_telegram_reach(
3431
+ self,
3432
+ username: str,
3433
+ *,
3434
+ timeout: Optional[float] = None,
3435
+ ) -> Response[InsightsTelegramReachData]:
3436
+ """How many subscribers actually see a Telegram post.
3437
+
3438
+ `GET /insights/telegram/{username}/reach`. 1 credit.
3439
+
3440
+ Args:
3441
+ username: Public @username or a t.me link.
3442
+ """
3443
+ return await self._op("insights_telegram_reach", {"username": username}, timeout) # type: ignore[no-any-return]
3444
+
3445
+ async def insights_telegram_reach_bands(
3446
+ self,
3447
+ *,
3448
+ timeout: Optional[float] = None,
3449
+ ) -> Response[InsightsTelegramReachBandsData]:
3450
+ """The reach percentile ladders every Telegram score is read against.
3451
+
3452
+ `GET /insights/telegram/reach-bands`. 1 credit.
3453
+ """
3454
+ return await self._op("insights_telegram_reach_bands", {}, timeout) # type: ignore[no-any-return]
3455
+
3456
+ async def insights_youtube_activity(
3457
+ self,
3458
+ handle: str,
3459
+ *,
3460
+ days: Optional[int] = None,
3461
+ timeout: Optional[float] = None,
3462
+ ) -> Response[InsightsYoutubeActivityData]:
3463
+ """Daily views earned by one account.
3464
+
3465
+ `GET /insights/youtube/{handle}/activity`. 1 credit.
3466
+
3467
+ Args:
3468
+ handle: YouTube handle without the @, or a UC... channel id.
3469
+ days: Calendar days of history to read back from today, 1 to 90. The rollup begins 2026-06-09, so no account can answer for more than that.
3470
+ """
3471
+ return await self._op("insights_youtube_activity", {"handle": handle, "days": days}, timeout) # type: ignore[no-any-return]
3472
+
3473
+ async def insights_tiktok_activity(
3474
+ self,
3475
+ handle: str,
3476
+ *,
3477
+ days: Optional[int] = None,
3478
+ timeout: Optional[float] = None,
3479
+ ) -> Response[InsightsTiktokActivityData]:
3480
+ """Daily likes earned by one account.
3481
+
3482
+ `GET /insights/tiktok/{handle}/activity`. 1 credit.
3483
+
3484
+ Args:
3485
+ handle: TikTok handle, without the @.
3486
+ days: Calendar days of history to read back from today, 1 to 90. The rollup begins 2026-06-09, so no account can answer for more than that.
3487
+ """
3488
+ return await self._op("insights_tiktok_activity", {"handle": handle, "days": days}, timeout) # type: ignore[no-any-return]
3489
+
3490
+ async def insights_bluesky_activity(
3491
+ self,
3492
+ handle: str,
3493
+ *,
3494
+ days: Optional[int] = None,
3495
+ timeout: Optional[float] = None,
3496
+ ) -> Response[InsightsBlueskyActivityData]:
3497
+ """Daily posts earned by one account.
3498
+
3499
+ `GET /insights/bluesky/{handle}/activity`. 1 credit.
3500
+
3501
+ Args:
3502
+ handle: Bluesky handle such as nytimes.com, or a did:plc: identifier.
3503
+ days: Calendar days of history to read back from today, 1 to 90. The rollup begins 2026-06-09, so no account can answer for more than that.
3504
+ """
3505
+ return await self._op("insights_bluesky_activity", {"handle": handle, "days": days}, timeout) # type: ignore[no-any-return]
3506
+
3507
+ async def insights_telegram_activity(
3508
+ self,
3509
+ username: str,
3510
+ *,
3511
+ days: Optional[int] = None,
3512
+ timeout: Optional[float] = None,
3513
+ ) -> Response[InsightsTelegramActivityData]:
3514
+ """How a channel's per-post reach has moved, day by day.
3515
+
3516
+ `GET /insights/telegram/{username}/activity`. 1 credit.
3517
+
3518
+ Args:
3519
+ username: Public Telegram username, with or without the @. A t.me link is accepted.
3520
+ days: Calendar days of history to read back from today, 1 to 90. The rollup begins 2026-06-09, so no account can answer for more than that.
3521
+ """
3522
+ return await self._op("insights_telegram_activity", {"username": username, "days": days}, timeout) # type: ignore[no-any-return]
3523
+
3524
+ async def insights_telegram_growth_quality(
3525
+ self,
3526
+ username: str,
3527
+ *,
3528
+ days: Optional[int] = None,
3529
+ timeout: Optional[float] = None,
3530
+ ) -> Response[InsightsTelegramGrowthQualityData]:
3531
+ """The shape of a channel's subscriber growth.
3532
+
3533
+ `GET /insights/telegram/{username}/growth-quality`. 1 credit.
3534
+
3535
+ Args:
3536
+ username: Public Telegram username, with or without the @. A t.me link is accepted.
3537
+ days: Calendar days of history to read back from today, 1 to 90. The rollup begins 2026-06-09, so no account can answer for more than that.
3538
+ """
3539
+ return await self._op("insights_telegram_growth_quality", {"username": username, "days": days}, timeout) # type: ignore[no-any-return]
3540
+
3541
+ async def insights_bluesky_growth_quality(
3542
+ self,
3543
+ handle: str,
3544
+ *,
3545
+ days: Optional[int] = None,
3546
+ timeout: Optional[float] = None,
3547
+ ) -> Response[InsightsBlueskyGrowthQualityData]:
3548
+ """The shape of an account's follower growth.
3549
+
3550
+ `GET /insights/bluesky/{handle}/growth-quality`. 1 credit.
3551
+
3552
+ Args:
3553
+ handle: Bluesky handle such as nytimes.com, or a did:plc: identifier.
3554
+ days: Calendar days of history to read back from today, 1 to 90. The rollup begins 2026-06-09, so no account can answer for more than that.
3555
+ """
3556
+ return await self._op("insights_bluesky_growth_quality", {"handle": handle, "days": days}, timeout) # type: ignore[no-any-return]
3557
+
3558
+ async def insights_activity_platforms(
3559
+ self,
3560
+ *,
3561
+ timeout: Optional[float] = None,
3562
+ ) -> Response[InsightsActivityPlatformsData]:
3563
+ """What each platform measures, how precise it is, and how deep.
3564
+
3565
+ `GET /insights/activity/platforms`. 1 credit.
3566
+ """
3567
+ return await self._op("insights_activity_platforms", {}, timeout) # type: ignore[no-any-return]
3568
+
3569
+ async def graph_x_overlap(
3570
+ self,
3571
+ a: str,
3572
+ b: str,
3573
+ *,
3574
+ limit: Optional[int] = None,
3575
+ timeout: Optional[float] = None,
3576
+ ) -> Response[GraphXOverlapData]:
3577
+ """Audience overlap between two X accounts.
3578
+
3579
+ `GET /graph/x/overlap`. 1 credit.
3580
+
3581
+ Args:
3582
+ a: First X handle, without the @.
3583
+ b: Second X handle, without the @.
3584
+ limit: How many shared accounts to return, 0 to 100.
3585
+ """
3586
+ return await self._op("graph_x_overlap", {"a": a, "b": b, "limit": limit}, timeout) # type: ignore[no-any-return]
3587
+
3588
+ async def graph_x_similar(
3589
+ self,
3590
+ handle: str,
3591
+ *,
3592
+ limit: Optional[int] = None,
3593
+ min_shared: Optional[int] = None,
3594
+ timeout: Optional[float] = None,
3595
+ ) -> Response[GraphXSimilarData]:
3596
+ """Lookalike X accounts by shared audience.
3597
+
3598
+ `GET /graph/x/{handle}/similar`. 1 credit.
3599
+
3600
+ Args:
3601
+ handle: X handle without the @. 1-15 characters.
3602
+ limit: How many lookalikes to return, 1 to 100.
3603
+ min_shared: Minimum shared followers inside the sample before a candidate is scored, 2 to 100. Higher is stricter and returns fewer, more confident rows.
3604
+ """
3605
+ return await self._op("graph_x_similar", {"handle": handle, "limit": limit, "min_shared": min_shared}, timeout) # type: ignore[no-any-return]
3606
+
3607
+ async def graph_x_notable_followers(
3608
+ self,
3609
+ handle: str,
3610
+ *,
3611
+ sort: Optional[Literal["influence", "followers", "recent"]] = None,
3612
+ limit: Optional[int] = None,
3613
+ cursor: Optional[str] = None,
3614
+ timeout: Optional[float] = None,
3615
+ ) -> Response[GraphXNotableFollowersData]:
3616
+ """Followers of an X account ranked by their own influence.
3617
+
3618
+ `GET /graph/x/{handle}/notable-followers`. 1 credit.
3619
+
3620
+ Args:
3621
+ handle: X handle without the @. 1-15 characters.
3622
+ sort: influence ranks by graph citation, followers by the count X reports, recent by when the edge was last confirmed.
3623
+ limit: Rows per page, 1 to 500.
3624
+ cursor: Opaque cursor from meta.page.next_cursor.
3625
+ """
3626
+ return await self._op("graph_x_notable_followers", {"handle": handle, "sort": sort, "limit": limit, "cursor": cursor}, timeout) # type: ignore[no-any-return]
3627
+
3628
+ async def graph_x_card(
3629
+ self,
3630
+ handle: str,
3631
+ *,
3632
+ timeout: Optional[float] = None,
3633
+ ) -> Response[GraphXCardData]:
3634
+ """Follow-graph coverage for one X account.
3635
+
3636
+ `GET /graph/x/{handle}`. 1 credit.
3637
+
3638
+ Args:
3639
+ handle: X handle without the @. 1-15 characters.
3640
+ """
3641
+ return await self._op("graph_x_card", {"handle": handle}, timeout) # type: ignore[no-any-return]
3642
+
3643
+ async def tools_catalog(
3644
+ self,
3645
+ *,
3646
+ timeout: Optional[float] = None,
3647
+ ) -> Response[ToolsCatalogData]:
3648
+ """List every analysis tool.
3649
+
3650
+ `GET /tools`. 1 credit.
3651
+ """
3652
+ return await self._op("tools_catalog", {}, timeout) # type: ignore[no-any-return]
3653
+
3654
+ async def tools_valuation(
3655
+ self,
3656
+ handle: str,
3657
+ *,
3658
+ timeout: Optional[float] = None,
3659
+ ) -> Response[ToolsValuationData]:
3660
+ """Value an X account.
3661
+
3662
+ `POST /tools/valuation`. 2 credits, live read.
3663
+
3664
+ Args:
3665
+ handle: X handle. Accepts a bare name, @name, or a profile URL. Also accepted as `username`.
3666
+ """
3667
+ return await self._op("tools_valuation", {"handle": handle}, timeout) # type: ignore[no-any-return]
3668
+
3669
+ async def tools_shadowban_check(
3670
+ self,
3671
+ handle: str,
3672
+ *,
3673
+ timeout: Optional[float] = None,
3674
+ ) -> Response[ToolsShadowbanCheckData]:
3675
+ """Check an X account for visibility filtering.
3676
+
3677
+ `POST /tools/shadowban-check`. 2 credits, live read.
3678
+
3679
+ Args:
3680
+ handle: X handle. Accepts a bare name, @name, or a profile URL. Also accepted as `username`.
3681
+ """
3682
+ return await self._op("tools_shadowban_check", {"handle": handle}, timeout) # type: ignore[no-any-return]
3683
+
3684
+ async def tools_follower_audit(
3685
+ self,
3686
+ handle: str,
3687
+ *,
3688
+ timeout: Optional[float] = None,
3689
+ ) -> Response[ToolsFollowerAuditData]:
3690
+ """Audit an X account's followers for fakes.
3691
+
3692
+ `POST /tools/follower-audit`. 2 credits, live read.
3693
+
3694
+ Args:
3695
+ handle: X handle. Accepts a bare name, @name, or a profile URL. Also accepted as `username`.
3696
+ """
3697
+ return await self._op("tools_follower_audit", {"handle": handle}, timeout) # type: ignore[no-any-return]
3698
+
3699
+ async def tools_engagement_calculator(
3700
+ self,
3701
+ handle: str,
3702
+ *,
3703
+ timeout: Optional[float] = None,
3704
+ ) -> Response[ToolsEngagementCalculatorData]:
3705
+ """Measure an X account's engagement rate.
3706
+
3707
+ `POST /tools/engagement-calculator`. 2 credits, live read.
3708
+
3709
+ Args:
3710
+ handle: X handle. Accepts a bare name, @name, or a profile URL. Also accepted as `username`.
3711
+ """
3712
+ return await self._op("tools_engagement_calculator", {"handle": handle}, timeout) # type: ignore[no-any-return]
3713
+
3714
+ async def tools_best_posting_time(
3715
+ self,
3716
+ handle: str,
3717
+ *,
3718
+ timeout: Optional[float] = None,
3719
+ ) -> Response[ToolsBestPostingTimeData]:
3720
+ """Find when an X account should post.
3721
+
3722
+ `POST /tools/best-posting-time`. 2 credits, live read.
3723
+
3724
+ Args:
3725
+ handle: X handle. Accepts a bare name, @name, or a profile URL. Also accepted as `username`.
3726
+ """
3727
+ return await self._op("tools_best_posting_time", {"handle": handle}, timeout) # type: ignore[no-any-return]
3728
+
3729
+ async def tools_algorithm_score(
3730
+ self,
3731
+ handle: str,
3732
+ *,
3733
+ timeout: Optional[float] = None,
3734
+ ) -> Response[ToolsAlgorithmScoreData]:
3735
+ """Score an X account against the ranking signals.
3736
+
3737
+ `POST /tools/algorithm-score`. 2 credits, live read.
3738
+
3739
+ Args:
3740
+ handle: X handle. Accepts a bare name, @name, or a profile URL. Also accepted as `username`.
3741
+ """
3742
+ return await self._op("tools_algorithm_score", {"handle": handle}, timeout) # type: ignore[no-any-return]
3743
+
3744
+ async def tools_tweet_analyzer(
3745
+ self,
3746
+ tweet: str,
3747
+ *,
3748
+ timeout: Optional[float] = None,
3749
+ ) -> Response[ToolsTweetAnalyzerData]:
3750
+ """Analyze a single X post.
3751
+
3752
+ `POST /tools/tweet-analyzer`. 2 credits, live read.
3753
+
3754
+ Args:
3755
+ tweet: Numeric post id or a full x.com/<user>/status/<id> URL. Also accepted as `tweet_url` or `tweet_id`.
3756
+ """
3757
+ return await self._op("tools_tweet_analyzer", {"tweet": tweet}, timeout) # type: ignore[no-any-return]
3758
+
3759
+ async def tools_mention_checker(
3760
+ self,
3761
+ handle: str,
3762
+ *,
3763
+ timeout: Optional[float] = None,
3764
+ ) -> Response[ToolsMentionCheckerData]:
3765
+ """See who is mentioning an X account.
3766
+
3767
+ `POST /tools/mention-checker`. 2 credits, live read.
3768
+
3769
+ Args:
3770
+ handle: X handle. Accepts a bare name, @name, or a profile URL. Also accepted as `username`.
3771
+ """
3772
+ return await self._op("tools_mention_checker", {"handle": handle}, timeout) # type: ignore[no-any-return]
3773
+
3774
+ async def tools_growth_simulator(
3775
+ self,
3776
+ current_followers: int,
3777
+ target_followers: int,
3778
+ *,
3779
+ niche: Optional[Literal["tech", "finance", "crypto", "entertainment", "sports", "politics", "general"]] = None,
3780
+ quality: Optional[Literal["casual", "good", "professional"]] = None,
3781
+ posts_per_day: Optional[int] = None,
3782
+ timeout: Optional[float] = None,
3783
+ ) -> Response[ToolsGrowthSimulatorData]:
3784
+ """Project how long a follower target takes.
3785
+
3786
+ `POST /tools/growth-simulator`. 1 credit.
3787
+
3788
+ Args:
3789
+ current_followers: Follower count today. 0 to 100000000.
3790
+ target_followers: Follower goal. Must be greater than current_followers.
3791
+ niche: Topic weighting applied to daily growth.
3792
+ quality: Content quality tier. Sets the baseline daily gain and the minutes spent per post.
3793
+ posts_per_day: Posting cadence, 1 to 100. Applied as a log2 bonus, so doubling output is worth less each time.
3794
+ """
3795
+ return await self._op("tools_growth_simulator", {"current_followers": current_followers, "target_followers": target_followers, "niche": niche, "quality": quality, "posts_per_day": posts_per_day}, timeout) # type: ignore[no-any-return]
3796
+
3797
+ async def tools_profile_pic(
3798
+ self,
3799
+ handle: str,
3800
+ *,
3801
+ timeout: Optional[float] = None,
3802
+ ) -> Response[ToolsProfilePicData]:
3803
+ """Fetch an X profile picture URL.
3804
+
3805
+ `GET /tools/profile-pic`. 2 credits, live read.
3806
+
3807
+ Args:
3808
+ handle: X handle. Accepts a bare name, @name, or a profile URL.
3809
+ """
3810
+ return await self._op("tools_profile_pic", {"handle": handle}, timeout) # type: ignore[no-any-return]
3811
+
3812
+ async def tools_audience_finder(
3813
+ self,
3814
+ platform: Literal["telegram", "tiktok", "x"],
3815
+ *,
3816
+ q: Optional[str] = None,
3817
+ min_audience: Optional[int] = None,
3818
+ max_audience: Optional[int] = None,
3819
+ language: Optional[str] = None,
3820
+ category: Optional[str] = None,
3821
+ sort: Optional[str] = None,
3822
+ page: Optional[int] = None,
3823
+ age: Optional[Literal["all", "pre2013", "pre2016", "pre2020", "post2023"]] = None,
3824
+ ratio: Optional[Literal["all", "r1", "r10", "r100"]] = None,
3825
+ activity: Optional[Literal["all", "low", "normal", "high"]] = None,
3826
+ timeout: Optional[float] = None,
3827
+ ) -> Response[ToolsAudienceFinderData]:
3828
+ """Search the Telegram, TikTok and X catalog.
3829
+
3830
+ `GET /tools/audience-finder`. 1 credit.
3831
+
3832
+ Args:
3833
+ platform: Which catalog to search.
3834
+ q: Full-text search over name and bio. Capped at 80 characters.
3835
+ min_audience: Minimum followers (X, TikTok) or members (Telegram).
3836
+ max_audience: Maximum followers or members.
3837
+ language: ISO language code as classified by our engine, e.g. en, tr, es.
3838
+ category: Category slug as classified by our engine, e.g. ai, crypto, news.
3839
+ sort: Ordering. X supports followers only. Telegram supports subscribers, reach, posts. TikTok supports followers, likes, videos.
3840
+ page: 1-based page. 50 rows per page, 20 pages maximum.
3841
+ age: X only. Account creation window.
3842
+ ratio: X only. Minimum follower-to-following ratio.
3843
+ activity: X only. Posts per day band.
3844
+ """
3845
+ return await self._op("tools_audience_finder", {"platform": platform, "q": q, "min_audience": min_audience, "max_audience": max_audience, "language": language, "category": category, "sort": sort, "page": page, "age": age, "ratio": ratio, "activity": activity}, timeout) # type: ignore[no-any-return]
3846
+
3847
+ async def tools_tiktok_engagement(
3848
+ self,
3849
+ handle: str,
3850
+ *,
3851
+ timeout: Optional[float] = None,
3852
+ ) -> Response[ToolsTiktokEngagementData]:
3853
+ """Measure a TikTok account's engagement.
3854
+
3855
+ `POST /tools/tiktok/engagement`. 2 credits, live read.
3856
+
3857
+ Args:
3858
+ handle: TikTok username. Accepts @name or a profile URL. Also accepted as `username`.
3859
+ """
3860
+ return await self._op("tools_tiktok_engagement", {"handle": handle}, timeout) # type: ignore[no-any-return]
3861
+
3862
+ async def tools_tiktok_money(
3863
+ self,
3864
+ handle: str,
3865
+ *,
3866
+ timeout: Optional[float] = None,
3867
+ ) -> Response[ToolsTiktokMoneyData]:
3868
+ """Estimate TikTok brand-deal earnings.
3869
+
3870
+ `POST /tools/tiktok/money`. 2 credits, live read.
3871
+
3872
+ Args:
3873
+ handle: TikTok username. Accepts @name or a profile URL. Also accepted as `username`.
3874
+ """
3875
+ return await self._op("tools_tiktok_money", {"handle": handle}, timeout) # type: ignore[no-any-return]
3876
+
3877
+ async def tools_youtube_money(
3878
+ self,
3879
+ handle: str,
3880
+ *,
3881
+ timeout: Optional[float] = None,
3882
+ ) -> Response[ToolsYoutubeMoneyData]:
3883
+ """Estimate YouTube ad earnings.
3884
+
3885
+ `POST /tools/youtube/money`. 2 credits, live read.
3886
+
3887
+ Args:
3888
+ handle: YouTube @handle, UC… channel id, or channel URL. Also accepted as `channel` or `url`.
3889
+ """
3890
+ return await self._op("tools_youtube_money", {"handle": handle}, timeout) # type: ignore[no-any-return]
3891
+
3892
+ async def tools_youtube_channel_value(
3893
+ self,
3894
+ handle: str,
3895
+ *,
3896
+ timeout: Optional[float] = None,
3897
+ ) -> Response[ToolsYoutubeChannelValueData]:
3898
+ """Estimate what a YouTube channel is worth.
3899
+
3900
+ `POST /tools/youtube/channel-value`. 2 credits, live read.
3901
+
3902
+ Args:
3903
+ handle: YouTube @handle, UC… channel id, or channel URL. Also accepted as `channel` or `url`.
3904
+ """
3905
+ return await self._op("tools_youtube_channel_value", {"handle": handle}, timeout) # type: ignore[no-any-return]
3906
+
3907
+ async def tools_kick_money(
3908
+ self,
3909
+ *,
3910
+ handle: Optional[str] = None,
3911
+ avg_ccv: Optional[float] = None,
3912
+ hours_streamed: Optional[float] = None,
3913
+ followers: Optional[int] = None,
3914
+ hours_watched: Optional[float] = None,
3915
+ timeout: Optional[float] = None,
3916
+ ) -> Response[ToolsKickMoneyData]:
3917
+ """Estimate Kick streamer earnings.
3918
+
3919
+ `POST /tools/kick/money`. 2 credits, live read.
3920
+
3921
+ Args:
3922
+ handle: Kick channel name. Accepts a bare name, @name, or a channel URL. Required unless avg_ccv and hours_streamed are supplied. Also accepted as `channel` or...
3923
+ avg_ccv: Average concurrent viewers over the month. Supplying this together with hours_streamed answers from the numbers and spends no live read.
3924
+ hours_streamed: HOURS PER MONTH on air, 0 to 744 - not per week and not per stream. Required alongside avg_ccv. When the channel is looked up instead, we derive this from the...
3925
+ followers: Follower count. Used only for the audience signal and the turnout line - it contributes nothing to the earnings maths, because a follower who does not watch...
3926
+ hours_watched: Viewer-hours in the same month. Defaults to avg_ccv x hours_streamed, which is the identity our rollup uses.
3927
+ """
3928
+ return await self._op("tools_kick_money", {"handle": handle, "avg_ccv": avg_ccv, "hours_streamed": hours_streamed, "followers": followers, "hours_watched": hours_watched}, timeout) # type: ignore[no-any-return]
3929
+
3930
+ async def tools_kick_channel_value(
3931
+ self,
3932
+ *,
3933
+ handle: Optional[str] = None,
3934
+ avg_ccv: Optional[float] = None,
3935
+ hours_streamed: Optional[float] = None,
3936
+ followers: Optional[int] = None,
3937
+ hours_watched: Optional[float] = None,
3938
+ peak_ccv: Optional[float] = None,
3939
+ timeout: Optional[float] = None,
3940
+ ) -> Response[ToolsKickChannelValueData]:
3941
+ """Estimate what a Kick channel is worth.
3942
+
3943
+ `POST /tools/kick/channel-value`. 2 credits, live read.
3944
+
3945
+ Args:
3946
+ handle: Kick channel name. Accepts a bare name, @name, or a channel URL. Required unless avg_ccv and hours_streamed are supplied. Also accepted as `channel` or...
3947
+ avg_ccv: Average concurrent viewers over the month. Supplying this together with hours_streamed answers from the numbers and spends no live read.
3948
+ hours_streamed: HOURS PER MONTH on air, 0 to 744 - not per week and not per stream. Required alongside avg_ccv. When the channel is looked up instead, we derive this from the...
3949
+ followers: Follower count. Used only for the audience signal and the turnout line - it contributes nothing to the earnings maths, because a follower who does not watch...
3950
+ hours_watched: Viewer-hours in the same month. Defaults to avg_ccv x hours_streamed, which is the identity our rollup uses.
3951
+ peak_ccv: Peak concurrent viewers in the window. Used to flag an event-driven audience; it does not move the valuation.
3952
+ """
3953
+ return await self._op("tools_kick_channel_value", {"handle": handle, "avg_ccv": avg_ccv, "hours_streamed": hours_streamed, "followers": followers, "hours_watched": hours_watched, "peak_ccv": peak_ccv}, timeout) # type: ignore[no-any-return]
3954
+
3955
+ async def tools_kick_rank(
3956
+ self,
3957
+ *,
3958
+ handle: Optional[str] = None,
3959
+ followers: Optional[int] = None,
3960
+ avg_ccv: Optional[float] = None,
3961
+ timeout: Optional[float] = None,
3962
+ ) -> Response[ToolsKickRankData]:
3963
+ """Rank a Kick channel by followers and viewership.
3964
+
3965
+ `POST /tools/kick/rank`. 2 credits, live read.
3966
+
3967
+ Args:
3968
+ handle: Kick channel name. Required unless followers is supplied. Also accepted as `channel` or `username`.
3969
+ followers: A bare follower count to place on the ladder. Answers without any lookup at all.
3970
+ avg_ccv: Optional average concurrent viewers, placed on the viewership ladder at the same time. Also free.
3971
+ """
3972
+ return await self._op("tools_kick_rank", {"handle": handle, "followers": followers, "avg_ccv": avg_ccv}, timeout) # type: ignore[no-any-return]
3973
+
3974
+ async def tools_twitch_money(
3975
+ self,
3976
+ *,
3977
+ handle: Optional[str] = None,
3978
+ avg_ccv: Optional[float] = None,
3979
+ hours_streamed: Optional[float] = None,
3980
+ followers: Optional[int] = None,
3981
+ hours_watched: Optional[float] = None,
3982
+ timeout: Optional[float] = None,
3983
+ ) -> Response[ToolsTwitchMoneyData]:
3984
+ """Estimate Twitch streamer earnings.
3985
+
3986
+ `POST /tools/twitch/money`. 2 credits, live read.
3987
+
3988
+ Args:
3989
+ handle: Twitch channel name. Accepts a bare name, @name, or a channel URL. Required unless avg_ccv and hours_streamed are supplied. Also accepted as `channel` or...
3990
+ avg_ccv: Average concurrent viewers over the month. Supplying this together with hours_streamed answers from the numbers and spends no live read.
3991
+ hours_streamed: HOURS PER MONTH on air, 0 to 744 - not per week and not per stream. Required alongside avg_ccv. When the channel is looked up instead, we derive this from the...
3992
+ followers: Follower count. Used only for the audience signal and the turnout line - it contributes nothing to the earnings maths, because a follower who does not watch...
3993
+ hours_watched: Viewer-hours in the same month. Defaults to avg_ccv x hours_streamed, which is the identity our rollup uses.
3994
+ """
3995
+ return await self._op("tools_twitch_money", {"handle": handle, "avg_ccv": avg_ccv, "hours_streamed": hours_streamed, "followers": followers, "hours_watched": hours_watched}, timeout) # type: ignore[no-any-return]
3996
+
3997
+ async def tools_twitch_channel_value(
3998
+ self,
3999
+ *,
4000
+ handle: Optional[str] = None,
4001
+ avg_ccv: Optional[float] = None,
4002
+ hours_streamed: Optional[float] = None,
4003
+ followers: Optional[int] = None,
4004
+ hours_watched: Optional[float] = None,
4005
+ peak_ccv: Optional[float] = None,
4006
+ timeout: Optional[float] = None,
4007
+ ) -> Response[ToolsTwitchChannelValueData]:
4008
+ """Estimate what a Twitch channel is worth.
4009
+
4010
+ `POST /tools/twitch/channel-value`. 2 credits, live read.
4011
+
4012
+ Args:
4013
+ handle: Twitch channel name. Accepts a bare name, @name, or a channel URL. Required unless avg_ccv and hours_streamed are supplied. Also accepted as `channel` or...
4014
+ avg_ccv: Average concurrent viewers over the month. Supplying this together with hours_streamed answers from the numbers and spends no live read.
4015
+ hours_streamed: HOURS PER MONTH on air, 0 to 744 - not per week and not per stream. Required alongside avg_ccv. When the channel is looked up instead, we derive this from the...
4016
+ followers: Follower count. Used only for the audience signal and the turnout line - it contributes nothing to the earnings maths, because a follower who does not watch...
4017
+ hours_watched: Viewer-hours in the same month. Defaults to avg_ccv x hours_streamed, which is the identity our rollup uses.
4018
+ peak_ccv: Peak concurrent viewers in the window. Used to flag an event-driven audience; it does not move the valuation.
4019
+ """
4020
+ return await self._op("tools_twitch_channel_value", {"handle": handle, "avg_ccv": avg_ccv, "hours_streamed": hours_streamed, "followers": followers, "hours_watched": hours_watched, "peak_ccv": peak_ccv}, timeout) # type: ignore[no-any-return]
4021
+
4022
+ async def tools_twitch_rank(
4023
+ self,
4024
+ *,
4025
+ handle: Optional[str] = None,
4026
+ followers: Optional[int] = None,
4027
+ avg_ccv: Optional[float] = None,
4028
+ timeout: Optional[float] = None,
4029
+ ) -> Response[ToolsTwitchRankData]:
4030
+ """Rank a Twitch channel by followers and viewership.
4031
+
4032
+ `POST /tools/twitch/rank`. 2 credits, live read.
4033
+
4034
+ Args:
4035
+ handle: Twitch channel name. Required unless followers is supplied. Also accepted as `channel` or `username`.
4036
+ followers: A bare follower count to place on the ladder. Answers without any lookup at all.
4037
+ avg_ccv: Optional average concurrent viewers, placed on the viewership ladder at the same time. Also free.
4038
+ """
4039
+ return await self._op("tools_twitch_rank", {"handle": handle, "followers": followers, "avg_ccv": avg_ccv}, timeout) # type: ignore[no-any-return]
4040
+
4041
+ async def leads_linkedin_domain(
4042
+ self,
4043
+ domain: str,
4044
+ *,
4045
+ timeout: Optional[float] = None,
4046
+ ) -> Response[LeadsLinkedinDomainData]:
4047
+ """Enrich a company from its website domain.
4048
+
4049
+ `GET /leads/linkedin/domains/{domain}`. 1 credit.
4050
+
4051
+ Args:
4052
+ domain: Company website domain. A bare host, a full URL or an email address are all accepted and normalised the same way.
4053
+ """
4054
+ return await self._op("leads_linkedin_domain", {"domain": domain}, timeout) # type: ignore[no-any-return]
4055
+
4056
+ async def leads_linkedin_segments(
4057
+ self,
4058
+ *,
4059
+ by: Optional[Literal["industry", "country", "size_band", "founded_decade"]] = None,
4060
+ industry: Optional[str] = None,
4061
+ country: Optional[str] = None,
4062
+ size_band: Optional[str] = None,
4063
+ min_staff: Optional[int] = None,
4064
+ max_staff: Optional[int] = None,
4065
+ timeout: Optional[float] = None,
4066
+ ) -> Response[LeadsLinkedinSegmentsData]:
4067
+ """Firmographic market sizing with real counts.
4068
+
4069
+ `GET /leads/linkedin/segments`. 1 credit.
4070
+
4071
+ Args:
4072
+ by: Dimension to group on.
4073
+ industry: Restrict to one industry, exactly as LinkedIn writes it.
4074
+ country: ISO 3166-1 alpha-2. Matched against country_code, never the free text.
4075
+ size_band: LinkedIn size band, e.g. '51-200 employees'.
4076
+ min_staff: Lower bound on exact headcount. Companies with no headcount are excluded.
4077
+ max_staff: Upper bound on exact headcount. Companies with no headcount are excluded.
4078
+ """
4079
+ return await self._op("leads_linkedin_segments", {"by": by, "industry": industry, "country": country, "size_band": size_band, "min_staff": min_staff, "max_staff": max_staff}, timeout) # type: ignore[no-any-return]
4080
+
4081
+ async def leads_linkedin_companies_list(
4082
+ self,
4083
+ *,
4084
+ country: Optional[str] = None,
4085
+ industry: Optional[str] = None,
4086
+ size: Optional[str] = None,
4087
+ has_email: Optional[bool] = None,
4088
+ has_website: Optional[bool] = None,
4089
+ has_decision_maker: Optional[bool] = None,
4090
+ has_social: Optional[bool] = None,
4091
+ min_followers: Optional[int] = None,
4092
+ active_days: Optional[int] = None,
4093
+ q: Optional[str] = None,
4094
+ sort: Optional[Literal["followers", "readiness", "recent", "staff"]] = None,
4095
+ limit: Optional[int] = None,
4096
+ cursor: Optional[str] = None,
4097
+ timeout: Optional[float] = None,
4098
+ ) -> Response[LeadsLinkedinCompaniesListData]:
4099
+ """LinkedIn company records, filterable.
4100
+
4101
+ `GET /leads/linkedin/companies`. 1 credit.
4102
+
4103
+ Args:
4104
+ country: ISO 3166-1 alpha-2, derived by the engine from the free-text location. LinkedIn writes 'City, Region' and rarely names a country, so filter on this rather than...
4105
+ industry: Industry exactly as LinkedIn labels it.
4106
+ size: Employee band exactly as LinkedIn labels it. Applied inside the scan window - see the pagination note.
4107
+ has_email: Only companies with at least one non-suppressed contact address.
4108
+ has_website: Only companies with a resolved website domain. Applied inside the scan window.
4109
+ has_decision_maker: Only companies where we can name a founder, C-level, VP or director.
4110
+ has_social: Only companies with a social handle that matched a row in one of our catalogs.
4111
+ min_followers: LinkedIn follower floor.
4112
+ active_days: Only companies that posted within this many days.
4113
+ q: Substring match on company name, slug or website domain.
4114
+ sort: readiness orders by the columns the contactability score is built from, then applies the exact score to the page.
4115
+ limit: Rows per page, 1-200.
4116
+ cursor: Opaque cursor from meta.page.next_cursor.
4117
+ """
4118
+ return await self._op("leads_linkedin_companies_list", {"country": country, "industry": industry, "size": size, "has_email": has_email, "has_website": has_website, "has_decision_maker": has_decision_maker, "has_social": has_social, "min_followers": min_followers, "active_days": active_days, "q": q, "sort": sort, "limit": limit, "cursor": cursor}, timeout) # type: ignore[no-any-return]
4119
+
4120
+ async def leads_linkedin_companies_get(
4121
+ self,
4122
+ id: str,
4123
+ *,
4124
+ timeout: Optional[float] = None,
4125
+ ) -> Response[LeadsLinkedinCompaniesGetData]:
4126
+ """One company with socials, contacts and decision makers.
4127
+
4128
+ `GET /leads/linkedin/companies/{id}`. 1 credit.
4129
+
4130
+ Args:
4131
+ id: Company slug, the last path segment of its linkedin.com/company/ URL.
4132
+ """
4133
+ return await self._op("leads_linkedin_companies_get", {"id": id}, timeout) # type: ignore[no-any-return]
4134
+
4135
+ async def leads_linkedin_people_list(
4136
+ self,
4137
+ *,
4138
+ company: Optional[str] = None,
4139
+ seniority: Optional[Literal["founder", "c_level", "vp", "director", "manager", "staff", "unknown"]] = None,
4140
+ decision_makers: Optional[bool] = None,
4141
+ title: Optional[str] = None,
4142
+ country: Optional[str] = None,
4143
+ industry: Optional[str] = None,
4144
+ limit: Optional[int] = None,
4145
+ cursor: Optional[str] = None,
4146
+ timeout: Optional[float] = None,
4147
+ ) -> Response[LeadsLinkedinPeopleListData]:
4148
+ """Named people and decision makers.
4149
+
4150
+ `GET /leads/linkedin/people`. 1 credit.
4151
+
4152
+ Args:
4153
+ company: Company slug.
4154
+ seniority: Exact seniority band.
4155
+ decision_makers: Shortcut for founder, c_level, vp and director together. Overrides seniority when both are given.
4156
+ title: Case-insensitive substring match against job title and LinkedIn headline.
4157
+ country: ISO 3166-1 alpha-2 of the person's company.
4158
+ industry: Industry of the person's company.
4159
+ limit: Rows per page, 1-200.
4160
+ cursor: Opaque cursor from meta.page.next_cursor.
4161
+ """
4162
+ return await self._op("leads_linkedin_people_list", {"company": company, "seniority": seniority, "decision_makers": decision_makers, "title": title, "country": country, "industry": industry, "limit": limit, "cursor": cursor}, timeout) # type: ignore[no-any-return]