@getanyapi/sdk 0.40.2 → 0.41.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 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.0007 per request.
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.0009 per request.
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 });
@@ -4956,7 +4956,7 @@ var RedditNamespace = class {
4956
4956
  *
4957
4957
  * List the top-level comments on a Reddit post by URL (author, body, score, timestamp).
4958
4958
  *
4959
- * Price: $0.0012 per request.
4959
+ * Price: $0.0009 per request.
4960
4960
  *
4961
4961
  * @example
4962
4962
  * 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 +5011,7 @@ var RedditNamespace = class {
5011
5011
  *
5012
5012
  * Search Reddit posts across all subreddits by query.
5013
5013
  *
5014
- * Price: $0.0005 per request.
5014
+ * Price: $0.00045 per request.
5015
5015
  *
5016
5016
  * @example
5017
5017
  * const res = await client.reddit.search({ query: "mechanical keyboard" });
@@ -5040,7 +5040,7 @@ var RedditNamespace = class {
5040
5040
  *
5041
5041
  * Fetch a subreddit's metadata (weekly active users, description, and category).
5042
5042
  *
5043
- * Price: $0.0012 per request.
5043
+ * Price: $0.00045 per request.
5044
5044
  *
5045
5045
  * @example
5046
5046
  * const res = await client.reddit.subredditDetails({ subreddit: "programming" });
@@ -5053,7 +5053,7 @@ var RedditNamespace = class {
5053
5053
  *
5054
5054
  * Fetch posts from a subreddit listing (hot, new, or top).
5055
5055
  *
5056
- * Price: $0.0005 per request.
5056
+ * Price: $0.00045 per request.
5057
5057
  *
5058
5058
  * @example
5059
5059
  * const res = await client.reddit.subredditPosts({ subreddit: "programming", limit: 5 });
@@ -5082,7 +5082,7 @@ var RedditNamespace = class {
5082
5082
  *
5083
5083
  * Search posts within a single subreddit by query, sort, and timeframe.
5084
5084
  *
5085
- * Price: $0.0005 per request.
5085
+ * Price: $0.00045 per request.
5086
5086
  *
5087
5087
  * @example
5088
5088
  * const res = await client.reddit.subredditSearch({ subreddit: "Fitness", query: "push ups" });
@@ -5124,7 +5124,7 @@ var RedditNamespace = class {
5124
5124
  *
5125
5125
  * 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
5126
  *
5127
- * Price: $0.0012 per request.
5127
+ * Price: $0.0009 per request.
5128
5128
  *
5129
5129
  * @example
5130
5130
  * const res = await client.reddit.userComments({ username: "spez" });
@@ -5153,7 +5153,7 @@ var RedditNamespace = class {
5153
5153
  *
5154
5154
  * List a Reddit user's posts by username, sorted by new, top, hot, or controversial, with cursor pagination.
5155
5155
  *
5156
- * Price: $0.0005 per request.
5156
+ * Price: $0.00045 per request.
5157
5157
  *
5158
5158
  * @example
5159
5159
  * const res = await client.reddit.userPosts({ username: "spez" });
@@ -5777,9 +5777,9 @@ var SubstackNamespace = class {
5777
5777
  /**
5778
5778
  * Substack Posts
5779
5779
  *
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, and full article HTML.
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, publication details, the full article body as text, HTML and Markdown, and optional comment threads.
5781
5781
  *
5782
- * Price: $0.0055 per request plus $0.00172 per result (maximum $0.178).
5782
+ * Price: $0.00039 per request plus $0.00044 per result (maximum $0.0444).
5783
5783
  *
5784
5784
  * @example
5785
5785
  * const res = await client.substack.posts({ url: "https://www.astralcodexten.com", limit: 3 });
@@ -6104,7 +6104,7 @@ var TiktokNamespace = class {
6104
6104
  *
6105
6105
  * Fetch a TikTok creator's public profile (followers, likes, bio, verification) by handle.
6106
6106
  *
6107
- * Price: $0.0012 per request.
6107
+ * Price: $0.0005 per request.
6108
6108
  *
6109
6109
  * @example
6110
6110
  * const res = await client.tiktok.profile({ handle: "zachking" });
@@ -6382,7 +6382,7 @@ var TiktokNamespace = class {
6382
6382
  *
6383
6383
  * List the comments on a TikTok video by URL with cursor pagination (text, author, likes, reply count).
6384
6384
  *
6385
- * Price: $0.0012 per request.
6385
+ * Price: $0.0008 per request.
6386
6386
  *
6387
6387
  * @example
6388
6388
  * 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" });
@@ -7320,7 +7320,7 @@ var YoutubeNamespace = class {
7320
7320
  *
7321
7321
  * Fetch a YouTube channel's stats (subscribers, video count, total views, description) by handle or channel ID.
7322
7322
  *
7323
- * Price: $0.0005 per request.
7323
+ * Price: $0.0012 per request.
7324
7324
  *
7325
7325
  * @example
7326
7326
  * const res = await client.youtube.channel({ handle: "@mkbhd" });