socialtap 1.509.29 → 1.536.29
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.
- package/README.md +36 -1
- package/dist/client.d.ts +19 -16
- package/dist/client.js +20 -16
- package/dist/commands.js +359 -1
- package/dist/constants.d.ts +6 -1
- package/dist/constants.js +2 -1
- package/dist/errors.d.ts +9 -0
- package/dist/errors.js +9 -0
- package/dist/models.d.ts +895 -2
- package/dist/resources.d.ts +1508 -4
- package/dist/resources.js +318 -0
- package/dist/tooldefs.d.ts +1 -1
- package/dist/tooldefs.js +986 -101
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
SocialTap is the social media scraper API for developers and AI agents. Send a public link, a handle or a search and get live data back in one schema. Failed requests are free.
|
|
6
6
|
|
|
7
7
|
The TypeScript SDK for the SocialTap API: a method for every endpoint, typed models and errors, retries and pagination.
|
|
8
|
-
Generated from the SocialTap catalog (version 1.
|
|
8
|
+
Generated from the SocialTap catalog (version 1.536.29). Docs: https://socialtap.dev/docs.
|
|
9
9
|
|
|
10
10
|
## Install
|
|
11
11
|
|
|
@@ -148,6 +148,26 @@ Every result also carries the envelope `meta` (request ID, source, cache status,
|
|
|
148
148
|
| `facebook.search_posts` | `client.facebook.searchPosts.list()` | 1 credit + 1 per result filled in |
|
|
149
149
|
| `facebook.search_profiles` | `client.facebook.searchProfiles.list()` | 1 credit + 1 per result filled in |
|
|
150
150
|
| `facebook.transcript` | `client.facebook.transcript.get()` | 1 credit (captions) or 2 credits + 2 per started minute of media (speech-to-text) |
|
|
151
|
+
| `github.activity` | `client.github.activity.list()` | 1 credit |
|
|
152
|
+
| `github.contributions` | `client.github.contributions.get()` | 1 credit |
|
|
153
|
+
| `github.followers` | `client.github.followers.list()` | 1 credit |
|
|
154
|
+
| `github.following` | `client.github.following.list()` | 1 credit |
|
|
155
|
+
| `github.issue` | `client.github.issue.get()` | 1 credit |
|
|
156
|
+
| `github.issue_comments` | `client.github.issueComments.list()` | 1 credit |
|
|
157
|
+
| `github.issues` | `client.github.issues.list()` | 1 credit |
|
|
158
|
+
| `github.pinned_repositories` | `client.github.pinnedRepositories.list()` | 1 credit |
|
|
159
|
+
| `github.profile` | `client.github.profile.get()` | 1 credit |
|
|
160
|
+
| `github.profile_pull_requests` | `client.github.profilePullRequests.list()` | 1 credit |
|
|
161
|
+
| `github.readme` | `client.github.readme.get()` | 1 credit |
|
|
162
|
+
| `github.releases` | `client.github.releases.list()` | 1 credit |
|
|
163
|
+
| `github.repositories` | `client.github.repositories.list()` | 1 credit |
|
|
164
|
+
| `github.repository` | `client.github.repository.get()` | 1 credit |
|
|
165
|
+
| `github.repository_contributors` | `client.github.repositoryContributors.list()` | 1 credit |
|
|
166
|
+
| `github.search_issues` | `client.github.searchIssues.list()` | 1 credit |
|
|
167
|
+
| `github.search_profiles` | `client.github.searchProfiles.list()` | 1 credit |
|
|
168
|
+
| `github.search_repositories` | `client.github.searchRepositories.list()` | 1 credit |
|
|
169
|
+
| `github.trending_profiles` | `client.github.trendingProfiles.list()` | 1 credit |
|
|
170
|
+
| `github.trending_repositories` | `client.github.trendingRepositories.list()` | 1 credit |
|
|
151
171
|
| `google.ad` | `client.google.ad.get()` | 1 credit |
|
|
152
172
|
| `google.ads` | `client.google.ads.list()` | 1 credit |
|
|
153
173
|
| `google.advertiser` | `client.google.advertiser.get()` | 1 credit |
|
|
@@ -369,6 +389,7 @@ try {
|
|
|
369
389
|
| `no_transcript` | `NoTranscriptError` | 404 | no |
|
|
370
390
|
| `no_live` | `NoLiveError` | 404 | no |
|
|
371
391
|
| `no_media` | `NoMediaError` | 404 | no |
|
|
392
|
+
| `no_readme` | `NoReadmeError` | 404 | no |
|
|
372
393
|
| `upstream_blocked` | `UpstreamBlockedError` | 503 | yes |
|
|
373
394
|
| `upstream_error` | `UpstreamError` | 502 | yes |
|
|
374
395
|
| `overloaded` | `OverloadedError` | 503 | yes |
|
|
@@ -530,9 +551,12 @@ console.log(r.isError, r.output);
|
|
|
530
551
|
| `get_shop` | Shop by handle |
|
|
531
552
|
| `list_followers` | Followers of a profile |
|
|
532
553
|
| `list_following` | Following of a profile |
|
|
554
|
+
| `list_repository_contributors` | Repository contributors |
|
|
533
555
|
| `list_similar_profiles` | Similar profiles of a profile |
|
|
556
|
+
| `list_trending_profiles` | Trending profiles |
|
|
534
557
|
| `get_comment` | Comment by link |
|
|
535
558
|
| `list_replies` | Replies of a post |
|
|
559
|
+
| `list_issue_comments` | Issue comments |
|
|
536
560
|
| `list_profile_comments` | Profile comments |
|
|
537
561
|
| `get_ad_transcript` | Ad transcript by link |
|
|
538
562
|
| `get_ad` | Ad by link |
|
|
@@ -546,30 +570,41 @@ console.log(r.isError, r.output);
|
|
|
546
570
|
| `get_playlist` | Playlist by link |
|
|
547
571
|
| `get_sound` | Sound by link |
|
|
548
572
|
| `get_topic` | Topic by link |
|
|
573
|
+
| `get_contributions` | Contributions by handle |
|
|
549
574
|
| `get_download` | Download by link |
|
|
550
575
|
| `get_effect` | Effect by link |
|
|
551
576
|
| `get_embed` | Embed by link |
|
|
552
577
|
| `get_event` | Event by link |
|
|
578
|
+
| `get_issue` | Issue by link |
|
|
553
579
|
| `get_live` | Live by handle |
|
|
554
580
|
| `get_place` | Place by link |
|
|
555
581
|
| `get_podcast` | Podcast by link |
|
|
582
|
+
| `get_readme` | Readme by link |
|
|
583
|
+
| `get_repository` | Repository by link |
|
|
556
584
|
| `get_username` | Username by handle |
|
|
557
585
|
| `get_web_page` | Web page by link |
|
|
558
586
|
| `list_reviews` | Reviews of a product |
|
|
587
|
+
| `list_activity` | Activity of a profile |
|
|
559
588
|
| `list_boards` | Boards of a profile |
|
|
560
589
|
| `list_deal_products` | Deal products |
|
|
561
590
|
| `list_events` | Events of a profile |
|
|
562
591
|
| `list_highlights` | Highlights of a profile |
|
|
592
|
+
| `list_issues` | Issues of a repository |
|
|
563
593
|
| `list_offers` | Offers of a product |
|
|
594
|
+
| `list_pinned_repositories` | Pinned repositories of a profile |
|
|
564
595
|
| `list_place_events` | Place events |
|
|
565
596
|
| `list_playlists` | Playlists of a profile |
|
|
566
597
|
| `list_products` | Products of a profile |
|
|
598
|
+
| `list_profile_pull_requests` | Profile pull requests |
|
|
599
|
+
| `list_releases` | Releases of a repository |
|
|
600
|
+
| `list_repositories` | Repositories of a profile |
|
|
567
601
|
| `list_schedule` | Schedule of a profile |
|
|
568
602
|
| `list_shop_lists` | Shop lists of a profile |
|
|
569
603
|
| `list_top_albums` | Top albums |
|
|
570
604
|
| `list_top_playlists` | Top playlists |
|
|
571
605
|
| `list_top_products` | Top products |
|
|
572
606
|
| `list_top_trends` | Top trends |
|
|
607
|
+
| `list_trending_repositories` | Trending repositories |
|
|
573
608
|
| `create_job` | Create a background job |
|
|
574
609
|
| `get_job` | Get a background job |
|
|
575
610
|
| `list_job_results` | List a job's results |
|
package/dist/client.d.ts
CHANGED
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
import { type ClientOptions, Core } from "./core.ts";
|
|
2
|
-
import { Amazon, AppleMusic, Bluesky, Facebook, Google, Instagram, Kick, Komi, Kwai, LnkBio, LinkedIn, Linkme, Linktree, Pillar, Pinterest, Reddit, Rumble, Snapchat, SoundCloud, Spotify, Telegram, Threads, TikTok, TikTokShop, TruthSocial, Twitch, X, YouTube, AccountResource, UsageResource, CreditTransactionsResource, BillingResource, RequestsResource, ApiKeysResource, JobsResource, WebhookEndpointsResource, EventsResource, NotificationPreferencesResource } from "./resources.ts";
|
|
2
|
+
import { Amazon, AppleMusic, Bluesky, Facebook, GitHub, Google, Instagram, Kick, Komi, Kwai, LnkBio, LinkedIn, Linkme, Linktree, Pillar, Pinterest, Reddit, Rumble, Snapchat, SoundCloud, Spotify, Telegram, Threads, TikTok, TikTokShop, TruthSocial, Twitch, X, YouTube, AccountResource, UsageResource, CreditTransactionsResource, BillingResource, RequestsResource, ApiKeysResource, JobsResource, WebhookEndpointsResource, EventsResource, NotificationPreferencesResource } from "./resources.ts";
|
|
3
3
|
import { Webhooks } from "./webhooks.ts";
|
|
4
4
|
/**
|
|
5
5
|
* The SocialTap API client: `new SocialTap({ apiKey })` (default: the SOCIALTAP_API_KEY environment variable).
|
|
6
6
|
*
|
|
7
7
|
* SocialTap is the social media scraper API for developers and AI agents. Send a public link, a handle or a
|
|
8
|
-
* search and get live data back in one schema. Failed requests are free. Available now:
|
|
9
|
-
* LinkedIn and TikTok; albums on Apple Music and Spotify; comments on Bluesky, Facebook,
|
|
10
|
-
* Rumble, Snapchat, Threads, TikTok and YouTube; communities on Facebook, Reddit and
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
8
|
+
* search and get live data back in one schema. Failed requests are free. Available now: activity on GitHub; ads
|
|
9
|
+
* on Facebook, Google, LinkedIn and TikTok; albums on Apple Music and Spotify; comments on Bluesky, Facebook,
|
|
10
|
+
* GitHub, Instagram, Reddit, Rumble, Snapchat, Threads, TikTok and YouTube; communities on Facebook, Reddit and
|
|
11
|
+
* X; contribution calendars on GitHub; downloads on TikTok; effects on TikTok; embeds on Instagram; engagement
|
|
12
|
+
* stats on Facebook, Instagram, Reddit, Rumble, TikTok and YouTube; events on Facebook; hashtags on Instagram
|
|
13
|
+
* and TikTok; issues on GitHub; livestreams on TikTok and Twitch; offers on Amazon; places on Facebook and
|
|
14
|
+
* Instagram; playlists on Amazon, Apple Music, Instagram, Pinterest, Spotify and TikTok; podcasts on Spotify;
|
|
15
|
+
* posts on Amazon, Apple Music, Bluesky, Facebook, Instagram, Kick, Kwai, LinkedIn, Pinterest, Reddit, Rumble,
|
|
16
|
+
* Snapchat, SoundCloud, Spotify, Telegram, Threads, TikTok, Truth Social, Twitch, X and YouTube; products on
|
|
17
|
+
* Amazon, Facebook and TikTok Shop; profiles on Amazon, Apple Music, Bluesky, Facebook, GitHub, Google,
|
|
18
|
+
* Instagram, Komi, Kwai, LinkedIn, Linkme, Linktree, Lnk.Bio, Pillar, Pinterest, Reddit, Rumble, Snapchat,
|
|
19
|
+
* SoundCloud, Spotify, Telegram, Threads, TikTok, Truth Social, Twitch, X and YouTube; readmes on GitHub;
|
|
20
|
+
* releases on GitHub; repositories on GitHub; reviews on Amazon and TikTok Shop; sounds on Instagram and TikTok;
|
|
21
|
+
* suggestions on Google, Instagram and TikTok; topics on Instagram and Pinterest; transcripts on Facebook,
|
|
22
|
+
* Instagram, Kick, Reddit, Rumble, TikTok, Twitch and YouTube; trends on Pinterest; usernames on Instagram; web
|
|
23
|
+
* pages on Pinterest; web results on Facebook, Instagram, LinkedIn, Telegram, TikTok and X.
|
|
23
24
|
*/
|
|
24
25
|
export declare class SocialTap extends Core {
|
|
25
26
|
/** Amazon endpoints. */
|
|
@@ -30,6 +31,8 @@ export declare class SocialTap extends Core {
|
|
|
30
31
|
readonly bluesky: Bluesky;
|
|
31
32
|
/** Facebook endpoints. */
|
|
32
33
|
readonly facebook: Facebook;
|
|
34
|
+
/** GitHub endpoints. */
|
|
35
|
+
readonly github: GitHub;
|
|
33
36
|
/** Google endpoints. */
|
|
34
37
|
readonly google: Google;
|
|
35
38
|
/** Instagram endpoints. */
|
package/dist/client.js
CHANGED
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
// Code generated by engine/cmd/gensdk (make gen) from catalog/catalog.gen.json; DO NOT EDIT.
|
|
2
2
|
import { Core } from "./core.js";
|
|
3
|
-
import { Amazon, AppleMusic, Bluesky, Facebook, Google, Instagram, Kick, Komi, Kwai, LnkBio, LinkedIn, Linkme, Linktree, Pillar, Pinterest, Reddit, Rumble, Snapchat, SoundCloud, Spotify, Telegram, Threads, TikTok, TikTokShop, TruthSocial, Twitch, X, YouTube, AccountResource, UsageResource, CreditTransactionsResource, BillingResource, RequestsResource, ApiKeysResource, JobsResource, WebhookEndpointsResource, EventsResource, NotificationPreferencesResource } from "./resources.js";
|
|
3
|
+
import { Amazon, AppleMusic, Bluesky, Facebook, GitHub, Google, Instagram, Kick, Komi, Kwai, LnkBio, LinkedIn, Linkme, Linktree, Pillar, Pinterest, Reddit, Rumble, Snapchat, SoundCloud, Spotify, Telegram, Threads, TikTok, TikTokShop, TruthSocial, Twitch, X, YouTube, AccountResource, UsageResource, CreditTransactionsResource, BillingResource, RequestsResource, ApiKeysResource, JobsResource, WebhookEndpointsResource, EventsResource, NotificationPreferencesResource } from "./resources.js";
|
|
4
4
|
import { Webhooks } from "./webhooks.js";
|
|
5
5
|
/**
|
|
6
6
|
* The SocialTap API client: `new SocialTap({ apiKey })` (default: the SOCIALTAP_API_KEY environment variable).
|
|
7
7
|
*
|
|
8
8
|
* SocialTap is the social media scraper API for developers and AI agents. Send a public link, a handle or a
|
|
9
|
-
* search and get live data back in one schema. Failed requests are free. Available now:
|
|
10
|
-
* LinkedIn and TikTok; albums on Apple Music and Spotify; comments on Bluesky, Facebook,
|
|
11
|
-
* Rumble, Snapchat, Threads, TikTok and YouTube; communities on Facebook, Reddit and
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
9
|
+
* search and get live data back in one schema. Failed requests are free. Available now: activity on GitHub; ads
|
|
10
|
+
* on Facebook, Google, LinkedIn and TikTok; albums on Apple Music and Spotify; comments on Bluesky, Facebook,
|
|
11
|
+
* GitHub, Instagram, Reddit, Rumble, Snapchat, Threads, TikTok and YouTube; communities on Facebook, Reddit and
|
|
12
|
+
* X; contribution calendars on GitHub; downloads on TikTok; effects on TikTok; embeds on Instagram; engagement
|
|
13
|
+
* stats on Facebook, Instagram, Reddit, Rumble, TikTok and YouTube; events on Facebook; hashtags on Instagram
|
|
14
|
+
* and TikTok; issues on GitHub; livestreams on TikTok and Twitch; offers on Amazon; places on Facebook and
|
|
15
|
+
* Instagram; playlists on Amazon, Apple Music, Instagram, Pinterest, Spotify and TikTok; podcasts on Spotify;
|
|
16
|
+
* posts on Amazon, Apple Music, Bluesky, Facebook, Instagram, Kick, Kwai, LinkedIn, Pinterest, Reddit, Rumble,
|
|
17
|
+
* Snapchat, SoundCloud, Spotify, Telegram, Threads, TikTok, Truth Social, Twitch, X and YouTube; products on
|
|
18
|
+
* Amazon, Facebook and TikTok Shop; profiles on Amazon, Apple Music, Bluesky, Facebook, GitHub, Google,
|
|
19
|
+
* Instagram, Komi, Kwai, LinkedIn, Linkme, Linktree, Lnk.Bio, Pillar, Pinterest, Reddit, Rumble, Snapchat,
|
|
20
|
+
* SoundCloud, Spotify, Telegram, Threads, TikTok, Truth Social, Twitch, X and YouTube; readmes on GitHub;
|
|
21
|
+
* releases on GitHub; repositories on GitHub; reviews on Amazon and TikTok Shop; sounds on Instagram and TikTok;
|
|
22
|
+
* suggestions on Google, Instagram and TikTok; topics on Instagram and Pinterest; transcripts on Facebook,
|
|
23
|
+
* Instagram, Kick, Reddit, Rumble, TikTok, Twitch and YouTube; trends on Pinterest; usernames on Instagram; web
|
|
24
|
+
* pages on Pinterest; web results on Facebook, Instagram, LinkedIn, Telegram, TikTok and X.
|
|
24
25
|
*/
|
|
25
26
|
export class SocialTap extends Core {
|
|
26
27
|
/** Amazon endpoints. */
|
|
@@ -31,6 +32,8 @@ export class SocialTap extends Core {
|
|
|
31
32
|
bluesky;
|
|
32
33
|
/** Facebook endpoints. */
|
|
33
34
|
facebook;
|
|
35
|
+
/** GitHub endpoints. */
|
|
36
|
+
github;
|
|
34
37
|
/** Google endpoints. */
|
|
35
38
|
google;
|
|
36
39
|
/** Instagram endpoints. */
|
|
@@ -113,6 +116,7 @@ export class SocialTap extends Core {
|
|
|
113
116
|
this.applemusic = new AppleMusic(this);
|
|
114
117
|
this.bluesky = new Bluesky(this);
|
|
115
118
|
this.facebook = new Facebook(this);
|
|
119
|
+
this.github = new GitHub(this);
|
|
116
120
|
this.google = new Google(this);
|
|
117
121
|
this.instagram = new Instagram(this);
|
|
118
122
|
this.kick = new Kick(this);
|