@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.js CHANGED
@@ -2909,7 +2909,7 @@ var GoogleNamespace = class {
2909
2909
  *
2910
2910
  * 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.
2911
2911
  *
2912
- * Price: $0.0007 per request.
2912
+ * Price: $0.00006 per request plus $0.0033 per result (maximum $0.00336).
2913
2913
  *
2914
2914
  * @example
2915
2915
  * const res = await client.google.aiMode({ prompt: "What is AnyAPI at getanyapi.com, and what does it offer?" });
@@ -3013,7 +3013,7 @@ var GoogleNamespace = class {
3013
3013
  *
3014
3014
  * 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.
3015
3015
  *
3016
- * Price: $0.0009 per request.
3016
+ * Price: $0.0005 per request.
3017
3017
  *
3018
3018
  * @example
3019
3019
  * const res = await client.google.search({ query: "best coffee maker", gl: "us", hl: "en", limit: 10 });
@@ -3598,7 +3598,7 @@ var InstagramNamespace = class {
3598
3598
  *
3599
3599
  * Fetch an Instagram account's public profile (followers, posts, bio, verification) by handle.
3600
3600
  *
3601
- * Price: $0.0012 per request.
3601
+ * Price: $0.0005 per request.
3602
3602
  *
3603
3603
  * @example
3604
3604
  * const res = await client.instagram.profile({ handle: "nasa" });
@@ -4069,6 +4069,19 @@ var LinkedinNamespace = class {
4069
4069
  email(input, options) {
4070
4070
  return this._core.run("linkedin.email", input, options);
4071
4071
  }
4072
+ /**
4073
+ * LinkedIn Job
4074
+ *
4075
+ * 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.
4076
+ *
4077
+ * Price: $0.0015 per request.
4078
+ *
4079
+ * @example
4080
+ * const res = await client.linkedin.job({ url: "https://www.linkedin.com/jobs/view/4431721875/" });
4081
+ */
4082
+ job(input, options) {
4083
+ return this._core.run("linkedin.job", input, options);
4084
+ }
4072
4085
  /**
4073
4086
  * LinkedIn Jobs
4074
4087
  *
@@ -4160,6 +4173,19 @@ var LinkedinNamespace = class {
4160
4173
  profile(input, options) {
4161
4174
  return this._core.run("linkedin.profile", input, options);
4162
4175
  }
4176
+ /**
4177
+ * LinkedIn Profile Comments
4178
+ *
4179
+ * 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.
4180
+ *
4181
+ * Price: $0.005 per request.
4182
+ *
4183
+ * @example
4184
+ * const res = await client.linkedin.profileComments({ url: "https://www.linkedin.com/in/jeffweiner08", limit: 10 });
4185
+ */
4186
+ profileComments(input, options) {
4187
+ return this._core.run("linkedin.profile_comments", input, options);
4188
+ }
4163
4189
  /**
4164
4190
  * LinkedIn Profile Posts (full)
4165
4191
  *
@@ -4186,6 +4212,19 @@ var LinkedinNamespace = class {
4186
4212
  profilePostsThin(input, options) {
4187
4213
  return this._core.run("linkedin.profile_posts_thin", input, options);
4188
4214
  }
4215
+ /**
4216
+ * LinkedIn Profile Reactions
4217
+ *
4218
+ * 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.
4219
+ *
4220
+ * Price: $0.005 per request.
4221
+ *
4222
+ * @example
4223
+ * const res = await client.linkedin.profileReactions({ url: "https://www.linkedin.com/in/williamhgates", limit: 10 });
4224
+ */
4225
+ profileReactions(input, options) {
4226
+ return this._core.run("linkedin.profile_reactions", input, options);
4227
+ }
4189
4228
  /**
4190
4229
  * LinkedIn Profile (basic)
4191
4230
  *
@@ -4841,7 +4880,7 @@ var RedditNamespace = class {
4841
4880
  *
4842
4881
  * List the top-level comments on a Reddit post by URL (author, body, score, timestamp).
4843
4882
  *
4844
- * Price: $0.0012 per request.
4883
+ * Price: $0.0009 per request.
4845
4884
  *
4846
4885
  * @example
4847
4886
  * const res = await client.reddit.postComments({ url: "https://www.reddit.com/r/IAmA/comments/z1c9z/i_am_barack_obama_president_of_the_united_states/" });
@@ -4896,7 +4935,7 @@ var RedditNamespace = class {
4896
4935
  *
4897
4936
  * Search Reddit posts across all subreddits by query.
4898
4937
  *
4899
- * Price: $0.0005 per request.
4938
+ * Price: $0.00045 per request.
4900
4939
  *
4901
4940
  * @example
4902
4941
  * const res = await client.reddit.search({ query: "mechanical keyboard" });
@@ -4925,7 +4964,7 @@ var RedditNamespace = class {
4925
4964
  *
4926
4965
  * Fetch a subreddit's metadata (weekly active users, description, and category).
4927
4966
  *
4928
- * Price: $0.0012 per request.
4967
+ * Price: $0.00045 per request.
4929
4968
  *
4930
4969
  * @example
4931
4970
  * const res = await client.reddit.subredditDetails({ subreddit: "programming" });
@@ -4938,7 +4977,7 @@ var RedditNamespace = class {
4938
4977
  *
4939
4978
  * Fetch posts from a subreddit listing (hot, new, or top).
4940
4979
  *
4941
- * Price: $0.0005 per request.
4980
+ * Price: $0.00045 per request.
4942
4981
  *
4943
4982
  * @example
4944
4983
  * const res = await client.reddit.subredditPosts({ subreddit: "programming", limit: 5 });
@@ -4967,7 +5006,7 @@ var RedditNamespace = class {
4967
5006
  *
4968
5007
  * Search posts within a single subreddit by query, sort, and timeframe.
4969
5008
  *
4970
- * Price: $0.0005 per request.
5009
+ * Price: $0.00045 per request.
4971
5010
  *
4972
5011
  * @example
4973
5012
  * const res = await client.reddit.subredditSearch({ subreddit: "Fitness", query: "push ups" });
@@ -5009,7 +5048,7 @@ var RedditNamespace = class {
5009
5048
  *
5010
5049
  * 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.
5011
5050
  *
5012
- * Price: $0.0012 per request.
5051
+ * Price: $0.0009 per request.
5013
5052
  *
5014
5053
  * @example
5015
5054
  * const res = await client.reddit.userComments({ username: "spez" });
@@ -5038,7 +5077,7 @@ var RedditNamespace = class {
5038
5077
  *
5039
5078
  * List a Reddit user's posts by username, sorted by new, top, hot, or controversial, with cursor pagination.
5040
5079
  *
5041
- * Price: $0.0005 per request.
5080
+ * Price: $0.00045 per request.
5042
5081
  *
5043
5082
  * @example
5044
5083
  * const res = await client.reddit.userPosts({ username: "spez" });
@@ -5662,9 +5701,9 @@ var SubstackNamespace = class {
5662
5701
  /**
5663
5702
  * Substack Posts
5664
5703
  *
5665
- * 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, and full article HTML.
5704
+ * 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.
5666
5705
  *
5667
- * Price: $0.0055 per request plus $0.00172 per result (maximum $0.178).
5706
+ * Price: $0.00039 per request plus $0.00044 per result (maximum $0.0444).
5668
5707
  *
5669
5708
  * @example
5670
5709
  * const res = await client.substack.posts({ url: "https://www.astralcodexten.com", limit: 3 });
@@ -5989,7 +6028,7 @@ var TiktokNamespace = class {
5989
6028
  *
5990
6029
  * Fetch a TikTok creator's public profile (followers, likes, bio, verification) by handle.
5991
6030
  *
5992
- * Price: $0.0012 per request.
6031
+ * Price: $0.0005 per request.
5993
6032
  *
5994
6033
  * @example
5995
6034
  * const res = await client.tiktok.profile({ handle: "zachking" });
@@ -6267,7 +6306,7 @@ var TiktokNamespace = class {
6267
6306
  *
6268
6307
  * List the comments on a TikTok video by URL with cursor pagination (text, author, likes, reply count).
6269
6308
  *
6270
- * Price: $0.0012 per request.
6309
+ * Price: $0.0008 per request.
6271
6310
  *
6272
6311
  * @example
6273
6312
  * 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" });
@@ -6681,9 +6720,9 @@ var TwitterNamespace = class {
6681
6720
  /**
6682
6721
  * X / Twitter Following
6683
6722
  *
6684
- * List the accounts a public X (Twitter) account follows by username with cursor pagination. Limit is a per-page maximum and a native page holds up to 200 accounts; follow the response's nextCursor for more.
6723
+ * 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.
6685
6724
  *
6686
- * Price: $0.00075 per request.
6725
+ * Price: $0.0005 per request.
6687
6726
  *
6688
6727
  * @example
6689
6728
  * const res = await client.twitter.following({ username: "nasa", limit: 200 });
@@ -7205,7 +7244,7 @@ var YoutubeNamespace = class {
7205
7244
  *
7206
7245
  * Fetch a YouTube channel's stats (subscribers, video count, total views, description) by handle or channel ID.
7207
7246
  *
7208
- * Price: $0.0005 per request.
7247
+ * Price: $0.0012 per request.
7209
7248
  *
7210
7249
  * @example
7211
7250
  * const res = await client.youtube.channel({ handle: "@mkbhd" });