@captapi/sdk 0.1.0

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.
@@ -0,0 +1,964 @@
1
+ // AUTO-GENERATED by scripts/gen-sdk.mts -- do not edit by hand.
2
+ import { HttpCore } from "./core.js";
3
+ export class YoutubeApi {
4
+ core;
5
+ constructor(core) {
6
+ this.core = core;
7
+ }
8
+ /** YouTube Transcript — Extract the full timestamped transcript of a YouTube video. (2 credits) */
9
+ transcript(params) {
10
+ return this.core.get("/v1/youtube/transcript", params);
11
+ }
12
+ /** YouTube Summarizer — AI summary (key points, topics, sentiment) of a YouTube video. (4 credits) */
13
+ summarize(params) {
14
+ return this.core.get("/v1/youtube/summarize", params);
15
+ }
16
+ /** YouTube Video Details — Metadata + engagement stats for a YouTube video. (1 credit) */
17
+ videoDetails(params) {
18
+ return this.core.get("/v1/youtube/video-details", params);
19
+ }
20
+ /** YouTube Comments — Comments on a YouTube video. (20 credits) */
21
+ comments(params) {
22
+ return this.core.get("/v1/youtube/comments", params);
23
+ }
24
+ /** YouTube Channel Details — Channel info & subscriber/stats for a YouTube channel. (1 credit) */
25
+ channelDetails(params) {
26
+ return this.core.get("/v1/youtube/channel-details", params);
27
+ }
28
+ /** YouTube Search — Search YouTube videos by keyword. (20 credits) */
29
+ search(params) {
30
+ return this.core.get("/v1/youtube/search", params);
31
+ }
32
+ /** YouTube Channel Videos — List a channel's uploaded videos. (20 credits) */
33
+ channelVideos(params) {
34
+ return this.core.get("/v1/youtube/channel-videos", params);
35
+ }
36
+ /** YouTube Playlist Videos — List videos in a YouTube playlist. (50 credits) */
37
+ playlistVideos(params) {
38
+ return this.core.get("/v1/youtube/playlist-videos", params);
39
+ }
40
+ /** YouTube Playlist — Playlist metadata plus videos from a YouTube playlist. (50 credits) */
41
+ playlist(params) {
42
+ return this.core.get("/v1/youtube/playlist", params);
43
+ }
44
+ /** YouTube Video Download — Direct download URLs for a YouTube video. (3 credits) */
45
+ videoDownload(params) {
46
+ return this.core.get("/v1/youtube/video-download", params);
47
+ }
48
+ /** YouTube Shorts Transcript — Transcript of a YouTube Short. (2 credits) */
49
+ shortsTranscript(params) {
50
+ return this.core.get("/v1/youtube/shorts/transcript", params);
51
+ }
52
+ /** YouTube Shorts Summarizer — AI summary of a YouTube Short. (4 credits) */
53
+ shortsSummarize(params) {
54
+ return this.core.get("/v1/youtube/shorts/summarize", params);
55
+ }
56
+ /** YouTube Shorts Stats — Metadata + stats for a YouTube Short. (1 credit) */
57
+ shortsDetails(params) {
58
+ return this.core.get("/v1/youtube/shorts/video-details", params);
59
+ }
60
+ /** YouTube Shorts Comments — Comments on a YouTube Short. (20 credits) */
61
+ shortsComments(params) {
62
+ return this.core.get("/v1/youtube/shorts/comments", params);
63
+ }
64
+ /** YouTube Channel Shorts — List a channel's Shorts. (20 credits) */
65
+ channelShorts(params) {
66
+ return this.core.get("/v1/youtube/channel-shorts", params);
67
+ }
68
+ /** YouTube Trending Shorts — Discover trending YouTube Shorts by seed keyword. (28 credits) */
69
+ trendingShorts(params = {}) {
70
+ return this.core.get("/v1/youtube/trending-shorts", params);
71
+ }
72
+ /** YouTube Channel Streams — List a channel's live/past streams. (20 credits) */
73
+ channelStreams(params) {
74
+ return this.core.get("/v1/youtube/channel-streams", params);
75
+ }
76
+ /** YouTube Hashtag Search — Search YouTube videos by hashtag. (20 credits) */
77
+ hashtagSearch(params) {
78
+ return this.core.get("/v1/youtube/hashtag-search", params);
79
+ }
80
+ /** YouTube Comment Replies — Replies to a specific YouTube comment. (20 credits) */
81
+ commentReplies(params) {
82
+ return this.core.get("/v1/youtube/comment-replies", params);
83
+ }
84
+ /** YouTube Channel Playlists — List a channel's playlists. (20 credits) */
85
+ channelPlaylists(params) {
86
+ return this.core.get("/v1/youtube/channel-playlists", params);
87
+ }
88
+ /** YouTube Community Posts — List a channel's community (posts) tab. (10 credits) */
89
+ communityPosts(params) {
90
+ return this.core.get("/v1/youtube/community-posts", params);
91
+ }
92
+ /** YouTube Community Post Details — Details for a single YouTube community post. (7 credits) */
93
+ communityPostDetails(params) {
94
+ return this.core.get("/v1/youtube/community-post-details", params);
95
+ }
96
+ /** YouTube Video Sponsors — Sponsor / self-promo / interaction segments in a YouTube video (via SponsorBlock). (1 credit) */
97
+ videoSponsors(params) {
98
+ return this.core.get("/v1/youtube/video-sponsors", params);
99
+ }
100
+ }
101
+ export class TiktokApi {
102
+ core;
103
+ constructor(core) {
104
+ this.core = core;
105
+ }
106
+ /** TikTok Transcript — Transcript of a TikTok video (via captions). (2 credits) */
107
+ transcript(params) {
108
+ return this.core.get("/v1/tiktok/transcript", params);
109
+ }
110
+ /** TikTok Summarizer — AI summary of a TikTok video. (4 credits) */
111
+ summarize(params) {
112
+ return this.core.get("/v1/tiktok/summarize", params);
113
+ }
114
+ /** TikTok Video Details — Metadata + stats for a TikTok video. (1 credit) */
115
+ videoDetails(params) {
116
+ return this.core.get("/v1/tiktok/video-details", params);
117
+ }
118
+ /** TikTok Comments — Comments on a TikTok video. (10 credits) */
119
+ comments(params) {
120
+ return this.core.get("/v1/tiktok/comments", params);
121
+ }
122
+ /** TikTok Channel Details — Profile info & stats for a TikTok user. (1 credit) */
123
+ channelDetails(params) {
124
+ return this.core.get("/v1/tiktok/channel-details", params);
125
+ }
126
+ /** TikTok Profile Region — Region and language signals for a TikTok profile. (7 credits) */
127
+ profileRegion(params) {
128
+ return this.core.get("/v1/tiktok/profile-region", params);
129
+ }
130
+ /** TikTok Audience Demographics — Audience and demographic signals for a TikTok profile. (7 credits) */
131
+ audienceDemographics(params) {
132
+ return this.core.get("/v1/tiktok/audience-demographics", params);
133
+ }
134
+ /** TikTok Search — Search TikTok videos by keyword/hashtag. (14 credits) */
135
+ search(params) {
136
+ return this.core.get("/v1/tiktok/search", params);
137
+ }
138
+ /** TikTok Search Suggestions — TikTok search/autocomplete suggestions for a seed keyword. (28 credits) */
139
+ searchSuggestions(params) {
140
+ return this.core.get("/v1/tiktok/search-suggestions", params);
141
+ }
142
+ /** TikTok Video Download — No-watermark download URL for a TikTok video. (3 credits) */
143
+ videoDownload(params) {
144
+ return this.core.get("/v1/tiktok/video-download", params);
145
+ }
146
+ /** TikTok Channel Posts — Latest posts from a TikTok profile. (14 credits) */
147
+ channelPosts(params) {
148
+ return this.core.get("/v1/tiktok/channel-posts", params);
149
+ }
150
+ /** TikTok Comment Replies — Replies to a specific TikTok comment. (50 credits) */
151
+ commentReplies(params) {
152
+ return this.core.get("/v1/tiktok/comment-replies", params);
153
+ }
154
+ /** TikTok User Followers — List a TikTok user's followers. (20 credits) */
155
+ userFollowers(params) {
156
+ return this.core.get("/v1/tiktok/user-followers", params);
157
+ }
158
+ /** TikTok User Followings — List who a TikTok user follows. (20 credits) */
159
+ userFollowings(params) {
160
+ return this.core.get("/v1/tiktok/user-followings", params);
161
+ }
162
+ /** TikTok Music Posts — Posts using a specific TikTok sound/music. (32 credits) */
163
+ musicPosts(params) {
164
+ return this.core.get("/v1/tiktok/music-posts", params);
165
+ }
166
+ /** TikTok Hashtag Search — Search TikTok videos by hashtag. (14 credits) */
167
+ hashtagSearch(params) {
168
+ return this.core.get("/v1/tiktok/hashtag-search", params);
169
+ }
170
+ /** TikTok Top Search — Top mixed TikTok results for a keyword. (14 credits) */
171
+ topSearch(params) {
172
+ return this.core.get("/v1/tiktok/top-search", params);
173
+ }
174
+ /** TikTok User Search — Search TikTok users/creators by keyword. (8 credits) */
175
+ userSearch(params) {
176
+ return this.core.get("/v1/tiktok/user-search", params);
177
+ }
178
+ /** TikTok Song Details — Details of a TikTok sound/song. (2 credits) */
179
+ songDetails(params) {
180
+ return this.core.get("/v1/tiktok/song-details", params);
181
+ }
182
+ /** TikTok Trending Feed — TikTok trending (For You) videos by region. (14 credits) */
183
+ trendingFeed(params = {}) {
184
+ return this.core.get("/v1/tiktok/trending-feed", params);
185
+ }
186
+ /** TikTok Popular Hashtags — Trending TikTok hashtags for a topic/keyword. (14 credits) */
187
+ popularHashtags(params = {}) {
188
+ return this.core.get("/v1/tiktok/popular-hashtags", params);
189
+ }
190
+ /** TikTok Live — Live status & room info for a TikTok creator. (1 credit) */
191
+ live(params) {
192
+ return this.core.get("/v1/tiktok/live", params);
193
+ }
194
+ /** TikTok Live Info — Live room details for a TikTok creator. (7 credits) */
195
+ liveInfo(params) {
196
+ return this.core.get("/v1/tiktok/live-info", params);
197
+ }
198
+ /** TikTok Popular Creators — Popular TikTok creators by country and ranking mode. (28 credits) */
199
+ popularCreators(params = {}) {
200
+ return this.core.get("/v1/tiktok/popular-creators", params);
201
+ }
202
+ }
203
+ export class InstagramApi {
204
+ core;
205
+ constructor(core) {
206
+ this.core = core;
207
+ }
208
+ /** Instagram Transcript — Transcript of an Instagram Reel. (2 credits) */
209
+ transcript(params) {
210
+ return this.core.get("/v1/instagram/transcript", params);
211
+ }
212
+ /** Instagram Summarizer — AI summary of an Instagram Reel. (4 credits) */
213
+ summarize(params) {
214
+ return this.core.get("/v1/instagram/summarize", params);
215
+ }
216
+ /** Instagram Details — Details for an Instagram post or reel. (1 credit) */
217
+ details(params) {
218
+ return this.core.get("/v1/instagram/details", params);
219
+ }
220
+ /** Instagram Comments — Comments on an Instagram post or reel. (45 credits) */
221
+ comments(params) {
222
+ return this.core.get("/v1/instagram/comments", params);
223
+ }
224
+ /** Instagram Channel Details — Profile info & stats for an Instagram account. (1 credit) */
225
+ channelDetails(params) {
226
+ return this.core.get("/v1/instagram/channel-details", params);
227
+ }
228
+ /** Instagram Channel Posts — Latest posts from an Instagram profile. (12 credits) */
229
+ channelPosts(params) {
230
+ return this.core.get("/v1/instagram/channel-posts", params);
231
+ }
232
+ /** Instagram Channel Reels — Latest Reels from an Instagram profile. (12 credits) */
233
+ channelReels(params) {
234
+ return this.core.get("/v1/instagram/channel-reels", params);
235
+ }
236
+ /** Instagram Reels Search — Search Instagram Reels by hashtag/keyword. (12 credits) */
237
+ reelsSearch(params) {
238
+ return this.core.get("/v1/instagram/reels-search", params);
239
+ }
240
+ /** Instagram Trending Reels — Trending Instagram Reels / Explore posts by country. (28 credits) */
241
+ trendingReels(params = {}) {
242
+ return this.core.get("/v1/instagram/trending-reels", params);
243
+ }
244
+ /** Instagram Video Download — Direct video URL for an Instagram Reel. (3 credits) */
245
+ videoDownload(params) {
246
+ return this.core.get("/v1/instagram/video-download", params);
247
+ }
248
+ /** Instagram Tagged Posts — Posts an Instagram user is tagged in. (18 credits) */
249
+ taggedPosts(params) {
250
+ return this.core.get("/v1/instagram/tagged-posts", params);
251
+ }
252
+ /** Instagram Music Posts — Posts/Reels using an Instagram audio. (18 credits) */
253
+ musicPosts(params) {
254
+ return this.core.get("/v1/instagram/music-posts", params);
255
+ }
256
+ /** Instagram Reels By Audio ID — Posts/Reels using an Instagram audio ID. (28 credits) */
257
+ reelsByAudioId(params) {
258
+ return this.core.get("/v1/instagram/reels-by-audio-id", params);
259
+ }
260
+ /** Instagram Hashtag Search — Search Instagram posts by hashtag. (12 credits) */
261
+ hashtagSearch(params) {
262
+ return this.core.get("/v1/instagram/hashtag-search", params);
263
+ }
264
+ /** Instagram Profile Search — Search Instagram profiles by keyword. (12 credits) */
265
+ profileSearch(params) {
266
+ return this.core.get("/v1/instagram/profile-search", params);
267
+ }
268
+ /** Instagram Story Highlights — List a profile's story highlight covers. (5 credits) */
269
+ storyHighlights(params) {
270
+ return this.core.get("/v1/instagram/story-highlights", params);
271
+ }
272
+ /** Instagram Highlights Details — Items inside a profile's story highlights. (9 credits) */
273
+ highlightsDetails(params) {
274
+ return this.core.get("/v1/instagram/highlights-details", params);
275
+ }
276
+ /** Instagram Embed — Embed HTML for an Instagram post/reel. (1 credit) */
277
+ embed(params) {
278
+ return this.core.get("/v1/instagram/embed", params);
279
+ }
280
+ /** Instagram Basic Profile — Lightweight Instagram profile lookup (core fields). (1 credit) */
281
+ basicProfile(params) {
282
+ return this.core.get("/v1/instagram/basic-profile", params);
283
+ }
284
+ }
285
+ export class FacebookApi {
286
+ core;
287
+ constructor(core) {
288
+ this.core = core;
289
+ }
290
+ /** Facebook Details — Details for a Facebook video or post. (1 credit) */
291
+ details(params) {
292
+ return this.core.get("/v1/facebook/details", params);
293
+ }
294
+ /** Facebook Transcript — Transcript of a Facebook video. (2 credits) */
295
+ transcript(params) {
296
+ return this.core.get("/v1/facebook/transcript", params);
297
+ }
298
+ /** Facebook Summarizer — AI summary of a Facebook video or post. (4 credits) */
299
+ summarize(params) {
300
+ return this.core.get("/v1/facebook/summarize", params);
301
+ }
302
+ /** Facebook Comments — Comments on a Facebook post. (30 credits) */
303
+ comments(params) {
304
+ return this.core.get("/v1/facebook/comments", params);
305
+ }
306
+ /** Facebook Page Details — Info & stats for a Facebook page. (1 credit) */
307
+ pageDetails(params) {
308
+ return this.core.get("/v1/facebook/page-details", params);
309
+ }
310
+ /** Facebook Profile Posts — Latest posts from a Facebook profile/page. (12 credits) */
311
+ profilePosts(params) {
312
+ return this.core.get("/v1/facebook/profile-posts", params);
313
+ }
314
+ /** Facebook Profile Reels — Latest Reels from a Facebook profile/page. (36 credits) */
315
+ profileReels(params) {
316
+ return this.core.get("/v1/facebook/profile-reels", params);
317
+ }
318
+ /** Facebook Group Posts — Posts from a public Facebook group. (12 credits) */
319
+ groupPosts(params) {
320
+ return this.core.get("/v1/facebook/group-posts", params);
321
+ }
322
+ /** Facebook Comment Replies — Replies to a specific Facebook comment. (30 credits) */
323
+ commentReplies(params) {
324
+ return this.core.get("/v1/facebook/comment-replies", params);
325
+ }
326
+ /** Facebook Marketplace Search — Search Facebook Marketplace listings by keyword and location. (28 credits) */
327
+ marketplaceSearch(params) {
328
+ return this.core.get("/v1/facebook/marketplace-search", params);
329
+ }
330
+ /** Facebook Marketplace Location Search — Find Facebook Marketplace location candidates for a city or place query. (17 credits) */
331
+ marketplaceLocationSearch(params) {
332
+ return this.core.get("/v1/facebook/marketplace-location-search", params);
333
+ }
334
+ /** Facebook Event Search — Search Facebook events by topic and/or location. (40 credits) */
335
+ eventSearch(params) {
336
+ return this.core.get("/v1/facebook/event-search", params);
337
+ }
338
+ /** Facebook Event Details — Details for a Facebook event (date, location, attendees, tickets). (2 credits) */
339
+ eventDetails(params) {
340
+ return this.core.get("/v1/facebook/event-details", params);
341
+ }
342
+ /** Facebook Profile Photos — Photos from a Facebook profile or page. (12 credits) */
343
+ profilePhotos(params) {
344
+ return this.core.get("/v1/facebook/profile-photos", params);
345
+ }
346
+ /** Facebook Profile Events — Events from a Facebook profile or page. (40 credits) */
347
+ profileEvents(params) {
348
+ return this.core.get("/v1/facebook/profile-events", params);
349
+ }
350
+ /** Facebook Marketplace Item — Details for a single Facebook Marketplace listing. (17 credits) */
351
+ marketplaceItem(params) {
352
+ return this.core.get("/v1/facebook/marketplace-item", params);
353
+ }
354
+ }
355
+ export class TwitterApi {
356
+ core;
357
+ constructor(core) {
358
+ this.core = core;
359
+ }
360
+ /** Twitter/X Tweet Details — Metadata + engagement stats for a tweet. (1 credit) */
361
+ tweetDetails(params) {
362
+ return this.core.get("/v1/twitter/tweet-details", params);
363
+ }
364
+ /** Twitter/X Transcript — Extract tweet text as transcript text. (7 credits) */
365
+ transcript(params) {
366
+ return this.core.get("/v1/twitter/transcript", params);
367
+ }
368
+ /** Twitter/X Profile — Profile info & stats for a Twitter/X account. (1 credit) */
369
+ profile(params) {
370
+ return this.core.get("/v1/twitter/profile", params);
371
+ }
372
+ /** Twitter/X User Tweets — Recent tweets from a Twitter/X profile. (14 credits) */
373
+ userTweets(params) {
374
+ return this.core.get("/v1/twitter/user-tweets", params);
375
+ }
376
+ /** Twitter/X Search — Search tweets by keyword. (14 credits) */
377
+ search(params) {
378
+ return this.core.get("/v1/twitter/search", params);
379
+ }
380
+ /** Twitter/X Community — Details for an X (Twitter) community. (1 credit) */
381
+ community(params) {
382
+ return this.core.get("/v1/twitter/community", params);
383
+ }
384
+ /** Twitter/X Community Tweets — Tweets posted in an X community. (18 credits) */
385
+ communityTweets(params) {
386
+ return this.core.get("/v1/twitter/community-tweets", params);
387
+ }
388
+ }
389
+ export class RedditApi {
390
+ core;
391
+ constructor(core) {
392
+ this.core = core;
393
+ }
394
+ /** Reddit Subreddit Posts — Recent posts in a subreddit. (10 credits) */
395
+ subredditPosts(params) {
396
+ return this.core.get("/v1/reddit/subreddit-posts", params);
397
+ }
398
+ /** Reddit Post Details — Metadata + stats for a Reddit post. (1 credit) */
399
+ postDetails(params) {
400
+ return this.core.get("/v1/reddit/post-details", params);
401
+ }
402
+ /** Reddit Post Comments — Comments on a Reddit post. (20 credits) */
403
+ postComments(params) {
404
+ return this.core.get("/v1/reddit/post-comments", params);
405
+ }
406
+ /** Reddit Post Transcript — Extract Reddit post text and top comments as a discussion transcript. (20 credits) */
407
+ postTranscript(params) {
408
+ return this.core.get("/v1/reddit/post-transcript", params);
409
+ }
410
+ /** Reddit Search — Search Reddit posts by keyword. (10 credits) */
411
+ search(params) {
412
+ return this.core.get("/v1/reddit/search", params);
413
+ }
414
+ /** Reddit Subreddit Details — Info & member stats for a subreddit. (1 credit) */
415
+ subredditDetails(params) {
416
+ return this.core.get("/v1/reddit/subreddit-details", params);
417
+ }
418
+ /** Reddit Subreddit Search — Search posts within a specific subreddit. (10 credits) */
419
+ subredditSearch(params) {
420
+ return this.core.get("/v1/reddit/subreddit-search", params);
421
+ }
422
+ }
423
+ export class ThreadsApi {
424
+ core;
425
+ constructor(core) {
426
+ this.core = core;
427
+ }
428
+ /** Threads Profile — Profile info & stats for a Threads account. (1 credit) */
429
+ profile(params) {
430
+ return this.core.get("/v1/threads/profile", params);
431
+ }
432
+ /** Threads User Posts — Recent posts from a Threads profile. (14 credits) */
433
+ userPosts(params) {
434
+ return this.core.get("/v1/threads/user-posts", params);
435
+ }
436
+ /** Threads Post Details — Metadata + engagement for a Threads post. (1 credit) */
437
+ postDetails(params) {
438
+ return this.core.get("/v1/threads/post-details", params);
439
+ }
440
+ /** Threads Search — Search Threads posts by keyword. (18 credits) */
441
+ search(params) {
442
+ return this.core.get("/v1/threads/search", params);
443
+ }
444
+ /** Threads Search Users — Find Threads users matching a keyword. (14 credits) */
445
+ searchUsers(params) {
446
+ return this.core.get("/v1/threads/search-users", params);
447
+ }
448
+ }
449
+ export class BlueskyApi {
450
+ core;
451
+ constructor(core) {
452
+ this.core = core;
453
+ }
454
+ /** Bluesky Profile — Profile info & stats for a Bluesky account. (1 credit) */
455
+ profile(params) {
456
+ return this.core.get("/v1/bluesky/profile", params);
457
+ }
458
+ /** Bluesky User Posts — Recent posts from a Bluesky profile. (3 credits) */
459
+ userPosts(params) {
460
+ return this.core.get("/v1/bluesky/user-posts", params);
461
+ }
462
+ /** Bluesky Post Details — Metadata + engagement for a Bluesky post. (1 credit) */
463
+ postDetails(params) {
464
+ return this.core.get("/v1/bluesky/post-details", params);
465
+ }
466
+ }
467
+ export class PinterestApi {
468
+ core;
469
+ constructor(core) {
470
+ this.core = core;
471
+ }
472
+ /** Pinterest Pin Details — Metadata + saves for a Pinterest pin. (1 credit) */
473
+ pinDetails(params) {
474
+ return this.core.get("/v1/pinterest/pin-details", params);
475
+ }
476
+ /** Pinterest User Pins — Pins from a Pinterest profile. (13 credits) */
477
+ userPins(params) {
478
+ return this.core.get("/v1/pinterest/user-pins", params);
479
+ }
480
+ /** Pinterest Search — Search Pinterest pins by keyword. (13 credits) */
481
+ search(params) {
482
+ return this.core.get("/v1/pinterest/search", params);
483
+ }
484
+ /** Pinterest Board — List pins inside a Pinterest board. (13 credits) */
485
+ board(params) {
486
+ return this.core.get("/v1/pinterest/board", params);
487
+ }
488
+ /** Pinterest User Boards — List the boards on a Pinterest profile. (13 credits) */
489
+ userBoards(params) {
490
+ return this.core.get("/v1/pinterest/user-boards", params);
491
+ }
492
+ }
493
+ export class LinkedinApi {
494
+ core;
495
+ constructor(core) {
496
+ this.core = core;
497
+ }
498
+ /** LinkedIn Profile — Public LinkedIn person profile details. (2 credits) */
499
+ profile(params) {
500
+ return this.core.get("/v1/linkedin/profile", params);
501
+ }
502
+ /** LinkedIn Company — Public LinkedIn company page details. (2 credits) */
503
+ company(params) {
504
+ return this.core.get("/v1/linkedin/company", params);
505
+ }
506
+ /** LinkedIn Post Details — Metadata + engagement for a LinkedIn post. (1 credit) */
507
+ postDetails(params) {
508
+ return this.core.get("/v1/linkedin/post-details", params);
509
+ }
510
+ /** LinkedIn Post Transcript — Extract post text as a transcript for a LinkedIn post. (7 credits) */
511
+ postTranscript(params) {
512
+ return this.core.get("/v1/linkedin/post-transcript", params);
513
+ }
514
+ /** LinkedIn Company Posts — Recent public posts from a LinkedIn company page. (16 credits) */
515
+ companyPosts(params) {
516
+ return this.core.get("/v1/linkedin/company-posts", params);
517
+ }
518
+ /** LinkedIn Search Posts — Search public LinkedIn posts by keyword. (16 credits) */
519
+ searchPosts(params) {
520
+ return this.core.get("/v1/linkedin/search-posts", params);
521
+ }
522
+ }
523
+ export class RumbleApi {
524
+ core;
525
+ constructor(core) {
526
+ this.core = core;
527
+ }
528
+ /** Rumble Video Details — Metadata + stats for a Rumble video. (1 credit) */
529
+ videoDetails(params) {
530
+ return this.core.get("/v1/rumble/video-details", params);
531
+ }
532
+ /** Rumble Channel Videos — List videos from a Rumble channel. (12 credits) */
533
+ channelVideos(params) {
534
+ return this.core.get("/v1/rumble/channel-videos", params);
535
+ }
536
+ /** Rumble Search — Search Rumble videos by keyword. (12 credits) */
537
+ search(params) {
538
+ return this.core.get("/v1/rumble/search", params);
539
+ }
540
+ /** Rumble Comments — Comments on a Rumble video. (30 credits) */
541
+ comments(params) {
542
+ return this.core.get("/v1/rumble/comments", params);
543
+ }
544
+ }
545
+ export class TiktokShopApi {
546
+ core;
547
+ constructor(core) {
548
+ this.core = core;
549
+ }
550
+ /** TikTok Shop Search — Search TikTok Shop products by keyword. (56 credits) */
551
+ search(params) {
552
+ return this.core.get("/v1/tiktok-shop/shop-search", params);
553
+ }
554
+ /** TikTok Shop Products — List products from a TikTok Shop store. (56 credits) */
555
+ products(params) {
556
+ return this.core.get("/v1/tiktok-shop/shop-products", params);
557
+ }
558
+ /** TikTok Shop Product Details — Full TikTok Shop product details, seller and price metadata. (14 credits) */
559
+ productDetails(params) {
560
+ return this.core.get("/v1/tiktok-shop/product-details", params);
561
+ }
562
+ /** TikTok Shop Product Reviews — Customer reviews for a TikTok Shop product. (45 credits) */
563
+ productReviews(params) {
564
+ return this.core.get("/v1/tiktok-shop/product-reviews", params);
565
+ }
566
+ /** TikTok Shop User Showcase — Products promoted in a TikTok creator showcase. (45 credits) */
567
+ userShowcase(params) {
568
+ return this.core.get("/v1/tiktok-shop/user-showcase", params);
569
+ }
570
+ }
571
+ export class GithubApi {
572
+ core;
573
+ constructor(core) {
574
+ this.core = core;
575
+ }
576
+ /** GitHub User — Public GitHub user profile details. (3 credits) */
577
+ user(params) {
578
+ return this.core.get("/v1/github/user", params);
579
+ }
580
+ /** GitHub Repositories — List a GitHub user's repositories. (12 credits) */
581
+ repositories(params) {
582
+ return this.core.get("/v1/github/repositories", params);
583
+ }
584
+ /** GitHub Repository — Repository details, stars, forks and metadata. (3 credits) */
585
+ repository(params) {
586
+ return this.core.get("/v1/github/repository", params);
587
+ }
588
+ /** GitHub Pull Requests — List repository pull requests. (12 credits) */
589
+ pullRequests(params) {
590
+ return this.core.get("/v1/github/pull-requests", params);
591
+ }
592
+ /** GitHub Activity — Recent public activity for a GitHub user. (12 credits) */
593
+ activity(params) {
594
+ return this.core.get("/v1/github/activity", params);
595
+ }
596
+ /** GitHub Followers — List GitHub followers. (12 credits) */
597
+ followers(params) {
598
+ return this.core.get("/v1/github/followers", params);
599
+ }
600
+ /** GitHub Following — List accounts a GitHub user follows. (12 credits) */
601
+ following(params) {
602
+ return this.core.get("/v1/github/following", params);
603
+ }
604
+ /** GitHub Contributions — Summary of recent public GitHub contributions. (3 credits) */
605
+ contributions(params) {
606
+ return this.core.get("/v1/github/contributions", params);
607
+ }
608
+ /** GitHub Trending Repositories — Search trending repositories by stars or query. (12 credits) */
609
+ trendingRepositories(params) {
610
+ return this.core.get("/v1/github/trending-repositories", params);
611
+ }
612
+ /** GitHub Trending Developers — Search popular GitHub developers. (12 credits) */
613
+ trendingDevelopers(params) {
614
+ return this.core.get("/v1/github/trending-developers", params);
615
+ }
616
+ }
617
+ export class GoogleApi {
618
+ core;
619
+ constructor(core) {
620
+ this.core = core;
621
+ }
622
+ /** Google Search — Google SERP organic search results by keyword, country, and language. (42 credits) */
623
+ search(params) {
624
+ return this.core.get("/v1/google/search", params);
625
+ }
626
+ }
627
+ export class TwitchApi {
628
+ core;
629
+ constructor(core) {
630
+ this.core = core;
631
+ }
632
+ /** Twitch Profile — Twitch channel profile, followers, live status and recent metadata. (9 credits) */
633
+ profile(params) {
634
+ return this.core.get("/v1/twitch/profile", params);
635
+ }
636
+ /** Twitch User Videos — Recent Twitch VODs for a channel. (34 credits) */
637
+ userVideos(params) {
638
+ return this.core.get("/v1/twitch/user-videos", params);
639
+ }
640
+ /** Twitch User Schedule — Upcoming Twitch schedule data when exposed on the public channel. (34 credits) */
641
+ userSchedule(params) {
642
+ return this.core.get("/v1/twitch/user-schedule", params);
643
+ }
644
+ /** Twitch Clip — Twitch clip metadata from a clip URL or channel fallback. (9 credits) */
645
+ clip(params) {
646
+ return this.core.get("/v1/twitch/clip", params);
647
+ }
648
+ }
649
+ export class SpotifyApi {
650
+ core;
651
+ constructor(core) {
652
+ this.core = core;
653
+ }
654
+ /** Spotify Artist — Spotify artist details, followers and listener metadata. (6 credits) */
655
+ artist(params) {
656
+ return this.core.get("/v1/spotify/artist", params);
657
+ }
658
+ /** Spotify Track — Spotify track metadata, artists, album and play count when available. (6 credits) */
659
+ track(params) {
660
+ return this.core.get("/v1/spotify/track", params);
661
+ }
662
+ /** Spotify Album — Spotify album metadata and track count. (6 credits) */
663
+ album(params) {
664
+ return this.core.get("/v1/spotify/album", params);
665
+ }
666
+ /** Spotify Search — Search Spotify tracks, albums, artists, podcasts or episodes. (23 credits) */
667
+ search(params) {
668
+ return this.core.get("/v1/spotify/search", params);
669
+ }
670
+ /** Spotify Podcast — Spotify podcast/show details and episode summary metadata. (6 credits) */
671
+ podcast(params) {
672
+ return this.core.get("/v1/spotify/podcast", params);
673
+ }
674
+ /** Spotify Podcast Episodes — List episodes for a Spotify podcast/show. (23 credits) */
675
+ podcastEpisodes(params) {
676
+ return this.core.get("/v1/spotify/podcast-episodes", params);
677
+ }
678
+ }
679
+ export class SoundcloudApi {
680
+ core;
681
+ constructor(core) {
682
+ this.core = core;
683
+ }
684
+ /** SoundCloud Artist — SoundCloud artist profile metadata. (7 credits) */
685
+ artist(params) {
686
+ return this.core.get("/v1/soundcloud/artist", params);
687
+ }
688
+ /** SoundCloud Artist Tracks — Tracks from a SoundCloud artist profile. (28 credits) */
689
+ artistTracks(params) {
690
+ return this.core.get("/v1/soundcloud/artist-tracks", params);
691
+ }
692
+ /** SoundCloud Track — SoundCloud track metadata and engagement stats. (7 credits) */
693
+ track(params) {
694
+ return this.core.get("/v1/soundcloud/track", params);
695
+ }
696
+ }
697
+ export class LinktreeApi {
698
+ core;
699
+ constructor(core) {
700
+ this.core = core;
701
+ }
702
+ /** Linktree Page — Public Linktree profile links, socials and profile metadata. (4 credits) */
703
+ page(params) {
704
+ return this.core.get("/v1/linktree/page", params);
705
+ }
706
+ }
707
+ export class SnapchatApi {
708
+ core;
709
+ constructor(core) {
710
+ this.core = core;
711
+ }
712
+ /** Snapchat User Profile — Public Snapchat profile metadata, subscriber count, avatar and highlights. (11 credits) */
713
+ userProfile(params) {
714
+ return this.core.get("/v1/snapchat/user-profile", params);
715
+ }
716
+ }
717
+ export class TruthSocialApi {
718
+ core;
719
+ constructor(core) {
720
+ this.core = core;
721
+ }
722
+ /** Truth Social Profile — Public Truth Social profile metadata and stats. (5 credits) */
723
+ profile(params) {
724
+ return this.core.get("/v1/truth-social/profile", params);
725
+ }
726
+ /** Truth Social User Posts — Recent public posts from a Truth Social profile. (17 credits) */
727
+ userPosts(params) {
728
+ return this.core.get("/v1/truth-social/user-posts", params);
729
+ }
730
+ /** Truth Social Post — Truth Social post metadata, text, media and engagement. (5 credits) */
731
+ post(params) {
732
+ return this.core.get("/v1/truth-social/post", params);
733
+ }
734
+ }
735
+ export class KickApi {
736
+ core;
737
+ constructor(core) {
738
+ this.core = core;
739
+ }
740
+ /** Kick Clip — Kick clip metadata from a clip URL or recent channel clips. (34 credits) */
741
+ clip(params) {
742
+ return this.core.get("/v1/kick/clip", params);
743
+ }
744
+ }
745
+ export class AmazonShopApi {
746
+ core;
747
+ constructor(core) {
748
+ this.core = core;
749
+ }
750
+ /** Amazon Shop Page — Amazon seller storefront metadata and product listings. (89 credits) */
751
+ page(params) {
752
+ return this.core.get("/v1/amazon-shop/page", params);
753
+ }
754
+ }
755
+ export class AgeGenderApi {
756
+ core;
757
+ constructor(core) {
758
+ this.core = core;
759
+ }
760
+ /** Age and Gender — Predict age, gender and nationality signals from first names. (4 credits) */
761
+ get(params) {
762
+ return this.core.get("/v1/age-gender", params);
763
+ }
764
+ }
765
+ export class AccountApi {
766
+ core;
767
+ constructor(core) {
768
+ this.core = core;
769
+ }
770
+ /** Credit Balance — Get current Captapi credit balance and plan limits. (0 credits) */
771
+ balance(params = {}) {
772
+ return this.core.get("/v1/account/balance", params);
773
+ }
774
+ /** Request History — List recent Captapi API requests for the current key owner. (0 credits) */
775
+ requestHistory(params = {}) {
776
+ return this.core.get("/v1/account/request-history", params);
777
+ }
778
+ /** Daily Usage — Daily request and credit usage summary. (0 credits) */
779
+ dailyUsage(params = {}) {
780
+ return this.core.get("/v1/account/daily-usage", params);
781
+ }
782
+ /** Most Used Routes — Most used API routes by request count and credits. (0 credits) */
783
+ mostUsedRoutes(params = {}) {
784
+ return this.core.get("/v1/account/most-used-routes", params);
785
+ }
786
+ }
787
+ export class KwaiApi {
788
+ core;
789
+ constructor(core) {
790
+ this.core = core;
791
+ }
792
+ /** Kwai Profile — Kwai/Kuaishou public profile details and stats. (17 credits) */
793
+ profile(params) {
794
+ return this.core.get("/v1/kwai/profile", params);
795
+ }
796
+ /** Kwai User Posts — Recent Kwai/Kuaishou videos from a profile. (45 credits) */
797
+ userPosts(params) {
798
+ return this.core.get("/v1/kwai/user-posts", params);
799
+ }
800
+ /** Kwai Post — Kwai/Kuaishou post metadata and engagement. (17 credits) */
801
+ post(params) {
802
+ return this.core.get("/v1/kwai/post", params);
803
+ }
804
+ }
805
+ export class KomiApi {
806
+ core;
807
+ constructor(core) {
808
+ this.core = core;
809
+ }
810
+ /** Komi Page — Public Komi page links and profile metadata. (4 credits) */
811
+ page(params) {
812
+ return this.core.get("/v1/komi/page", params);
813
+ }
814
+ }
815
+ export class PillarApi {
816
+ core;
817
+ constructor(core) {
818
+ this.core = core;
819
+ }
820
+ /** Pillar Page — Public Pillar page links and profile metadata. (4 credits) */
821
+ page(params) {
822
+ return this.core.get("/v1/pillar/page", params);
823
+ }
824
+ }
825
+ export class LinkbioApi {
826
+ core;
827
+ constructor(core) {
828
+ this.core = core;
829
+ }
830
+ /** Linkbio Page — Public Linkbio page links and profile metadata. (4 credits) */
831
+ page(params) {
832
+ return this.core.get("/v1/linkbio/page", params);
833
+ }
834
+ }
835
+ export class LinkmeApi {
836
+ core;
837
+ constructor(core) {
838
+ this.core = core;
839
+ }
840
+ /** Linkme Profile — Public Linkme profile links and metadata. (4 credits) */
841
+ profile(params) {
842
+ return this.core.get("/v1/linkme/profile", params);
843
+ }
844
+ }
845
+ export class AdLibraryApi {
846
+ core;
847
+ constructor(core) {
848
+ this.core = core;
849
+ }
850
+ /** Facebook Ad Library Search — Search Meta/Facebook ads by keyword. (70 credits) */
851
+ facebookSearch(params) {
852
+ return this.core.get("/v1/ad-library/facebook/search", params);
853
+ }
854
+ /** Facebook Company Ads — Ads for a Facebook page or Meta Ad Library URL. (70 credits) */
855
+ facebookCompanyAds(params) {
856
+ return this.core.get("/v1/ad-library/facebook/company-ads", params);
857
+ }
858
+ /** Facebook Ad Library Search Companies — Find advertisers/pages in the Meta Ad Library by name. (70 credits) */
859
+ facebookSearchCompanies(params) {
860
+ return this.core.get("/v1/ad-library/facebook/search-companies", params);
861
+ }
862
+ /** Facebook Ad Details — Meta/Facebook ad details. (17 credits) */
863
+ facebookAdDetails(params) {
864
+ return this.core.get("/v1/ad-library/facebook/ad-details", params);
865
+ }
866
+ /** Facebook Ad Transcript — Extract creative text from a Meta/Facebook ad as transcript text. (17 credits) */
867
+ facebookAdTranscript(params) {
868
+ return this.core.get("/v1/ad-library/facebook/ad-transcript", params);
869
+ }
870
+ /** TikTok Ad Library Search — Search TikTok Ad Library and Creative Center. (70 credits) */
871
+ tiktokSearch(params) {
872
+ return this.core.get("/v1/ad-library/tiktok/search", params);
873
+ }
874
+ /** TikTok Ad Details — TikTok ad details by ad URL or ID. (17 credits) */
875
+ tiktokAdDetails(params) {
876
+ return this.core.get("/v1/ad-library/tiktok/ad-details", params);
877
+ }
878
+ /** Google Company Ads — Google Ads Transparency Center ads for an advertiser. (67 credits) */
879
+ googleCompanyAds(params) {
880
+ return this.core.get("/v1/ad-library/google/company-ads", params);
881
+ }
882
+ /** Google Ad Details — Google ad details by Transparency Center URL. (17 credits) */
883
+ googleAdDetails(params) {
884
+ return this.core.get("/v1/ad-library/google/ad-details", params);
885
+ }
886
+ /** Google Advertiser Search — Search Google Ads advertisers. (45 credits) */
887
+ googleAdvertiserSearch(params) {
888
+ return this.core.get("/v1/ad-library/google/advertiser-search", params);
889
+ }
890
+ /** LinkedIn Ad Library Search — Search LinkedIn Ad Library ads. (70 credits) */
891
+ linkedinSearchAds(params) {
892
+ return this.core.get("/v1/ad-library/linkedin/search-ads", params);
893
+ }
894
+ /** LinkedIn Ad Details — LinkedIn ad details by URL or ID. (17 credits) */
895
+ linkedinAdDetails(params) {
896
+ return this.core.get("/v1/ad-library/linkedin/ad-details", params);
897
+ }
898
+ }
899
+ /** Captapi API client. Get your key at https://captapi.com/dashboard/api-keys */
900
+ export class Captapi {
901
+ youtube;
902
+ tiktok;
903
+ instagram;
904
+ facebook;
905
+ twitter;
906
+ reddit;
907
+ threads;
908
+ bluesky;
909
+ pinterest;
910
+ linkedin;
911
+ rumble;
912
+ tiktokShop;
913
+ github;
914
+ google;
915
+ twitch;
916
+ spotify;
917
+ soundcloud;
918
+ linktree;
919
+ snapchat;
920
+ truthSocial;
921
+ kick;
922
+ amazonShop;
923
+ ageGender;
924
+ account;
925
+ kwai;
926
+ komi;
927
+ pillar;
928
+ linkbio;
929
+ linkme;
930
+ adLibrary;
931
+ constructor(options = {}) {
932
+ const core = new HttpCore(options);
933
+ this.youtube = new YoutubeApi(core);
934
+ this.tiktok = new TiktokApi(core);
935
+ this.instagram = new InstagramApi(core);
936
+ this.facebook = new FacebookApi(core);
937
+ this.twitter = new TwitterApi(core);
938
+ this.reddit = new RedditApi(core);
939
+ this.threads = new ThreadsApi(core);
940
+ this.bluesky = new BlueskyApi(core);
941
+ this.pinterest = new PinterestApi(core);
942
+ this.linkedin = new LinkedinApi(core);
943
+ this.rumble = new RumbleApi(core);
944
+ this.tiktokShop = new TiktokShopApi(core);
945
+ this.github = new GithubApi(core);
946
+ this.google = new GoogleApi(core);
947
+ this.twitch = new TwitchApi(core);
948
+ this.spotify = new SpotifyApi(core);
949
+ this.soundcloud = new SoundcloudApi(core);
950
+ this.linktree = new LinktreeApi(core);
951
+ this.snapchat = new SnapchatApi(core);
952
+ this.truthSocial = new TruthSocialApi(core);
953
+ this.kick = new KickApi(core);
954
+ this.amazonShop = new AmazonShopApi(core);
955
+ this.ageGender = new AgeGenderApi(core);
956
+ this.account = new AccountApi(core);
957
+ this.kwai = new KwaiApi(core);
958
+ this.komi = new KomiApi(core);
959
+ this.pillar = new PillarApi(core);
960
+ this.linkbio = new LinkbioApi(core);
961
+ this.linkme = new LinkmeApi(core);
962
+ this.adLibrary = new AdLibraryApi(core);
963
+ }
964
+ }