@getanyapi/sdk 0.13.3 → 0.15.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
@@ -2643,6 +2643,35 @@ var InstagramNamespace = class {
2643
2643
  basicProfile(input, options) {
2644
2644
  return this._core.run("instagram.basic_profile", input, options);
2645
2645
  }
2646
+ /**
2647
+ * Instagram Comment Replies
2648
+ *
2649
+ * List the replies to an Instagram comment with cursor pagination (text, author, likes).
2650
+ *
2651
+ * Price: $0.002 per request.
2652
+ *
2653
+ * @example
2654
+ * const res = await client.instagram.commentReplies({ commentId: "18126632131325044", url: "https://www.instagram.com/p/C8rKmYvsrck/" });
2655
+ */
2656
+ commentReplies(input, options) {
2657
+ return this._core.run("instagram.comment_replies", input, options);
2658
+ }
2659
+ /**
2660
+ * Iterate every result of Instagram Comment Replies across pages.
2661
+ *
2662
+ * Yields items directly; call `.pages()` on the return value to walk whole
2663
+ * result pages instead (each carries its own costUsd).
2664
+ */
2665
+ iterCommentReplies(input, options) {
2666
+ return paginate(
2667
+ this._core,
2668
+ "instagram.comment_replies",
2669
+ input,
2670
+ "comments",
2671
+ false,
2672
+ options
2673
+ );
2674
+ }
2646
2675
  /**
2647
2676
  * Instagram Profile Embed
2648
2677
  *
@@ -2779,6 +2808,22 @@ var InstagramNamespace = class {
2779
2808
  postComments(input, options) {
2780
2809
  return this._core.run("instagram.post_comments", input, options);
2781
2810
  }
2811
+ /**
2812
+ * Iterate every result of Instagram Post Comments across pages.
2813
+ *
2814
+ * Yields items directly; call `.pages()` on the return value to walk whole
2815
+ * result pages instead (each carries its own costUsd).
2816
+ */
2817
+ iterPostComments(input, options) {
2818
+ return paginate(
2819
+ this._core,
2820
+ "instagram.post_comments",
2821
+ input,
2822
+ "comments",
2823
+ false,
2824
+ options
2825
+ );
2826
+ }
2782
2827
  /**
2783
2828
  * Instagram Profile
2784
2829
  *
@@ -2899,6 +2944,35 @@ var InstagramNamespace = class {
2899
2944
  storiesThin(input, options) {
2900
2945
  return this._core.run("instagram.stories_thin", input, options);
2901
2946
  }
2947
+ /**
2948
+ * Instagram Tagged Posts
2949
+ *
2950
+ * List the posts an Instagram user is tagged in, with cursor pagination (author, caption, likes, comments).
2951
+ *
2952
+ * Price: $0.0024 per request.
2953
+ *
2954
+ * @example
2955
+ * const res = await client.instagram.taggedPosts({ handle: "nasa" });
2956
+ */
2957
+ taggedPosts(input, options) {
2958
+ return this._core.run("instagram.tagged_posts", input, options);
2959
+ }
2960
+ /**
2961
+ * Iterate every result of Instagram Tagged Posts across pages.
2962
+ *
2963
+ * Yields items directly; call `.pages()` on the return value to walk whole
2964
+ * result pages instead (each carries its own costUsd).
2965
+ */
2966
+ iterTaggedPosts(input, options) {
2967
+ return paginate(
2968
+ this._core,
2969
+ "instagram.tagged_posts",
2970
+ input,
2971
+ "posts",
2972
+ false,
2973
+ options
2974
+ );
2975
+ }
2902
2976
  /**
2903
2977
  * Instagram Trending Reels
2904
2978
  *
@@ -3620,6 +3694,22 @@ var RedditNamespace = class {
3620
3694
  subredditPosts(input, options) {
3621
3695
  return this._core.run("reddit.subreddit_posts", input, options);
3622
3696
  }
3697
+ /**
3698
+ * Iterate every result of Reddit Subreddit Posts across pages.
3699
+ *
3700
+ * Yields items directly; call `.pages()` on the return value to walk whole
3701
+ * result pages instead (each carries its own costUsd).
3702
+ */
3703
+ iterSubredditPosts(input, options) {
3704
+ return paginate(
3705
+ this._core,
3706
+ "reddit.subreddit_posts",
3707
+ input,
3708
+ "posts",
3709
+ false,
3710
+ options
3711
+ );
3712
+ }
3623
3713
  /**
3624
3714
  * Reddit Subreddit Search
3625
3715
  *
@@ -3649,6 +3739,19 @@ var RedditNamespace = class {
3649
3739
  options
3650
3740
  );
3651
3741
  }
3742
+ /**
3743
+ * Reddit Trending Posts
3744
+ *
3745
+ * Get currently trending Reddit posts across all subreddits with stable cursor pagination.
3746
+ *
3747
+ * Price: $0.00036 per request.
3748
+ *
3749
+ * @example
3750
+ * const res = await client.reddit.trendingPosts({ limit: 25 });
3751
+ */
3752
+ trendingPosts(input, options) {
3753
+ return this._core.run("reddit.trending_posts", input, options);
3754
+ }
3652
3755
  /**
3653
3756
  * Reddit User Comments
3654
3757
  *