@getanyapi/sdk 0.40.1 → 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.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 });
@@ -3828,7 +3828,7 @@ var InstagramNamespace = class {
3828
3828
  *
3829
3829
  * List an Instagram account's recent posts (likes, comments, captions) by handle with cursor pagination.
3830
3830
  *
3831
- * Price: $0.0012 per request.
3831
+ * Price: $0.00095 per request.
3832
3832
  *
3833
3833
  * @example
3834
3834
  * const res = await client.instagram.userPosts({ handle: "nasa" });
@@ -3857,7 +3857,7 @@ var InstagramNamespace = class {
3857
3857
  *
3858
3858
  * List an Instagram account's reels by handle with cursor pagination (caption, plays, likes, comments).
3859
3859
  *
3860
- * Price: $0.0012 per request.
3860
+ * Price: $0.00095 per request.
3861
3861
  *
3862
3862
  * @example
3863
3863
  * const res = await client.instagram.userReels({ handle: "nasa" });
@@ -4841,7 +4841,7 @@ var RedditNamespace = class {
4841
4841
  *
4842
4842
  * List the top-level comments on a Reddit post by URL (author, body, score, timestamp).
4843
4843
  *
4844
- * Price: $0.0012 per request.
4844
+ * Price: $0.0009 per request.
4845
4845
  *
4846
4846
  * @example
4847
4847
  * 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 +4896,7 @@ var RedditNamespace = class {
4896
4896
  *
4897
4897
  * Search Reddit posts across all subreddits by query.
4898
4898
  *
4899
- * Price: $0.0005 per request.
4899
+ * Price: $0.00045 per request.
4900
4900
  *
4901
4901
  * @example
4902
4902
  * const res = await client.reddit.search({ query: "mechanical keyboard" });
@@ -4925,7 +4925,7 @@ var RedditNamespace = class {
4925
4925
  *
4926
4926
  * Fetch a subreddit's metadata (weekly active users, description, and category).
4927
4927
  *
4928
- * Price: $0.0012 per request.
4928
+ * Price: $0.00045 per request.
4929
4929
  *
4930
4930
  * @example
4931
4931
  * const res = await client.reddit.subredditDetails({ subreddit: "programming" });
@@ -4938,7 +4938,7 @@ var RedditNamespace = class {
4938
4938
  *
4939
4939
  * Fetch posts from a subreddit listing (hot, new, or top).
4940
4940
  *
4941
- * Price: $0.0005 per request.
4941
+ * Price: $0.00045 per request.
4942
4942
  *
4943
4943
  * @example
4944
4944
  * const res = await client.reddit.subredditPosts({ subreddit: "programming", limit: 5 });
@@ -4967,7 +4967,7 @@ var RedditNamespace = class {
4967
4967
  *
4968
4968
  * Search posts within a single subreddit by query, sort, and timeframe.
4969
4969
  *
4970
- * Price: $0.0005 per request.
4970
+ * Price: $0.00045 per request.
4971
4971
  *
4972
4972
  * @example
4973
4973
  * const res = await client.reddit.subredditSearch({ subreddit: "Fitness", query: "push ups" });
@@ -5009,7 +5009,7 @@ var RedditNamespace = class {
5009
5009
  *
5010
5010
  * 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
5011
  *
5012
- * Price: $0.0012 per request.
5012
+ * Price: $0.0009 per request.
5013
5013
  *
5014
5014
  * @example
5015
5015
  * const res = await client.reddit.userComments({ username: "spez" });
@@ -5038,7 +5038,7 @@ var RedditNamespace = class {
5038
5038
  *
5039
5039
  * List a Reddit user's posts by username, sorted by new, top, hot, or controversial, with cursor pagination.
5040
5040
  *
5041
- * Price: $0.0005 per request.
5041
+ * Price: $0.00045 per request.
5042
5042
  *
5043
5043
  * @example
5044
5044
  * const res = await client.reddit.userPosts({ username: "spez" });
@@ -5662,9 +5662,9 @@ var SubstackNamespace = class {
5662
5662
  /**
5663
5663
  * Substack Posts
5664
5664
  *
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.
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, publication details, the full article body as text, HTML and Markdown, and optional comment threads.
5666
5666
  *
5667
- * Price: $0.0055 per request plus $0.00172 per result (maximum $0.178).
5667
+ * Price: $0.00039 per request plus $0.00044 per result (maximum $0.0444).
5668
5668
  *
5669
5669
  * @example
5670
5670
  * const res = await client.substack.posts({ url: "https://www.astralcodexten.com", limit: 3 });
@@ -5989,7 +5989,7 @@ var TiktokNamespace = class {
5989
5989
  *
5990
5990
  * Fetch a TikTok creator's public profile (followers, likes, bio, verification) by handle.
5991
5991
  *
5992
- * Price: $0.0012 per request.
5992
+ * Price: $0.0005 per request.
5993
5993
  *
5994
5994
  * @example
5995
5995
  * const res = await client.tiktok.profile({ handle: "zachking" });
@@ -6267,7 +6267,7 @@ var TiktokNamespace = class {
6267
6267
  *
6268
6268
  * List the comments on a TikTok video by URL with cursor pagination (text, author, likes, reply count).
6269
6269
  *
6270
- * Price: $0.0012 per request.
6270
+ * Price: $0.0008 per request.
6271
6271
  *
6272
6272
  * @example
6273
6273
  * 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" });
@@ -7205,7 +7205,7 @@ var YoutubeNamespace = class {
7205
7205
  *
7206
7206
  * Fetch a YouTube channel's stats (subscribers, video count, total views, description) by handle or channel ID.
7207
7207
  *
7208
- * Price: $0.0005 per request.
7208
+ * Price: $0.0012 per request.
7209
7209
  *
7210
7210
  * @example
7211
7211
  * const res = await client.youtube.channel({ handle: "@mkbhd" });