@getanyapi/sdk 0.40.2 → 0.42.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.
- package/dist/index.cjs +56 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1063 -42
- package/dist/index.d.ts +1063 -42
- package/dist/index.js +56 -17
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3024,7 +3024,7 @@ var GoogleNamespace = class {
|
|
|
3024
3024
|
*
|
|
3025
3025
|
* Ask Google AI Mode a prompt and receive the cited answer it generates. AI Mode composes the answer at search time, so repeat calls on one prompt can differ in wording and in which sources are cited.
|
|
3026
3026
|
*
|
|
3027
|
-
* Price: $0.
|
|
3027
|
+
* Price: $0.00006 per request plus $0.0033 per result (maximum $0.00336).
|
|
3028
3028
|
*
|
|
3029
3029
|
* @example
|
|
3030
3030
|
* const res = await client.google.aiMode({ prompt: "What is AnyAPI at getanyapi.com, and what does it offer?" });
|
|
@@ -3128,7 +3128,7 @@ var GoogleNamespace = class {
|
|
|
3128
3128
|
*
|
|
3129
3129
|
* Run a Google web search and get the organic results (title, link, snippet, position) as clean JSON. Returns about 10 results per call - Google stopped honoring bulk result counts in September 2025, so a limit above 10 is accepted but returns no more than a page. Pass the returned nextCursor back as cursor to walk further, or use google.search_100 for up to 100 ranked results in one call, which is cheaper past roughly 20 results.
|
|
3130
3130
|
*
|
|
3131
|
-
* Price: $0.
|
|
3131
|
+
* Price: $0.0005 per request.
|
|
3132
3132
|
*
|
|
3133
3133
|
* @example
|
|
3134
3134
|
* const res = await client.google.search({ query: "best coffee maker", gl: "us", hl: "en", limit: 10 });
|
|
@@ -3713,7 +3713,7 @@ var InstagramNamespace = class {
|
|
|
3713
3713
|
*
|
|
3714
3714
|
* Fetch an Instagram account's public profile (followers, posts, bio, verification) by handle.
|
|
3715
3715
|
*
|
|
3716
|
-
* Price: $0.
|
|
3716
|
+
* Price: $0.0005 per request.
|
|
3717
3717
|
*
|
|
3718
3718
|
* @example
|
|
3719
3719
|
* const res = await client.instagram.profile({ handle: "nasa" });
|
|
@@ -4184,6 +4184,19 @@ var LinkedinNamespace = class {
|
|
|
4184
4184
|
email(input, options) {
|
|
4185
4185
|
return this._core.run("linkedin.email", input, options);
|
|
4186
4186
|
}
|
|
4187
|
+
/**
|
|
4188
|
+
* LinkedIn Job
|
|
4189
|
+
*
|
|
4190
|
+
* Fetch one LinkedIn job posting by URL: title, full description, location, salary when disclosed, applicant count, employment and workplace type, seniority, benefits, industries, apply links, posting and expiry dates, the hiring team, the applicant tracking system behind it, and the hiring company with its size, follower count, website and description.
|
|
4191
|
+
*
|
|
4192
|
+
* Price: $0.0015 per request.
|
|
4193
|
+
*
|
|
4194
|
+
* @example
|
|
4195
|
+
* const res = await client.linkedin.job({ url: "https://www.linkedin.com/jobs/view/4431721875/" });
|
|
4196
|
+
*/
|
|
4197
|
+
job(input, options) {
|
|
4198
|
+
return this._core.run("linkedin.job", input, options);
|
|
4199
|
+
}
|
|
4187
4200
|
/**
|
|
4188
4201
|
* LinkedIn Jobs
|
|
4189
4202
|
*
|
|
@@ -4275,6 +4288,19 @@ var LinkedinNamespace = class {
|
|
|
4275
4288
|
profile(input, options) {
|
|
4276
4289
|
return this._core.run("linkedin.profile", input, options);
|
|
4277
4290
|
}
|
|
4291
|
+
/**
|
|
4292
|
+
* LinkedIn Profile Comments
|
|
4293
|
+
*
|
|
4294
|
+
* List the comments a LinkedIn member has left on other people's posts - the comment text, its permalink and timestamp, plus the post it was left on and that post's author and engagement.
|
|
4295
|
+
*
|
|
4296
|
+
* Price: $0.005 per request.
|
|
4297
|
+
*
|
|
4298
|
+
* @example
|
|
4299
|
+
* const res = await client.linkedin.profileComments({ url: "https://www.linkedin.com/in/jeffweiner08", limit: 10 });
|
|
4300
|
+
*/
|
|
4301
|
+
profileComments(input, options) {
|
|
4302
|
+
return this._core.run("linkedin.profile_comments", input, options);
|
|
4303
|
+
}
|
|
4278
4304
|
/**
|
|
4279
4305
|
* LinkedIn Profile Posts (full)
|
|
4280
4306
|
*
|
|
@@ -4301,6 +4327,19 @@ var LinkedinNamespace = class {
|
|
|
4301
4327
|
profilePostsThin(input, options) {
|
|
4302
4328
|
return this._core.run("linkedin.profile_posts_thin", input, options);
|
|
4303
4329
|
}
|
|
4330
|
+
/**
|
|
4331
|
+
* LinkedIn Profile Reactions
|
|
4332
|
+
*
|
|
4333
|
+
* List the posts a LinkedIn member has reacted to - the reaction, its timestamp, and the full post it was made on with author and engagement.
|
|
4334
|
+
*
|
|
4335
|
+
* Price: $0.005 per request.
|
|
4336
|
+
*
|
|
4337
|
+
* @example
|
|
4338
|
+
* const res = await client.linkedin.profileReactions({ url: "https://www.linkedin.com/in/williamhgates", limit: 10 });
|
|
4339
|
+
*/
|
|
4340
|
+
profileReactions(input, options) {
|
|
4341
|
+
return this._core.run("linkedin.profile_reactions", input, options);
|
|
4342
|
+
}
|
|
4304
4343
|
/**
|
|
4305
4344
|
* LinkedIn Profile (basic)
|
|
4306
4345
|
*
|
|
@@ -4956,7 +4995,7 @@ var RedditNamespace = class {
|
|
|
4956
4995
|
*
|
|
4957
4996
|
* List the top-level comments on a Reddit post by URL (author, body, score, timestamp).
|
|
4958
4997
|
*
|
|
4959
|
-
* Price: $0.
|
|
4998
|
+
* Price: $0.0009 per request.
|
|
4960
4999
|
*
|
|
4961
5000
|
* @example
|
|
4962
5001
|
* const res = await client.reddit.postComments({ url: "https://www.reddit.com/r/IAmA/comments/z1c9z/i_am_barack_obama_president_of_the_united_states/" });
|
|
@@ -5011,7 +5050,7 @@ var RedditNamespace = class {
|
|
|
5011
5050
|
*
|
|
5012
5051
|
* Search Reddit posts across all subreddits by query.
|
|
5013
5052
|
*
|
|
5014
|
-
* Price: $0.
|
|
5053
|
+
* Price: $0.00045 per request.
|
|
5015
5054
|
*
|
|
5016
5055
|
* @example
|
|
5017
5056
|
* const res = await client.reddit.search({ query: "mechanical keyboard" });
|
|
@@ -5040,7 +5079,7 @@ var RedditNamespace = class {
|
|
|
5040
5079
|
*
|
|
5041
5080
|
* Fetch a subreddit's metadata (weekly active users, description, and category).
|
|
5042
5081
|
*
|
|
5043
|
-
* Price: $0.
|
|
5082
|
+
* Price: $0.00045 per request.
|
|
5044
5083
|
*
|
|
5045
5084
|
* @example
|
|
5046
5085
|
* const res = await client.reddit.subredditDetails({ subreddit: "programming" });
|
|
@@ -5053,7 +5092,7 @@ var RedditNamespace = class {
|
|
|
5053
5092
|
*
|
|
5054
5093
|
* Fetch posts from a subreddit listing (hot, new, or top).
|
|
5055
5094
|
*
|
|
5056
|
-
* Price: $0.
|
|
5095
|
+
* Price: $0.00045 per request.
|
|
5057
5096
|
*
|
|
5058
5097
|
* @example
|
|
5059
5098
|
* const res = await client.reddit.subredditPosts({ subreddit: "programming", limit: 5 });
|
|
@@ -5082,7 +5121,7 @@ var RedditNamespace = class {
|
|
|
5082
5121
|
*
|
|
5083
5122
|
* Search posts within a single subreddit by query, sort, and timeframe.
|
|
5084
5123
|
*
|
|
5085
|
-
* Price: $0.
|
|
5124
|
+
* Price: $0.00045 per request.
|
|
5086
5125
|
*
|
|
5087
5126
|
* @example
|
|
5088
5127
|
* const res = await client.reddit.subredditSearch({ subreddit: "Fitness", query: "push ups" });
|
|
@@ -5124,7 +5163,7 @@ var RedditNamespace = class {
|
|
|
5124
5163
|
*
|
|
5125
5164
|
* List a Reddit user's comments by username, sorted by new, top, hot, or controversial, with the parent post title and subreddit on every item and cursor pagination. Comment text comes back as a roughly 300-character preview rather than the full body, and this endpoint carries no per-comment permalink; use reddit.post_comments for full comment bodies and comment URLs on a given post.
|
|
5126
5165
|
*
|
|
5127
|
-
* Price: $0.
|
|
5166
|
+
* Price: $0.0009 per request.
|
|
5128
5167
|
*
|
|
5129
5168
|
* @example
|
|
5130
5169
|
* const res = await client.reddit.userComments({ username: "spez" });
|
|
@@ -5153,7 +5192,7 @@ var RedditNamespace = class {
|
|
|
5153
5192
|
*
|
|
5154
5193
|
* List a Reddit user's posts by username, sorted by new, top, hot, or controversial, with cursor pagination.
|
|
5155
5194
|
*
|
|
5156
|
-
* Price: $0.
|
|
5195
|
+
* Price: $0.00045 per request.
|
|
5157
5196
|
*
|
|
5158
5197
|
* @example
|
|
5159
5198
|
* const res = await client.reddit.userPosts({ username: "spez" });
|
|
@@ -5777,9 +5816,9 @@ var SubstackNamespace = class {
|
|
|
5777
5816
|
/**
|
|
5778
5817
|
* Substack Posts
|
|
5779
5818
|
*
|
|
5780
|
-
* Pull posts from any Substack publication by its URL, or pass a single post URL (…/p/slug) to fetch just that one article. Returns title, subtitle, publish date, paywall status, word count, engagement (reactions, comments, restacks), author profile,
|
|
5819
|
+
* Pull posts from any Substack publication by its URL, or pass a single post URL (…/p/slug) to fetch just that one article. Returns title, subtitle, publish date, paywall status, word count, engagement (reactions, comments, restacks), author profile, publication details, the full article body as text, HTML and Markdown, and optional comment threads.
|
|
5781
5820
|
*
|
|
5782
|
-
* Price: $0.
|
|
5821
|
+
* Price: $0.00039 per request plus $0.00044 per result (maximum $0.0444).
|
|
5783
5822
|
*
|
|
5784
5823
|
* @example
|
|
5785
5824
|
* const res = await client.substack.posts({ url: "https://www.astralcodexten.com", limit: 3 });
|
|
@@ -6104,7 +6143,7 @@ var TiktokNamespace = class {
|
|
|
6104
6143
|
*
|
|
6105
6144
|
* Fetch a TikTok creator's public profile (followers, likes, bio, verification) by handle.
|
|
6106
6145
|
*
|
|
6107
|
-
* Price: $0.
|
|
6146
|
+
* Price: $0.0005 per request.
|
|
6108
6147
|
*
|
|
6109
6148
|
* @example
|
|
6110
6149
|
* const res = await client.tiktok.profile({ handle: "zachking" });
|
|
@@ -6382,7 +6421,7 @@ var TiktokNamespace = class {
|
|
|
6382
6421
|
*
|
|
6383
6422
|
* List the comments on a TikTok video by URL with cursor pagination (text, author, likes, reply count).
|
|
6384
6423
|
*
|
|
6385
|
-
* Price: $0.
|
|
6424
|
+
* Price: $0.0008 per request.
|
|
6386
6425
|
*
|
|
6387
6426
|
* @example
|
|
6388
6427
|
* 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" });
|
|
@@ -6796,9 +6835,9 @@ var TwitterNamespace = class {
|
|
|
6796
6835
|
/**
|
|
6797
6836
|
* X / Twitter Following
|
|
6798
6837
|
*
|
|
6799
|
-
* List the accounts a public X (Twitter) account follows by username with cursor pagination. Limit is a per-page maximum
|
|
6838
|
+
* List the accounts a public X (Twitter) account follows by username with cursor pagination. Limit is a per-page maximum; follow the response's nextCursor for more.
|
|
6800
6839
|
*
|
|
6801
|
-
* Price: $0.
|
|
6840
|
+
* Price: $0.0005 per request.
|
|
6802
6841
|
*
|
|
6803
6842
|
* @example
|
|
6804
6843
|
* const res = await client.twitter.following({ username: "nasa", limit: 200 });
|
|
@@ -7320,7 +7359,7 @@ var YoutubeNamespace = class {
|
|
|
7320
7359
|
*
|
|
7321
7360
|
* Fetch a YouTube channel's stats (subscribers, video count, total views, description) by handle or channel ID.
|
|
7322
7361
|
*
|
|
7323
|
-
* Price: $0.
|
|
7362
|
+
* Price: $0.0012 per request.
|
|
7324
7363
|
*
|
|
7325
7364
|
* @example
|
|
7326
7365
|
* const res = await client.youtube.channel({ handle: "@mkbhd" });
|