@getanyapi/sdk 0.15.0 → 0.15.2
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/dist/index.cjs +32 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +199 -83
- package/dist/index.d.ts +199 -83
- package/dist/index.js +32 -16
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1004,7 +1004,7 @@ var AmazonNamespace = class {
|
|
|
1004
1004
|
*
|
|
1005
1005
|
* Fetch full Amazon product details (title, brand, price when in stock, images, ratings, review count, variants, and attributes) from a product URL.
|
|
1006
1006
|
*
|
|
1007
|
-
* Price: $0.
|
|
1007
|
+
* Price: $0.0018 per request.
|
|
1008
1008
|
*
|
|
1009
1009
|
* @example
|
|
1010
1010
|
* const res = await client.amazon.product({ url: "https://www.amazon.com/dp/B00NTCH52W" });
|
|
@@ -2163,6 +2163,22 @@ var GithubNamespace = class {
|
|
|
2163
2163
|
userRepositories(input, options) {
|
|
2164
2164
|
return this._core.run("github.user_repositories", input, options);
|
|
2165
2165
|
}
|
|
2166
|
+
/**
|
|
2167
|
+
* Iterate every result of GitHub User Repositories across pages.
|
|
2168
|
+
*
|
|
2169
|
+
* Yields items directly; call `.pages()` on the return value to walk whole
|
|
2170
|
+
* result pages instead (each carries its own costUsd).
|
|
2171
|
+
*/
|
|
2172
|
+
iterUserRepositories(input, options) {
|
|
2173
|
+
return paginate(
|
|
2174
|
+
this._core,
|
|
2175
|
+
"github.user_repositories",
|
|
2176
|
+
input,
|
|
2177
|
+
"repos",
|
|
2178
|
+
false,
|
|
2179
|
+
options
|
|
2180
|
+
);
|
|
2181
|
+
}
|
|
2166
2182
|
};
|
|
2167
2183
|
|
|
2168
2184
|
// src/generated/platforms/glassdoor.ts
|
|
@@ -3102,7 +3118,7 @@ var LinkedinNamespace = class {
|
|
|
3102
3118
|
*
|
|
3103
3119
|
* Cheap job index: title, company, location, posted date, URL. No description, salary, applicant counts, or seniority - for those use linkedin.jobs.
|
|
3104
3120
|
*
|
|
3105
|
-
* Price: $0.
|
|
3121
|
+
* Price: $0.0009 per request.
|
|
3106
3122
|
*
|
|
3107
3123
|
* @example
|
|
3108
3124
|
* const res = await client.linkedin.jobsThin({ query: "software engineer", limit: 3, location: "United States", workplaceType: "remote" });
|
|
@@ -3115,7 +3131,7 @@ var LinkedinNamespace = class {
|
|
|
3115
3131
|
*
|
|
3116
3132
|
* Fetch a single LinkedIn post or article by URL (title, text, author, like and comment counts, publish date).
|
|
3117
3133
|
*
|
|
3118
|
-
* Price: $0.
|
|
3134
|
+
* Price: $0.0009 per request.
|
|
3119
3135
|
*
|
|
3120
3136
|
* @example
|
|
3121
3137
|
* const res = await client.linkedin.post({ url: "https://www.linkedin.com/posts/stripe_last-week-agent-traffic-surpassed-human-activity-7470882737390940160-2Nxs" });
|
|
@@ -3180,7 +3196,7 @@ var LinkedinNamespace = class {
|
|
|
3180
3196
|
*
|
|
3181
3197
|
* Lightweight profile: name, avatar, location, followers, and a basic experience/education list (company + dates only, no job titles, descriptions, or skills; past companies may be redacted). For full experience detail, skills, certifications, connections, and verified flags use linkedin.profile.
|
|
3182
3198
|
*
|
|
3183
|
-
* Price: $0.
|
|
3199
|
+
* Price: $0.00144 per request.
|
|
3184
3200
|
*
|
|
3185
3201
|
* @example
|
|
3186
3202
|
* const res = await client.linkedin.profileThin({ url: "https://www.linkedin.com/in/williamhgates" });
|
|
@@ -3478,7 +3494,7 @@ var RedditNamespace = class {
|
|
|
3478
3494
|
*
|
|
3479
3495
|
* Fetch a single Reddit post by URL, including its full body text, score, comment count, upvote ratio, and subreddit, as normalized JSON.
|
|
3480
3496
|
*
|
|
3481
|
-
* Price: $0.
|
|
3497
|
+
* Price: $0.0009 per request.
|
|
3482
3498
|
*
|
|
3483
3499
|
* @example
|
|
3484
3500
|
* const res = await client.reddit.post({ url: "https://www.reddit.com/r/IAmA/comments/z1c9z/i_am_barack_obama_president_of_the_united_states/" });
|
|
@@ -3546,7 +3562,7 @@ var RedditNamespace = class {
|
|
|
3546
3562
|
*
|
|
3547
3563
|
* Search Reddit posts across all subreddits by query.
|
|
3548
3564
|
*
|
|
3549
|
-
* Price: $0.
|
|
3565
|
+
* Price: $0.0009 per request.
|
|
3550
3566
|
*
|
|
3551
3567
|
* @example
|
|
3552
3568
|
* const res = await client.reddit.search({ query: "mechanical keyboard" });
|
|
@@ -3588,7 +3604,7 @@ var RedditNamespace = class {
|
|
|
3588
3604
|
*
|
|
3589
3605
|
* Fetch posts from a subreddit listing (hot, new, or top).
|
|
3590
3606
|
*
|
|
3591
|
-
* Price: $0.
|
|
3607
|
+
* Price: $0.0009 per request.
|
|
3592
3608
|
*
|
|
3593
3609
|
* @example
|
|
3594
3610
|
* const res = await client.reddit.subredditPosts({ subreddit: "programming", limit: 5 });
|
|
@@ -3688,7 +3704,7 @@ var RedditNamespace = class {
|
|
|
3688
3704
|
*
|
|
3689
3705
|
* List a Reddit user's posts by username, sorted by new, top, hot, or controversial, with cursor pagination.
|
|
3690
3706
|
*
|
|
3691
|
-
* Price: $0.
|
|
3707
|
+
* Price: $0.0009 per request.
|
|
3692
3708
|
*
|
|
3693
3709
|
* @example
|
|
3694
3710
|
* const res = await client.reddit.userPosts({ username: "spez" });
|
|
@@ -4492,7 +4508,7 @@ var TiktokNamespace = class {
|
|
|
4492
4508
|
*
|
|
4493
4509
|
* List recent TikTok videos for a hashtag (creator, caption, views, likes, shares).
|
|
4494
4510
|
*
|
|
4495
|
-
* Price: $0.
|
|
4511
|
+
* Price: $0.00144 per request.
|
|
4496
4512
|
*
|
|
4497
4513
|
* @example
|
|
4498
4514
|
* const res = await client.tiktok.hashtagVideos({ hashtag: "cooking", limit: 3 });
|
|
@@ -4518,7 +4534,7 @@ var TiktokNamespace = class {
|
|
|
4518
4534
|
*
|
|
4519
4535
|
* Fetch a TikTok creator's public profile (followers, likes, bio, verification) by handle.
|
|
4520
4536
|
*
|
|
4521
|
-
* Price: $0.
|
|
4537
|
+
* Price: $0.0009 per request.
|
|
4522
4538
|
*
|
|
4523
4539
|
* @example
|
|
4524
4540
|
* const res = await client.tiktok.profile({ handle: "zachking" });
|
|
@@ -4712,7 +4728,7 @@ var TiktokNamespace = class {
|
|
|
4712
4728
|
*
|
|
4713
4729
|
* Fetch a single TikTok video by URL with its caption and engagement counts (views, likes, comments, shares, saves).
|
|
4714
4730
|
*
|
|
4715
|
-
* Price: $0.
|
|
4731
|
+
* Price: $0.0009 per request.
|
|
4716
4732
|
*
|
|
4717
4733
|
* @example
|
|
4718
4734
|
* const res = await client.tiktok.video({ url: "https://www.tiktok.com/@mrbeast/video/7654638524729216287?_r=1&u_code=elgjf3ff8cajhk&preview_pb=0&sharer_language=en&_d=elh6737j6kjl71&share_item_id=7654638524729216287&source=h5_m" });
|
|
@@ -4725,7 +4741,7 @@ var TiktokNamespace = class {
|
|
|
4725
4741
|
*
|
|
4726
4742
|
* List the comments on a TikTok video by URL with cursor pagination (text, author, likes, reply count).
|
|
4727
4743
|
*
|
|
4728
|
-
* Price: $0.
|
|
4744
|
+
* Price: $0.00144 per request.
|
|
4729
4745
|
*
|
|
4730
4746
|
* @example
|
|
4731
4747
|
* const res = await client.tiktok.videoComments({ url: "https://www.tiktok.com/@zachking/video/7650468599424945422?_r=1&u_code=f0hj7d780760m9&preview_pb=0&sharer_language=en&_d=f0hj7blh067h71&share_item_id=7650468599424945422&source=h5_m" });
|
|
@@ -5501,7 +5517,7 @@ var YoutubeNamespace = class {
|
|
|
5501
5517
|
*
|
|
5502
5518
|
* Fetch a YouTube channel's stats (subscribers, video count, total views, description) by handle or channel ID.
|
|
5503
5519
|
*
|
|
5504
|
-
* Price: $0.
|
|
5520
|
+
* Price: $0.0009 per request.
|
|
5505
5521
|
*
|
|
5506
5522
|
* @example
|
|
5507
5523
|
* const res = await client.youtube.channel({ handle: "@mkbhd" });
|
|
@@ -5630,7 +5646,7 @@ var YoutubeNamespace = class {
|
|
|
5630
5646
|
*
|
|
5631
5647
|
* List a YouTube channel's videos by handle or channel ID with cursor pagination (title, views, length, publish time).
|
|
5632
5648
|
*
|
|
5633
|
-
* Price: $0.
|
|
5649
|
+
* Price: $0.0009 per request.
|
|
5634
5650
|
*
|
|
5635
5651
|
* @example
|
|
5636
5652
|
* const res = await client.youtube.channelVideos({ handle: "@mkbhd" });
|
|
@@ -5698,7 +5714,7 @@ var YoutubeNamespace = class {
|
|
|
5698
5714
|
*
|
|
5699
5715
|
* Search YouTube and get matching videos (title, channel, views, length, publish time) as normalized JSON.
|
|
5700
5716
|
*
|
|
5701
|
-
* Price: $0.
|
|
5717
|
+
* Price: $0.0009 per request.
|
|
5702
5718
|
*
|
|
5703
5719
|
* @example
|
|
5704
5720
|
* const res = await client.youtube.search({ query: "how to cook rice" });
|
|
@@ -5902,7 +5918,7 @@ var ZillowNamespace = class {
|
|
|
5902
5918
|
*
|
|
5903
5919
|
* Fetch full details for a single Zillow property listing by URL (price, facts and features, photos, and price/tax history).
|
|
5904
5920
|
*
|
|
5905
|
-
* Price: $0 per request
|
|
5921
|
+
* Price: $0.0009 per request.
|
|
5906
5922
|
*
|
|
5907
5923
|
* @example
|
|
5908
5924
|
* const res = await client.zillow.property({ url: "https://www.zillow.com/homedetails/4510-Secure-Ln-Austin-TX-78725/83126034_zpid/" });
|