@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.cjs
CHANGED
|
@@ -1102,7 +1102,7 @@ var AmazonNamespace = class {
|
|
|
1102
1102
|
*
|
|
1103
1103
|
* Fetch full Amazon product details (title, brand, price when in stock, images, ratings, review count, variants, and attributes) from a product URL.
|
|
1104
1104
|
*
|
|
1105
|
-
* Price: $0.
|
|
1105
|
+
* Price: $0.0018 per request.
|
|
1106
1106
|
*
|
|
1107
1107
|
* @example
|
|
1108
1108
|
* const res = await client.amazon.product({ url: "https://www.amazon.com/dp/B00NTCH52W" });
|
|
@@ -2261,6 +2261,22 @@ var GithubNamespace = class {
|
|
|
2261
2261
|
userRepositories(input, options) {
|
|
2262
2262
|
return this._core.run("github.user_repositories", input, options);
|
|
2263
2263
|
}
|
|
2264
|
+
/**
|
|
2265
|
+
* Iterate every result of GitHub User Repositories across pages.
|
|
2266
|
+
*
|
|
2267
|
+
* Yields items directly; call `.pages()` on the return value to walk whole
|
|
2268
|
+
* result pages instead (each carries its own costUsd).
|
|
2269
|
+
*/
|
|
2270
|
+
iterUserRepositories(input, options) {
|
|
2271
|
+
return paginate(
|
|
2272
|
+
this._core,
|
|
2273
|
+
"github.user_repositories",
|
|
2274
|
+
input,
|
|
2275
|
+
"repos",
|
|
2276
|
+
false,
|
|
2277
|
+
options
|
|
2278
|
+
);
|
|
2279
|
+
}
|
|
2264
2280
|
};
|
|
2265
2281
|
|
|
2266
2282
|
// src/generated/platforms/glassdoor.ts
|
|
@@ -3200,7 +3216,7 @@ var LinkedinNamespace = class {
|
|
|
3200
3216
|
*
|
|
3201
3217
|
* Cheap job index: title, company, location, posted date, URL. No description, salary, applicant counts, or seniority - for those use linkedin.jobs.
|
|
3202
3218
|
*
|
|
3203
|
-
* Price: $0.
|
|
3219
|
+
* Price: $0.0009 per request.
|
|
3204
3220
|
*
|
|
3205
3221
|
* @example
|
|
3206
3222
|
* const res = await client.linkedin.jobsThin({ query: "software engineer", limit: 3, location: "United States", workplaceType: "remote" });
|
|
@@ -3213,7 +3229,7 @@ var LinkedinNamespace = class {
|
|
|
3213
3229
|
*
|
|
3214
3230
|
* Fetch a single LinkedIn post or article by URL (title, text, author, like and comment counts, publish date).
|
|
3215
3231
|
*
|
|
3216
|
-
* Price: $0.
|
|
3232
|
+
* Price: $0.0009 per request.
|
|
3217
3233
|
*
|
|
3218
3234
|
* @example
|
|
3219
3235
|
* const res = await client.linkedin.post({ url: "https://www.linkedin.com/posts/stripe_last-week-agent-traffic-surpassed-human-activity-7470882737390940160-2Nxs" });
|
|
@@ -3278,7 +3294,7 @@ var LinkedinNamespace = class {
|
|
|
3278
3294
|
*
|
|
3279
3295
|
* 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.
|
|
3280
3296
|
*
|
|
3281
|
-
* Price: $0.
|
|
3297
|
+
* Price: $0.00144 per request.
|
|
3282
3298
|
*
|
|
3283
3299
|
* @example
|
|
3284
3300
|
* const res = await client.linkedin.profileThin({ url: "https://www.linkedin.com/in/williamhgates" });
|
|
@@ -3576,7 +3592,7 @@ var RedditNamespace = class {
|
|
|
3576
3592
|
*
|
|
3577
3593
|
* Fetch a single Reddit post by URL, including its full body text, score, comment count, upvote ratio, and subreddit, as normalized JSON.
|
|
3578
3594
|
*
|
|
3579
|
-
* Price: $0.
|
|
3595
|
+
* Price: $0.0009 per request.
|
|
3580
3596
|
*
|
|
3581
3597
|
* @example
|
|
3582
3598
|
* const res = await client.reddit.post({ url: "https://www.reddit.com/r/IAmA/comments/z1c9z/i_am_barack_obama_president_of_the_united_states/" });
|
|
@@ -3644,7 +3660,7 @@ var RedditNamespace = class {
|
|
|
3644
3660
|
*
|
|
3645
3661
|
* Search Reddit posts across all subreddits by query.
|
|
3646
3662
|
*
|
|
3647
|
-
* Price: $0.
|
|
3663
|
+
* Price: $0.0009 per request.
|
|
3648
3664
|
*
|
|
3649
3665
|
* @example
|
|
3650
3666
|
* const res = await client.reddit.search({ query: "mechanical keyboard" });
|
|
@@ -3686,7 +3702,7 @@ var RedditNamespace = class {
|
|
|
3686
3702
|
*
|
|
3687
3703
|
* Fetch posts from a subreddit listing (hot, new, or top).
|
|
3688
3704
|
*
|
|
3689
|
-
* Price: $0.
|
|
3705
|
+
* Price: $0.0009 per request.
|
|
3690
3706
|
*
|
|
3691
3707
|
* @example
|
|
3692
3708
|
* const res = await client.reddit.subredditPosts({ subreddit: "programming", limit: 5 });
|
|
@@ -3786,7 +3802,7 @@ var RedditNamespace = class {
|
|
|
3786
3802
|
*
|
|
3787
3803
|
* List a Reddit user's posts by username, sorted by new, top, hot, or controversial, with cursor pagination.
|
|
3788
3804
|
*
|
|
3789
|
-
* Price: $0.
|
|
3805
|
+
* Price: $0.0009 per request.
|
|
3790
3806
|
*
|
|
3791
3807
|
* @example
|
|
3792
3808
|
* const res = await client.reddit.userPosts({ username: "spez" });
|
|
@@ -4590,7 +4606,7 @@ var TiktokNamespace = class {
|
|
|
4590
4606
|
*
|
|
4591
4607
|
* List recent TikTok videos for a hashtag (creator, caption, views, likes, shares).
|
|
4592
4608
|
*
|
|
4593
|
-
* Price: $0.
|
|
4609
|
+
* Price: $0.00144 per request.
|
|
4594
4610
|
*
|
|
4595
4611
|
* @example
|
|
4596
4612
|
* const res = await client.tiktok.hashtagVideos({ hashtag: "cooking", limit: 3 });
|
|
@@ -4616,7 +4632,7 @@ var TiktokNamespace = class {
|
|
|
4616
4632
|
*
|
|
4617
4633
|
* Fetch a TikTok creator's public profile (followers, likes, bio, verification) by handle.
|
|
4618
4634
|
*
|
|
4619
|
-
* Price: $0.
|
|
4635
|
+
* Price: $0.0009 per request.
|
|
4620
4636
|
*
|
|
4621
4637
|
* @example
|
|
4622
4638
|
* const res = await client.tiktok.profile({ handle: "zachking" });
|
|
@@ -4810,7 +4826,7 @@ var TiktokNamespace = class {
|
|
|
4810
4826
|
*
|
|
4811
4827
|
* Fetch a single TikTok video by URL with its caption and engagement counts (views, likes, comments, shares, saves).
|
|
4812
4828
|
*
|
|
4813
|
-
* Price: $0.
|
|
4829
|
+
* Price: $0.0009 per request.
|
|
4814
4830
|
*
|
|
4815
4831
|
* @example
|
|
4816
4832
|
* 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" });
|
|
@@ -4823,7 +4839,7 @@ var TiktokNamespace = class {
|
|
|
4823
4839
|
*
|
|
4824
4840
|
* List the comments on a TikTok video by URL with cursor pagination (text, author, likes, reply count).
|
|
4825
4841
|
*
|
|
4826
|
-
* Price: $0.
|
|
4842
|
+
* Price: $0.00144 per request.
|
|
4827
4843
|
*
|
|
4828
4844
|
* @example
|
|
4829
4845
|
* 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" });
|
|
@@ -5599,7 +5615,7 @@ var YoutubeNamespace = class {
|
|
|
5599
5615
|
*
|
|
5600
5616
|
* Fetch a YouTube channel's stats (subscribers, video count, total views, description) by handle or channel ID.
|
|
5601
5617
|
*
|
|
5602
|
-
* Price: $0.
|
|
5618
|
+
* Price: $0.0009 per request.
|
|
5603
5619
|
*
|
|
5604
5620
|
* @example
|
|
5605
5621
|
* const res = await client.youtube.channel({ handle: "@mkbhd" });
|
|
@@ -5728,7 +5744,7 @@ var YoutubeNamespace = class {
|
|
|
5728
5744
|
*
|
|
5729
5745
|
* List a YouTube channel's videos by handle or channel ID with cursor pagination (title, views, length, publish time).
|
|
5730
5746
|
*
|
|
5731
|
-
* Price: $0.
|
|
5747
|
+
* Price: $0.0009 per request.
|
|
5732
5748
|
*
|
|
5733
5749
|
* @example
|
|
5734
5750
|
* const res = await client.youtube.channelVideos({ handle: "@mkbhd" });
|
|
@@ -5796,7 +5812,7 @@ var YoutubeNamespace = class {
|
|
|
5796
5812
|
*
|
|
5797
5813
|
* Search YouTube and get matching videos (title, channel, views, length, publish time) as normalized JSON.
|
|
5798
5814
|
*
|
|
5799
|
-
* Price: $0.
|
|
5815
|
+
* Price: $0.0009 per request.
|
|
5800
5816
|
*
|
|
5801
5817
|
* @example
|
|
5802
5818
|
* const res = await client.youtube.search({ query: "how to cook rice" });
|
|
@@ -6000,7 +6016,7 @@ var ZillowNamespace = class {
|
|
|
6000
6016
|
*
|
|
6001
6017
|
* Fetch full details for a single Zillow property listing by URL (price, facts and features, photos, and price/tax history).
|
|
6002
6018
|
*
|
|
6003
|
-
* Price: $0 per request
|
|
6019
|
+
* Price: $0.0009 per request.
|
|
6004
6020
|
*
|
|
6005
6021
|
* @example
|
|
6006
6022
|
* const res = await client.zillow.property({ url: "https://www.zillow.com/homedetails/4510-Secure-Ln-Austin-TX-78725/83126034_zpid/" });
|